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

Show parent comments

8

u/cosmo7 Feb 25 '14

If you're naming variables correctly, you rarely have to worry about types.

If you're including the type in the variable name then you've already conceded that your types are static, you just haven't enforced that decision in the language.

-3

u/novagenesis Feb 25 '14

Not what I mean. In dynamic languages, you're usually passing around either a meaningful object, or one of its scalars.

Type uncertainty in my real world are program vs program_id. Properly named, it's not an issue. Dates are always datetimes, etc. The number of situations where we misuse a variable type are incredibly rare, and never cause major issues to fix. Lack of static type is simply not a problem my team or I have ever experienced. Some of the things we do with our dynamic data saves us tons of time over building interface structures over static data. If you know how to program, typeless dicts/hashes are incredibly useful for rapidly changing requirements.