Book: Crystal Programming

I’m pleased to announce that @lbguilherme and I have authored a new Crystal book, and it comes out this Friday, May 27, 2022! Electronic and physical versions will be available. Checkout the following links for more information:

At 356 pages, there isn’t much that hasn’t been covered; all written against Crystal 1.4. While the book is focused towards those with programming experience, previous knowledge of Crystal itself is not required.

Featured topics include the basics as well as higher level language features such as concurrency, IOs, C bindings, and how to use Shards/libraries, as well as more advanced metaprogramming topics such as macros, annotations, and compile time type introspection. There are also chapters dedicated to the external tooling/auxiliary features of Crystal, such as how to document, test, release, and introduce CI into your Crystal project.

We took a project based approach in order to introduce and talk about various Crystal features. This worked out well as it allowed using them within real-world like contexts, as opposed to more abstract examples. We start off by creating a simple CLI application to handle transforming data between formats efficiently and follow it up by walking through the creation of a simple blog application using the Athena Framework.

Overall it was an rewarding process watching the book come together, learning plenty myself throughout the process. I want to give a special thanks to @bcardiff for being our technical reviewer. Your in-depth knowledge of the language, and patience with our questions, is much appreciated!

57 Likes

Oh this is a surprise and awesome news🥳 looking forward to getting a copy.

Also, would be good to tweet it out from crystal twitter if not already done

Thanks for adding what I’d call real-world-usage dependencies (i.e.: beyond core-language-only examples) like CI as you mentioned; I think that kind of content will be helpful to many others use Crystal and maybe migrate people to Crystal.

I look forward to getting my book! :slight_smile:

2 Likes

Very nice!

I’ll have to find who in our company can preorder one this week.

Thanks, I saw a lot of questions about an up-to-date book!
Just made a pre-order :smiley:

Congrats

This is impressive! Thank you and congrats to both of you!
Next time I’m in the US I’ll definitely grab a copy <3

1 Like

I just pre-ordered the ebook only for $10.

2 Likes

Congrats! Just ordered a copy and looking forward to reading. Thanks for doing this. Huge help!

1 Like

11 Likes

Could someone with a hard copy confirm if this book has an Index. The Amazon preview appears that it does not have an Index, but I find that hard believe.

Thanks

The hard copy does have an index.

1 Like

The ebook has the index too.

1 Like

Awesome job! I’ll be grabbing this for sure.

2 Likes

@Blacksmoke16 If this book need a proofreading or errata, you can @me. i think i can do this work well and quickly base on my knowledge of Crystal and Ruby.

anyway, i hope Crystal can have more high quality books which make it more popular.

It’s an honor to buy the book! I just ordered the digital version on Packpub. It was simply a no-brainer. :grin: Even more considering the authors!

I thank you both, George Dietrich and Guilherme Bernal, for the excellent work!

3 Likes

Thanks for your work! :D

3 Likes

I just bought an e-book, good stuff :) thx

1 Like

If you still haven’t acquired your copy of the Crystal Programming book, now’s your chance to get a 25% discount using the code 25CRYSTAL on http://packtpub.com at checkout!

11 Likes