4 ms·
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 w
by synu 4y ago
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.
- patrick451 4y agoEhh. 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.
- eurasiantiger 4y agoIf code doesn’t smell like anything, it probably doesn’t do any heavy lifting.
- rightbyte 4y agoHiding complexity by smearing it out over abstractions and more loc:s is the name of the game.
- eurasiantiger 4y agoIn 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.
- rightbyte 4y agoYe. But if the problem to solve is complex or convoluted enought so will the solution be. Somewhere the code has to actually do something no matter the approuch.