4 ms·
it's "know" with a K. 1. I understand this as "don't wait for perfection before committing", not "try to improve every code you checkout". If I have no good re
by cycojesus 15y ago
it's "know" with a K.
1. I understand this as "don't wait for perfection before committing", not "try to improve every code you checkout". If I have no good reason to touch some code I won't, even if it looks ugly (and I'll be dealing with some horrendous things in the coming months.)
2. Simple code is boring. Boring can be good. Code that I find beautiful is more clever than simple (as in, after that "AHA!" moment the cleverness appears that would have required tons more simple code when here these 2 lines do the same.)
I find
foo = ( bar ) ? bla : bli;
much more beautiful than
if ( bar) {
foo = bla
} else {
foo = bli
}
- troels 15y agoI kind of prefer foo = bar ? bla : bli;