How to learn Crystal

An overview of how to get started from scratch with Crystal


  • Crystal Official Docs: This is the go-to learning resource for Crystal at the moment. And they are pretty exhaustive, right from the basic literals and variables to some advanced stuff like macros. They also have a neat doc on coding conventions.

  • Crystal for Rubyists: A practical intro to Crystal language.

  • Crystal Playground - While Crystal doesn't have a built-in REPL (like Ruby, Python or Node), it does have a way to somewhat easily experiment with code. Just run crystal play and you should have a place to play around with Crystal in your browser at localhost:8080.

  • Crystal REPL Add-on - A GitHub user has created a REPL of sorts for Crystal. It's called ICR (a nod to Ruby's IRB). As most things in Crystal, it's still in a nascent phase and might be prone to bugs.