3 ms·
I'm not convinced language snobbery is something to be encouraged personally :/ If it was lisp it'd be 200,000 lines of parenthesis, if it were python it'd be 2
by axod 17y ago
I'm not convinced language snobbery is something to be encouraged personally :/ If it was lisp it'd be 200,000 lines of parenthesis, if it were python it'd be 200,000 of significant whitespace, perl? 200,000 of random punctuation characters etc etc.
It's not the language, it's what you do with it that counts.
If someone is writing countless getters and setters, in any language, they're clearly doing something terribly wrong.
my 2c.
- tjogin 17y agoSure, but at the same time all languages were not created equal. Some are better designed and more powerful than others. They're not all just equally great at different things and let's sing "Kum ba yah" together now.
- jrockway 17y agoBut has anyone fixed this in Java yet, or does every large app still consist of thousands of nearly-identical methods? Things like parentheses and whitespace don't affect the ongoing maintenance of your codebase; a bunch of code that your IDE typed for you does.
- windsurfer 17y agoI think it's called inheritance, but most programmers try to stay away from that because of the headaches of the diamond problem.
- axod 17y agoUsing your IDE to type code for you is the problem. Not Java. Place the blame where it should be. If a programmer is foolish enough to use an IDE to generate code, and doesn't mind if it's near identical rubbish, then it's not the languages fault anymore.
- jrockway 17y agoSo could you explain the "right way". I'm not a Java programmer, and googling did not reveal any way to generate accessors other than inserting code in your source file. An explanation of how you do it would be very valuable, at least to me.
- eru 17y ago> 200,000 of significant whitespace Significant whitespace does not occupy its own lines in Python.
- axod 17y agoJava doesn't require getters and setters :/
- deleted 17y ago[deleted]
- gruseom 17y agoIf it was lisp it'd be 200,000 lines of parenthesis, if it were python it'd be 200,000 of significant whitespace, perl? 200,000 of random punctuation How do you know this?