Recently, I came across some horrible, horrible code. I immediately pasted it into a messaging application and quickly received an expression of solidarity. With what though? My indignation? Grief? Amusement? I find it suspicious that code I consider horrible tends to have been written by people I already disliked for some reason.
Here are some things I have complained about recently:
- Code that was the source of a bug that was in retrospect obvious.
- Code that could be deleted with no change to the behavior of the program other than, possibly, a performance improvement.
- Extremely inefficient code, perhaps extravagant in …