Reading Seven Languages in Seven Weeks and pushing solutions to GitHub

Posted on

During the Christmas holidays I started reading Seven Languages in Seven Weeks. That means being exposed to seven new programming languages. Why? Because they all have some aspects that make them worth discovering. Ruby has some extremely agile features I wasn’t familiar with. Io uses prototypal inheritance and is a message passing language. Prolog is a logic programming language, a type of programming language I wasn’t familiar with. Etc. I read part of the Prolog chapter using the preview functionality on Amazon, and it convinced me to buy the book.

After finishing the Ruby chapter last week, I’m getting familiar with Io now. So far the book has been a great read, and I look forward to the rest of the chapters, wondering what new insights Clojure, Haskell, Prolog, Scala and Erlang will bring.

Although the book says answers to the questions and exercises are included in the final pages, they are nowhere to be found. So I decided to push my answers to Github in case fellow readers would like to compare. I’m not sure at all that these answers are correct. They most probably will contain bugs. If you find any, just clone the repository and fix them. ;-)