DEV Community

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

Collapse
 
buphmin profile image
buphmin

For me it was a 2000 plus line function in PHP that had several include files with variables declared and used across a variety of files, then multiple 1 character variables reused for completely different things and the only comments were leftovers from some other time so they were inaccurate and misleading.

Collapse
 
renegadecoder94 profile image
Jeremy Grifski

This sounds like an obfuscation challenge. haha