3 ms·
Be brief. When their are three ways to do something, do the one that takes the least code (assuming it's not completely obscure and ridiculous). It's analogou
by alexgartrell 17y ago
Be brief.
When their are three ways to do something, do the one that takes the least code (assuming it's not completely obscure and ridiculous).
It's analogous to talking to people: the more you say the less they remember.
- samuel 17y agoI agree. I prefer to attach a 5-line comment to 10 lines of code to writing 15 lines of code. If the reader knows the idiom great, if not, he can grasp it without going into the details. Not everybody agrees, though.