DNSCONTROL
Removing Dead Code From DNSControl
A few weeks ago I used the golang tool
read moredeadcode
to find and remove unreachable code from the DNSControl project. I also fixed some unrelatedunused parameter
warnings. This was my first experience with the utility and it was a good experience.Refactoring a Loop That Was Trying Too Hard
I fixed bug last night.
The bug was difficult to fix because the code was so complex. I wasn’t really able to fix it until I simplified the code. Once the code was simplified the bug was easy to fix. While doing this I found an anti-pattern that I now call “One loop trying too hard”.
read more