Raku Fundamentals: A Primer with Examples, Projects, and Case Studies

Lenz, Moritz

  • 出版商: Apress
  • 出版日期: 2020-09-06
  • 售價: $1,650
  • 貴賓價: 9.5$1,568
  • 語言: 英文
  • 頁數: 186
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484261089
  • ISBN-13: 9781484261088
  • 相關分類: R 語言Object-oriented程式語言
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

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 parsing capabilities, and human-usable concurrency. This book has been updated to include the latest version of Raku based upon the Perl 6.d major version which includes over 3,400 new commits in its specification.

After a short introduction, each chapter develops a small example project, explaining the Raku features used. When the example is done, you'll explore another aspect, such as optimizing further for readability or testing the code. Along the way you'll see Raku basics, such as variables and scoping; subroutines; classes and objects; regexes; and code testing.

 

When you've mastered the basics, Raku Fundamentals moves onto more advanced topics to give you a deeper understanding of the language. You'll learn, amongst other things, how to work with persistent storage, how to generate good error messages, and how to write tricky applications such as a file and directory usage graph and a Unicode search tool.

What You Will Learn

  • Get coding with latest version of Raku
  • Work on several hands-on examples and projects
  • Integrate Python libraries into your Raku-based programs
  • Parse INI files using regexes and grammars
  • Build a date-time converter
  • Carry out refactoring and other automated tests

Who This Book Is For

If you already know one or more programming languages, and want to learn about Raku, then this book is for you.

商品描述(中文翻譯)

在這本實用的緊湊書中,您將學習從頭開始開發 Raku 應用程式所需的技能。這本書包含了 Perl 的創造者 Larry Wall 的序言。您將學習足夠的知識,以使用 Raku 的漸進式類型、方便的物件導向功能、強大的解析能力和易於使用的並行處理功能來開始使用 Raku 進行開發。本書已更新至基於 Perl 6.d 主要版本的最新版本,其中包含超過 3,400 個新的提交。

在簡短的介紹之後,每個章節都會開發一個小型示例項目,並解釋使用的 Raku 功能。當示例完成後,您將探索另一個方面,例如進一步優化可讀性或測試代碼。在這個過程中,您將學習到 Raku 的基礎知識,例如變數和作用域、子程序、類和物件、正則表達式和代碼測試。

當您掌握了基礎知識後,《Raku Fundamentals》將進一步介紹更高級的主題,以使您對語言有更深入的理解。您將學習如何使用持久存儲、生成良好的錯誤消息以及編寫複雜的應用程式,例如文件和目錄使用圖和 Unicode 搜索工具。

您將學到以下內容:

- 使用最新版本的 Raku 進行編碼
- 進行多個實例和項目的實踐
- 將 Python 函式庫整合到基於 Raku 的程式中
- 使用正則表達式和語法解析 INI 文件
- 構建日期時間轉換器
- 進行重構和其他自動化測試

本書適合已經熟悉一個或多個程式語言並希望學習 Raku 的讀者。

作者簡介

Moritz Lenz is a Perl 6, now Raku, core developer. He has contributed significantly to the official test suite, the Rakudo Perl compiler, and is the initiator of the official Raku documentation project. He has also authored several modules, and runs infrastructure for the Raku community. In his day job, he develops Perl 5 and Python code, and maintains a continuous delivery system for his employer.

作者簡介(中文翻譯)

Moritz Lenz 是 Perl 6(現在稱為 Raku)的核心開發者。他對官方測試套件、Rakudo Perl 編譯器做出了重大貢獻,並且是官方 Raku 文件項目的發起人。他還撰寫了幾個模組,並為 Raku 社群運營基礎設施。在他的日常工作中,他開發 Perl 5 和 Python 代碼,並維護雇主的持續交付系統。