DEV Community

Discussion on: What's the Worst Code You've Ever Seen or Written?

Collapse
 
nprimak profile image
Nadya Primak

Hoo boy this is a fun one. I've seen code with comments above such as "No idea what this does" and at the time I thought "can't get any worse than this" in a professional code base. However, I was proven wrong several jobs later when I encountered a chrome extension that was so poorly written only one developer (the one who had written it) was allowed to touch it. Out of morbid curiosity, I decided to look at the code to see just how bad it could be. Literally every single variable was 1 letter, or occasionally 1 letter followed by several numbers. There was no documentation, no comments, no nothing. Things like (for f11 = 0; f11 < b23.length; f11++). I KID YOU NOT FOLKS