DEV Community

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

Collapse
 
alohci profile image
Nicholas Stimpson

A couple of decades or so ago, I wrote some code in Occam for the transputer. Which was an interesting challenge, thinking about parallelism at every code line. What I wrote worked well, but the project needed some hardware built for the data inputs, which never got built, and eventually the project was canned.

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Did you find it strange that they had you build the software when they knew that the hardware wouldn’t be available? Or did you come to terms with it?

Collapse
 
alohci profile image
Nicholas Stimpson

The expectation at the time the code was written was that the hardware would be built, so that wasn't an issue.

Reflecting on your question further, when I think of my code which got thrown away for one reason or another, I don't think I mourn any of it as such. What is more a matter of regret to me are the skills I acquired along the way that I wasn't then able to exploit later. Like writing in Occam. Or the COM/DCOM/COM+ API. Or Oracle Data Cartridges.

Thread Thread
 
cubiclebuddha profile image
Cubicle Buddha

Good point. Time spent learning isn’t wasted. I do really regret times that I wasn’t learning a ton but I still worked nights and weekends to impress new bosses, etc. I wish I spent that time with family and friends instead! :)