5 ms·
Nah, the language drives its culture. When every IDE offers to generate 8-12 lines to "encapsulate" a single field and every coding standard tells you that the
by lmm 6y ago
Nah, the language drives its culture. When every IDE offers to generate 8-12 lines to "encapsulate" a single field and every coding standard tells you that the resulting code is better, it becomes very hard to escape the mentality that writing zillions of extra lines is how you do "decoupling" and what you should be doing.
- raducu 6y agoIts not theat IDEs force you to generate code, its that IDEs are quick to hide code. I almost never read java files from start to finish, I just quickly navigate by methods/call hierarchy, in some side view, so its really easy for forgive Java for being verbose. Actually I rarely remember java class names or methods, I just know a heuristic shortcut on how to find them. After 15+ years of Java, I don't even see the boilerplate code, my brain ignores it like it ignores adds on webpages.
- lmm 6y agoImagine how much more effective you'd be if you'd been working in a non-boilerplatey language and spent 15+ years learning to see the essence of what code was doing, rather than having to expend that mental capacity on skipping over boilerplate.
- raducu 6y agoWhen you work with huge codebases, 80% of the time is spent reading/navigating code. The IDE hides the boilerplate, I really don't mind it.
- lmm 6y ago> When you work with huge codebases, 80% of the time is spent reading/navigating code. And you don't see this as an indication that reducing code size is important?
- raducu 6y agoNot really -- the IDE overview means it doesn't really matter if the codebase is 1X or 2X or 3X the amount of lines. Then, I just think, excluding some horrendous language and some corner cases, experienced programmers are limited by their brain and not the programming language, just like certain languages that are more verbose are spoken faster and terser languages are spoken slower, but the information flow is done at the same speed.
- noisem4ker 6y agoI haven't had to autogenerate any code since adopting Lombok. It really brought sanity to the codebases I work on.
- lmm 6y agoI used to use Lombok, but by the time you've got it properly working in all your linters, profilers and so on, it's just as much effort as using another JVM language. So I switched to Scala instead - much bigger reward for the same effort.