Ask HN: What is the ugliest code you've let slip?
I've seen some horrible code run perfectly, and some inexplicable snippet that shouldn't run work well enough.
What have you let make it to production that never should have been there, and likely was only intended as a temporary fix?
Did you ever get around to fixing it?
4 comments
[ 3.0 ms ] story [ 21.8 ms ] threadThe only time this has ever bothered me is when it's in the interview process and costs me the job.
I usually stop working on code when it's "good enough", which is to say, when it works.
Maybe I have low standards.
It gets picked up in review, but the attitude is unfortunate.
If your code is ugly by stylistic preferences but works and you are a responsible coworker, then, meh, I'd only code review in changes if they were pertinent to the issue being solved.