Wrote some really clever code today that uses a couple fancy recursions & multiple abstractions so I'm not copy-pasting the same several lines of code to multiple places. So clever that if I got paged at 2am it would make zero sense to me. Shook myself out if it and deleted it all. if else if else if else for the win.
57
67
926
119K
74
@VicVijayakumar Kernighan’s law: “You need to be twice as smart as the person who wrote the code in order to debug it”. Don’t put yourself in a position to have to outsmart yourself.