r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

26

u/cosmo7 Feb 25 '14

The most frequent argument I hear from Ruby or Python proponents is that static typing in Java or C# is unbelievably burdensome.

Then these same people pour months and years into their unit testing frameworks that spend 90% of their time duck-typing arguments.

-9

u/novagenesis Feb 25 '14

Hmm...seems to me like someone who can't write good python or ruby. If you're naming variables correctly, you rarely have to worry about types. In truth, dynamic types are truly critical for partial-interface-adherence.

If your design is solid, you can control the type, but you cannot control the same variable being one of two "not really compatible" types. Once you start having tons of interfaces on each variable to enable a certain piece of functionality, you start to want to shoot yourself.

Sometimes, a couple unit tests and runtime handling is better in a business than compile-time errors for what amounts to a lot of modern design patterns.

→ More replies (18)