3 ms·
I liked the optimistic twist on this, Kernighan's Lever: http://www.linusakesson.net/programming/kernighans-lever/ http://www.linusakesson.net/programming/kerni
by lkbm 7y ago
I liked the optimistic twist on this, Kernighan's Lever: http://www.linusakesson.net/programming/kernighans-lever/ http://www.linusakesson.net/programming/kernighans-lever/
Kernighan's Law means that you're continually forcing yourself to level-up in order to debug your own code. It prevents stagnation.
Use caution in multi-developer environments. :-)
- strangerw 7y agoOr it could mean, be too stupid for complex tools, be dumb and choose [simplicity]. [simplicity]: https://github.com/dosyago/dumbass https://github.com/dosyago/dumbass Personally I find the original law inspiring.
- Bartweiss 7y agoA related interpretation: your debugging tools need to be at least as good as your programming tools. Ideally, better. Debugging a K8 cluster with print statements is hopeless, but if the cleverest code you can write in a dumb editor is going through a good test suite and profiler, you might be fine. How many as-clever-as-possible optimization tricks have been made viable by Valgrind?