DEV Community

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

Collapse
 
ben profile image
Ben Halpern

Wait so they pranked you into writing the script and executing? Can you expand on the story?

Collapse
 
krtobias profile image
Tobias Krause

Well I was a trainee (German system) and it was my first month or so. My trainer just wanted to show me some cool stuff on a dummy database. Sadly though the DB software was still connected to the main db. So yeah I deleted main. Of course our admins had backups but still ... Yikes