DEV Community

Discussion on: What’s your favorite piece of code that you had to throw away?

Collapse
 
phlash profile image
Phil Ashby

It happens to me quite frequently, probably because I'm the idiot that jumps into writing proofs of concept before I forget the daft idea I just had - if I code it then I'll remember it.. yeah right :)

Recently - I threw away a SOAP 1.2 WSSecureConversation emulation (bit specific I know), that was intended to support legacy customers while we migrated our stack to .NET Core from .NET Framework. Written because Microsoft did not support their flagship SOAP library (WCF) on server side .NET Core. Until March. Now I get to ditch my hack and use theirs again

A long time ago, and less 'throw away', more 'left it somewhere': I had written an entire x86/16-bit kernel as a learning experience, and was pretty pleased that it booted and did stuff! My code was backed up to 0.25" tape (QIC-150 in fact) and safely stored in the fire safe at work. Then I changed jobs, and changed PCs, and... it was gone.

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

I bet you’re pleased to not have to maintain a custom SOAP library anymore! :)

Btw, I have also lost valuable things on old PCs (in my case it was a song I recorded with an incredible cellist). It always hurts. But as Thich Nhat Hanh says, things are beautiful because they are temporary! :)