by EvanAnderson · 5y ago · 0 comments
Personally, I think the best code is the code I don't write.
A significant part of my refactoring, is removing as much code as possible, by tweaking algorithms, deriving common base classes, and removing unused code branches.
Every line of code is a potential bug. The less code, the less bugs.
https://www.folklore.org/StoryView.py?story=Negative_2000_Li...
My favorite was replacing a function call with a single character constant.
Then there were two employers who demanded code proliferation (management incentives tied to KLOCs?). Didn't last long at either place.
(start at 20:05 if timestamp fails).