Re:Flags Are a Code Smell (2014)
by synu on Sunday May 22, 2022 @01:06AM
(#31465043)
I recall at one point a code smell meant something more like “this may be off, but not necessarily, so you should investigate and be sure in your context.” It was better than “considered harmful”, which was more absolute. That nuance may once again be lost.
[ Parent
| on HN ]
Re:Flags Are a Code Smell (2014)
by patrick451 on Sunday May 22, 2022 @01:55AM
(#31465250)
Ehh. All code smells. Especially if it was written by somebody else. Or yourself more than six months ago. Get some nose plugs and move on with life.
Re:Flags Are a Code Smell (2014)
by eurasiantiger on Sunday May 22, 2022 @01:57AM
(#31465272)
If code doesn’t smell like anything, it probably doesn’t do any heavy lifting.
Hiding complexity by smearing it out over abstractions and more loc:s is the name of the game.
Re:Flags Are a Code Smell (2014)
by eurasiantiger on Sunday May 22, 2022 @10:24AM
(#31468496)
In my experience, complexity arises from a mismatch between data structure and data usage patterns, and it can be eliminated by changing the data structure to match its usage.