Raku fundamentals a primer with examples, projects, and case studies

Gain the skills to begin developing Raku applications from the ground up in this hands-on compact book, which includes a foreword from Larry Wall, creator of Perl. You'll learn enough to get started building with Raku, using Raku's gradual typing, handy object orientated features, powerful...

Full description

Bibliographic Details
Main Author: Lenz, Moritz
Format: eBook
Language:English
Published: [United States] Apress 2020
Edition:2nd edition
Series:ITpro collection
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • Intro
  • Table of Contents
  • About the Author
  • About the Technical Reviewer
  • Acknowledgments
  • Foreword
  • Chapter 1: What Is Raku?
  • 1.1 Intended Audience
  • 1.2 Perl 5: The Older Sister
  • 1.3 Library Availability
  • 1.4 Why Should I Use Raku?
  • 1.5 Summary
  • Chapter 2: Running Rakudo
  • 2.1 Installers
  • 2.2 Docker
  • 2.3 Building from Source
  • 2.4 Testing Your Rakudo Star Installation
  • 2.5 Documentation
  • 2.6 Summary
  • Chapter 3: Formatting a Sudoku Puzzle
  • 3.1 Making the Sudoku Playable
  • 3.2 Shortcuts, Constants, and More Shortcuts
  • 3.3 I/O and Other Tragedies
  • 6.5.3 Improving Reliability and Timing
  • 6.5.4 Installing a Module
  • 6.6 Summary
  • Chapter 7: Stateful Silent-Cron
  • 7.1 Persistent Storage
  • 7.2 Developing the Storage Back End
  • 7.3 Using the Storage Back End
  • 7.4 Room for Expansion
  • 7.5 Summary
  • Chapter 8: Review of the Raku Basics
  • 8.1 Variables and Scoping
  • 8.2 Subroutines
  • 8.3 Classes and Objects
  • 8.4 Concurrency
  • 8.5 Outlook
  • Chapter 9: Parsing INI Files Using Regexes and Grammars
  • 9.1 Regex Basics
  • 9.1.1 Character Classes
  • 9.1.2 Quantifiers
  • 9.1.3 Alternatives
  • 9.2 Parsing the INI Primitives
  • 3.4 Get Creative!
  • 3.5 Summary
  • Chapter 4: Datetime Conversion for the Command Line
  • 4.1 Libraries to the Rescue
  • 4.2 DateTime Formatting
  • 4.3 Looking the Other Way
  • 4.4 Dealing with Time
  • 4.5 Tighten Your Seat Belt
  • 4.6 MAIN Magic
  • 4.7 Automated Tests
  • 4.8 Summary
  • Chapter 5: Testing say()
  • 5.1 Summary
  • Chapter 6: Silent-Cron: A Cron Wrapper
  • 6.1 Running Commands Asynchronously
  • 6.2 Implementing Timeouts
  • 6.3 More on Promises
  • 6.4 Possible Extensions
  • 6.5 Refactoring and Automated Tests
  • 6.5.1 Refactoring
  • 6.5.2 Mocking and Testing
  • Chapter 11: A Unicode Search Tool
  • 11.1 Code Points, Grapheme Clusters, and Bytes
  • 11.2 Numbers
  • 11.3 Other Unicode Properties
  • 11.4 Collation
  • 11.5 Summary
  • Chapter 12: Creating a Web Service and Declarative APIs
  • 12.1 Getting Started with Cro
  • 12.2 Expanding the Service
  • 12.3 Testing
  • 12.4 Adding a Web Page
  • 12.5 Declarative APIs
  • 12.6 Summary
  • Chapter 13: What's Next?
  • 13.1 Scaling Your Code Base
  • 13.2 Packaging Your Application
  • 13.2.1 Packaging As a Traditional Raku Module
  • 13.2.2 Deploying with Docker
  • 13.2.3 Windows Installers
  • 13.3 Closing Thoughts
  • Includes bibliographical references
  • 9.3 Putting Things Together
  • 9.4 Backtracking
  • 9.5 Grammars
  • 9.6 Extracting Data from the Match
  • 9.7 Generating Good Error Messages
  • 9.7.1 Failure Is Normal
  • 9.7.2 Detecting Harmful Failure
  • 9.7.3 Providing Context
  • 9.7.4 Shortcuts for Parsing Matching Pairs
  • 9.8 Write Your Own Grammars
  • 9.9 Summary
  • Chapter 10: A File and Directory Usage Graph
  • 10.1 Reading File Sizes
  • 10.2 Generating a Tree-Map
  • 10.3 Flame Graphs
  • 10.4 Functional Refactorings
  • 10.5 More Language Support for Functional Programming
  • 10.6 More Improvements
  • 10.7 Explore!
  • 10.8 Summary