4 ms·
> Less code is better. I'd change this to "Write as little code as necessary, but no less." The problem with "Less code is better" is that some folks use that
by brwr 10y ago
> Less code is better.
I'd change this to "Write as little code as necessary, but no less." The problem with "Less code is better" is that some folks use that as justification to write clever one-liners that are difficult for other developers to read. That is not better.
That aside, I agree with everything else you said!
- tjbiddle 10y ago> some folks use that as justification to write clever one-liners that are difficult for other developers to read. Seriously - Please, if you do this, stop it! You're just slowing everyone else down.
- flukus 10y agoThere's also a tendency to "architect" things so that common things can be reduced to one liners. A common one is to create form generators via attributes. Things always end up being way more complicated this way.