Have you had moments like this?
Talia

Talia @taliastorymaker

About: Front end web dev. CSS lover. At my job, currently using React and Next.js and dipping my toes into Ruby on Rails.

Location:
Florida, United States
Joined:
Jun 29, 2020

Have you had moments like this?

Publish Date: Sep 29 '23
14 11

You realize you've gone down the completely wrong path in your code and basically have to scrap what you've been doing and start over...but you feel bad about all the work you've done and tell yourself there's a slim chance it could be used someday, and so you save your work in another file?

Comments 11 total

  • Mike Talbot ⭐
    Mike Talbot ⭐Sep 29, 2023

    I own that t-shirt for sure :)

  • Jake Lundberg
    Jake LundbergSep 29, 2023

    Absolutely! I've done this more times over the years than I care to admit (if I did, I might cry!). It's almost always helpful to analyze your decisions to see where you went wrong though...so...

    Looking back on the work you did. In the beginning, what made you decide to go down the road you did? Was there information that pointed you in that direction?

  • CitronBrick
    CitronBrickSep 30, 2023

    I've done this quite sometimes.
    Even though, it might have been a better solution to keep it in a different git branch, instead of another folder.

  • Ben Halpern
    Ben HalpernSep 30, 2023

    Absolutely. I really try to focus on what I learned in the process.

  • Ingo Steinke, web developer
    Ingo Steinke, web developerSep 30, 2023

    Even if you'll never use it in production, it's good material for learning and optimizing future strategies. I usually create an alternative git branch to save such a branch.

  • Nashe Omirro
    Nashe OmirroSep 30, 2023

    I do the opposite, I throw away that code and then actually need it afterwards so I shoot myself in the foot twice.

  • Ben Sinclair
    Ben SinclairSep 30, 2023

    You're describing what I usually refer to as 4:30PM.

  • Eckehard
    EckehardSep 30, 2023

    You shoud not complain about the work you lost, but be happy about the time you saved using a different approach.

  • Daniel Rendox
    Daniel RendoxSep 30, 2023

    I feel like there is actually nothing wrong in that

  • Randall
    RandallSep 30, 2023

    Yes I do this all the time. Except I often forget to save the new file after pasting my code, and if I do save it, I'll never use it anyway.

  • Cathrine
    CathrineSep 30, 2023

    Oh yeah. It took me years to stop hoarding pieces of my code. But now I try to clean it up right away. It's nearly never practical to go back to your old code and try to make sense of it.
    Anyway, it's never a waste of time. It's called a learning process.

Add comment