DEV Community

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

Collapse
 
warwait profile image
Parker Waiters

Any time I've had to work on really bad legacy code where I can't confidently change any existing code, but I can pile some crap on the top somewhere if there's a problem. It just keeps getting worse and worse and worse and eventually you leave the project and somebody else takes the routine.

Collapse
 
hesoyamm profile image
Kishore kunal

I once worked on a SQL query that took seven days to execute. Exact same situation.

Collapse
 
ben profile image
Ben Halpern

Aghhhhhh!

Did things ever fail after 5 days and you need to start over? I mean β€” sometimes I'm running a script that requires me to keep my laptop open and I forget that. πŸ˜…

Thread Thread
 
hesoyamm profile image
Kishore kunal

So it started Like executing for
2 days : Didn't execute, abort
3 days :Didnt work, abort
5 days: Didnt work, abort
finally it was long weekend and i executed it in my cloud virtual machine.
7 days : Finally Done.

ibb.co/6XRc7Xt : See this.

Collapse
 
thiagodebastos profile image
Thiago de Bastos

Oh man do I feel this. It's too real haha