DEV Community

Discussion on: The problem with temporary solutions

Collapse
 
danieljsummers profile image
Daniel J. Summers

I once wrote a conversion script from scratch, which worked first time through. It was a "one-off", so I didn't bother keeping up with.

A few months later, we figured out that the underlying code that had made this migration necessary never got updated, meaning that we needed to run it again. I couldn't find what I had written, and I must have had 5 or 6 bugs in my original recreation of it. :/

Lesson: always save everything you write, particularly if it's the elusive first-time-worked unicorn...

Collapse
 
martyonthefly profile image
Sylvain Marty

This happened to me a few months ago : I wrote a "one shot script" which was fully functional but far, far, far away to be optimized.

I remember what my manager said to me : "Da hell no! We don't need to optimized a one shot script! Are you crazy?!"

Today, we keep using this script and he is optimized af... --"