Re:Good code is rarely read
by aaronbrethorst on Saturday June 15, 2024 @12:58PM
(#40690956)
I would argue that lots of useful code is an utter dumpster fire internally. That doesn't mean we shouldn't strive to do better.
Useful
|
|
Bad-------Good
|
|
Not Useful
Re:Good code is rarely read
by eyelidlessness on Saturday June 15, 2024 @05:10PM
(#40692721)
There’s probably a time axis that comes into play, at least for a large number of projects. Bad code which is immediately useful, even indispensable, can decline in utility fairly sharply the parameters which determine its usefulness change faster than it can be adapted to meet those needs or goals.
Re:Good code is rarely read
by aaronbrethorst on Saturday June 15, 2024 @05:19PM
(#40692789)
There's definitely a time axis that comes into play. I'd say that all tech debt should be (but probably isn't always) in that top left quadrant. Like they say, good/fast/cheap - pick two (if you're lucky).
Not useful code is always bad, because you never had to write it. It is just a waste.
Re:Good code is rarely read
by aaronbrethorst on Saturday June 15, 2024 @08:00PM
(#40693587)
Requirements change. projects pivot. Yesterday’s must have feature is tomorrow’s deleted code
The thing they all have in common is that they are/were overwhelmingly useful to people who didn’t need to go digging inside of them to use or understand them. These are bodies of code for which the behavioral and algorithmic properties were documented thoroughly, bodies of code that generalize to wide ranges of applications.
Still, we’re not all writing STL core classes every day. Sure. Write code so good it doesn’t need to be read. Write code so good that people want to read it. And write code that, when read, is welcoming, comprehensible, and considerate of others or yourself in the future.
Saying the first thing shouldn’t mean unsaying the other things… Something our author may learn over time.