96
Typing is not a programming bottleneck
(blog.ploeh.dk)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
From the article:
This reads like a one-sentence strawman. Describing code as "too verbose" is really not about the risk of carpal tunnel syndrome. It's about readability and cognitive load.
The blogger seems to almost get the point when he writes the following:
The purpose of source code is to communicate (...) to the next programmer who comes along.
If you make the mistake of going the "enterprise quality java code" meme approach, you're making the next programmer's life needlessly harder.
The blogger then tries to make his case with verbose code, and makes the following statement:
This is yet another strawman. The longer version is awful code, not because it's longer but because it's needlessly jam-packed of boilerplate code. Ignorign basic things like interfaces and contracts, It's been proven already that bugs in code are directly proportional to the number of lines of code, and thus the code the author prefers is likely to pack ten times more bugs.
The shorter code in this case would not be the 78-loc mess that the author picked as the thing he prefers. The shorter code in this case would be something like onboarding the project onto Project Lombok to handle all-args constructors, property methods, and even throw a builder in for free. This requires onboarding Lombok to the project, and add two annotations to the short example. Two lines of code, done.
After the blogger fails to make his case, he doubles down on the typing non-sequitur:
This is a blog post that fails to justify a click. It's in the territory of "not even wrong".