Skip to content

Read more about Think Raku: How to Think Like a Computer Scientist - 2nd edition

Think Raku: How to Think Like a Computer Scientist - 2nd edition

(1 review)

Laurent Rosenfeld

Allen B. Downey, Olin College

Copyright Year: 2017

ISBN 13: 9781491980552

Publisher: Green Tea Press

Language: English

Formats Available

Conditions of Use

Attribution-NonCommercial-ShareAlike Attribution-NonCommercial-ShareAlike


Learn more about reviews.

Reviewed by Mark Nelson, Assistant Professor, American University on 1/14/23

This is a pretty complete, self-contained introduction to programming, using Raku as the programming language. It starts from the very basics, assuming no knowledge of programming (variables, control flow, etc.), and continues up through... read more

Table of Contents


I Starting with the Basics

  • 1 The way of the program
  • 2 Variables, Expressions and Statements
  • 3 Functions
  • 4 Loops, Conditionals and Recursion
  • 5 Fruitful Subroutines
  • 6 Iteration
  • 7 Strings
  • 8 Case study: Word Play
  • 9 Arrays and Lists
  • 10 Hashes
  • 11 Case study: Data Structure Selection

II Moving Forward

  • 12 Classes and Objects
  • 13 Regexes and Grammar
  • 14 Functional Programming in Raku
  • 15 Some Final Advice


Ancillary Material

Submit ancillary resource

About the Book

The title of this book was originally Think Perl 6, but since Perl 6 has been renamed Raku, we have also changed the title of the book.

Think Raku is an introduction to computer science and programming intended for people with little or no experience.

This aim of this book is not primarily to teach Raku, but instead to teach the art of programming, using the Raku language. After having  completed this book, you should hopefully be able  to write programs to solve relatively difficult problems in Raku, but my main aim is to teach computer science, software programming, and problem solving rather than solely to teach the Raku language itself.

Think Raku is a free book available under a Creative Commons license. Readers are free to copy and distribute the text; they are also free to modify it, which allows them to adapt the book to different needs, and to help develop new material.

About the Contributors


Laurent Rosenfeld

Allen Downey, Professor of Computer Science at Olin College in Needham MA, and the author of Think Python, Think Bayes, Think Stats and other books related to computer science and data science.

Contribute to this Page

Suggest an edit to this book record