Are you interested in learning #Crystal-Lang but having difficulty because you are a tactile learner? The purpose of this tutorial is to provide you practise problems you can try out at your leisure.
Recently on HackerNews I discovered crystal-lang, or sometimes shortened down to just crystal, a programming language that fancies itself as slick as ruby and fast as C had just become versioned to 1.1.0 via the post titled “Crystal 1.1.0 is released! (2021)". Now that crystal-lang is becoming production ready and becoming more adapted by industry, I thought about learning this language.
The practise problems in this post are to be tried after you have installed the crystal-lang compiler and read the following developer docs:
According to the documentation, once you finish reading the tutorials section, you are to move on to reading the language specifications section. This is fine but I like to play with the language as I learn to cement the fundamentals; as a result, I am writing this series of blog posts with some practise problems you can try out to assist you with learning crystal-lang.
Try to write the code yourself and when you are ready, look below to see the solution I wrote. To execute this code, run the following in your terminal: