3 ms·
Most of the comments so far are on point. I just want to add that the reasoning behind preferring less code over more is that every line of code you don't have
by twobyfour 9y ago
Most of the comments so far are on point. I just want to add that the reasoning behind preferring less code over more is that every line of code you don't have is a line of code you don't have to maintain. It's a heuristic you can use to remind yourself to ask whether you really need that extra feature or to handle every one of that set of corner cases individually. It's also a reminder to yourself that retiring and stripping out older seldom-used features is usually a good thing.