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
Part I
Starting with the Basics
1
The Way of the Program
2
Functions
3
Variables, Expressions and Statements
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
Part II
Moving Forward
12
Classes and Objects
13
Regexes and Grammars
14
Functional Programming in Raku
15
Some Final Advice
Appendix A
Solutions to the Exercises
Book Details
Title
Think Raku (Think Perl 6)
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