3 ms·
I really like this concept! It's something I regularly say to our juniors - if you have two ways to do something and one is much easier to debug later, it's pr
by minimaul 4y ago
I really like this concept!
It's something I regularly say to our juniors - if you have two ways to do something and one is much easier to debug later, it's probably a better choice. It's a nice extension of not writing unnecessarily overcomplicated code and keeping things readable.
- bern4444 4y agoThank you! It’s easy to fall into this habit especially with chained methods where it looks so nice. I have to remind myself of this concept often as it’s just so easy to do things quick and dirty
- PointyFluff 4y agoPast Barry writes comments to Future Barry, so Future Barry knows what the fuck is going on and doesn't have to try and figure out the spaghetti-code Past Barry apishly bludgeoned into the keyboard with his penis-tipped meat-stumps. Both Barry's think the other is an insufferable asshole.
- fragmede 4y agoKernighan's lever: Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.