This post will present my solutions for day 1 of the Scala chapter in the book Seven languages in seven weeks:
I really looked forward to the Scala chapter, also because Scala has generated quite some buzz lately. My first encounter with Scala was some 3 years ago on a NL-Jug conference. Since then I’m not a fan of scala, but I doubt that I gave it a fair chance. My dislike especially came from people’s reasoning that in Scala you could do things in less code and so this must be better than Java.
Of course Java brings some verbosity, but it also brings a syntax that is understandable for almost any programmer (so also programmers that never learned Java), and I clearly missed this in a lot of the examples the scala people came up with. Fibonacci in one line of code may seem cool for the writer, but most certainly is not cool for the readers, and seen that code is read at least 10 times as much as written, the argument that you have to write less code should never prevail the argument of readability.
But I might have been blinded by my dislike of this reasoning and programming style, and didn’t give Scala a fair chance. So I will try to give Scala a chance in the coming 3 blog entries, trying to keep a Beginner’s mind as mentioned by Patrick Kua in this presentation. BTW if you like the presentation you will probably also like the this book: Pragmatic Thinking and Learning: Refactor Your Wetware (Pragmatic Programmers).
Continue reading Seven languages in seven weeks: My solutions for scala day 1
