Think Raku (Think Perl 6)

How to Think Like a Computer Scientist

by Allen Downey, Laurent Rosenfeld

DescriptionTable of ContentsDetailsHashtagsReport an issue

Book Description

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.

Want to learn how to program and think like a computer scientist? This practical guide gets you started on your programming journey with the help of Raku (Perl 6), the younger sister of the popular Perl programming language. Ideal for beginners, this hands-on book includes over 100 exercises with multiple solutions, and more than 1,000 code examples so you can quickly practice what you learn. Experienced programmers - especially those who know Perl 5 - will also benefit.

Divided into two parts, Think Raku (Perl 6) starts with basic concepts that every programmer needs to know, and then focuses on different programming paradigms and some more advanced programming techniques. With two semesters' worth of lessons, this book is the perfect teaching tool for computer science beginners in colleges and universities.

Learn basic concepts including variables, expressions, statements, functions, conditionals, recursion, and loops; Understand commonly used basic data structures and the most useful algorithms; Dive into object-oriented programming, and learn how to construct your own types and methods to extend the language
Use grammars and regular expressions to analyze textual content; Explore how functional programming can help you make your code simpler and more expressive.

This open book is licensed under a Creative Commons License (CC BY-NC). You can download Think Raku (Think Perl 6) ebook for free in PDF format (2.4 MB).

Table of Contents

Preface
 
v
Part I
Starting with the Basics
1
1
The Way of the Program
5
2
Functions
27
3
Variables, Expressions and Statements
15
4
Loops, Conditionals, and Recursion
49
5
Fruitful Subroutines
69
6
Iteration
85
7
Strings
99
8
Case Study: Word Play
127
9
Arrays and Lists
139
10
Hashes
165
11
Case Study: Data Structure Selection
183
Part II
Moving Forward
213
12
Classes and Objects
217
13
Regexes and Grammars
249
14
Functional Programming in Raku
271
15
Some Final Advice
307
Appendix A
Solutions to the Exercises
315

Book Details

Subject
Computer Science
Publisher
O'Reilly Media, Green Tea Press
Published
2017
Pages
431
Edition
2
Language
English
ISBN13
9781491980521
ISBN10
1491980524
ISBN13 Digital
9781491980552
ISBN10 Digital
1491980559
PDF Size
2.4 MB
License
CC BY-NC

Book Hashtags

Related Books

The Legacy of Felix Klein
This book provides an overview of Felix Klein's ideas, highlighting developments in university teaching and school mathematics related to Klein's thoughts, stemming from the last century. It discusses the meaning, importance and the legacy of Klein's ideas today and in the future, within an international, global context. Presenting extended version...
Computational Thinking Education
This book offers a comprehensive guide, covering every important aspect of computational thinking education. It provides an in-depth discussion of computational thinking, including the notion of perceiving computational thinking practices as ways of mapping models from the abstraction of data and process structures to natural phenomena. Further, it...
Think Python
If you want to learn how to program, working with Python is an excellent way to start. This hands-on guide takes you through the language a step at a time, beginning with basic programming concepts before moving on to functions, recursion, data structures, and object-oriented design. This second edition and its supporting code have been updated for...
Early Geometrical Thinking in the Environment of Patterns, Mosaics and Isometries
This book discusses the learning and teaching of geometry, with a special focus on kindergarten and primary education. It examines important new trends and developments in research and practice, and emphasizes theoretical, empirical and developmental issues. Further, it discusses various topics, including curriculum studies and implementation, spat...
IEA International Computer and Information Literacy Study 2018 Assessment Framework
This free book presents the assessment framework for IEA's International Computer an Information Literacy Study (ICILS) 2018, which is designed to assess how well students are prepared for study, work and life in a digital world. The study measures international differences in students' computer and information literacy (CIL): their ability to use ...
Early Algebra
This survey of the state of the art on research in early algebra traces the evolution of a relatively new field of research and teaching practice. With its focus on the younger student, aged from about 6 years up to 12 years, this volume reveals the nature of the research that has been carried out in early algebra and how it has shaped the growth o...