I’m reminded of Kernighan’s Law .
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. ~ Brian Kernighan
But here’s the thing, if you stick to simple solutions, you’ll not be prepared for inevitable scenarios where your debugging skills aren’t up to the mark.
There is great risk in coming up with clever solutions but this actually pays off when you constantly push this boundary by debugging and finding faults in said clever solutions. https://twitter.com/twitter/status/1845062132326449455/
~ updated at: 2024-10-12T12:30:03.243Z