3 ms·
Admittedly I skimmed the blog post but I saw a complaint against the "Hello World", not how to print out a string. I agree the "System.out.print" thing is such
by Jach 15y ago
Admittedly I skimmed the blog post but I saw a complaint against the "Hello World", not how to print out a string. I agree the "System.out.print" thing is such a non-issue. If it really bothers you, make a class in your package that's a wrapper around it so you can call Utl.print() or U.o() or however short you want to make it. Meanwhile the rest of us will get back to programming. In the few years I've done a lot of Java development it's never bothered me enough to even make a vim shortcut for it.
However, the "Hello World" criticism does make sense to me in this sense. There are at least 18 separate facts you need to know to fully understand a Java "Hello World" program (including how to compile and run it). For [insert almost any other language (not C++)] there is considerably less. (Python is 4 facts.) If your goal is to teach someone who has never programmed before a new language, Java seems like a poor choice in that respect.
In any case, Clojure is where it's at right now man. It's pure awesome-sauce on its own and you get all of Java's goodies as a bonus.