This is the code repository for Crystal Programming , published by Packt.
A project-based introduction to building efficient, safe, and readable web and CLI applications
This book is a practical guide to using the Crystal programming language. It takes a hands-on approach to implementation and associated methodologies for solving real-world problems that will have you up and running and productive in no time.
This book covers the following exciting features:
- Explore how Crystal combines the merits of other languages
- Understand how to leverage existing C libraries without writing any C
- Focus on zero-cost abstractions with compile-time macros
- Use an example-based approach to demonstrate language features
- Develop a variety of Crystal applications, such as web and CLI apps
- Gain an understanding of the macro API and annotations
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
require "./transform"
STDOUT.puts Transform::Processor.new.process STDIN.gets_to_end
Following is what you need for this book: Developers who want to learn Crystal programming or anyone looking to improve their ability to solve real-world problems using the language will find this book helpful. Experience in application development using any other programming language is expected. However, prior knowledge of Crystal is not required
With the following software and hardware list you can run all code files present in the book (Chapter 1-19).
Chapter | Software required | OS required |
---|---|---|
1 | Crystal | Windows, Mac OS X, and Linux (Any) |
1 | libNotify | gcc (or other C compiler) |
1 | jq | libprec2 |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Guilherme Bernal is the chief technology officer at Cubos Tecnologia. He holds a bachelor's degree in TI management. Guilherme co-founded a software development company and several tech start-ups, including one that focused on teaching programming skills to a new generation of developers. He is also a two-time world finalist in the coding competition, ACM ICPC.
George Dietrich is a software engineer, open-source aficionado, and Crystal community moderator. He holds a Master of Science degree in internet information systems and a Bachelor of Science degree in information sciences.