DEV Community

Discussion on: What's the worst code you've ever written?

Collapse
 
maxart2501 profile image
Massimo Artizzu • Edited

At the beginning of my career, I was fond of one-liners and compactness, with all the disregard of white spaces, meaningful variable names and readability all around.
I don't really know if the code was either crappy, genius or average, because I had no idea of what that meant: it was completely obscure to myself in a couple of months.

My code used to look like a regular expression.

Collapse
 
ben profile image
Ben Halpern

Lol I remember early on as a programmer being proud of traits in my code which were objectively awful. Like, seeing complexity as a win because of all the cool things one single algorithm could accomplish.

Collapse
 
dinerdas profile image
Diner Das

Yikes

Collapse
 
tqbit profile image
tq-bit

My code used to look like a regular expression.

Made my day. Might be due to my constant usage of ihateregex.io/