Interesting: code of the same application in PHP, Python, Ruby, Closure, node.js, Java and Go
And to be honest, looking at the syntax says probably nothing about the pros and cons of a language.
I love clean and “visually readable” code. Code that has clearly visible “units” and “levels”. I also like brackets and use of natural basic human-readable english language. And the dotted.chaning.syntax feels totally right, something like x = model.cars.getCarById(7).sortDesc().yourMom().trim() clearly says what’s going on, and handles a lot of stuff in one line without looking weird.
Full article: http://adambard.com/blog/PHP-ruby-python-clojure-webapps-by-example/
Example in Java / JSP
Example in Ruby
Example in Closure
Example in Go
Leave A Comment