Troels Lauritz Reese Christensen

October 21, 2024

I feel like a learned a lot this weekend. I had frustrations and successes. It's quite remarkable how quickly angst and frustration depletes from ones system after a problem is solved.

I made a few good strides this weekend on my music quiz app. It did come with a hard learned lesson. I was having fun prompting and coding and made a nice breakthrough on the app. I could now both generate a list of songs based on an input, but I could also retrieve those songs from Spotify, and have them be part of the quiz. This got me so elevated that I forgot to think clearly and decided to close things down, and forgot to commit my changes.

A few hours later, I sat down to do more. I was obviously killing it that day, I needed to do more. Unfortunately, Cursor had decided to shit all over the place after a few bad prompts from me, and that is when I realized I had made a mistake. The app was broken and I didn't even know where to start. Ctrl + z was not an option.

First, I tried to look at my git history, the last 'save' was a day earlier. Great, my morning breakthrough was in danger. Then I went back into the history of the conversation with 'Claude'. I tried retracing the steps, but it didn't work for some reason that I had yet to understand.

Instead I tried something I had done before, I told Claude to restore the codebase to how it was at a certain point. This didn't work either. I then tried asking Claude the exact same queries I had prompted with that morning. To my dismay, Claude now came up with different ways of solving it. I didn't feel like doing it all from scratch once more.

An hour of frustration, head-scratching and swearing later I got it restored to where I was before I started fucking things up. My app was working like it did earlier, I was relieved.

I don't feel like diving in deeper on how I ended up solving it. All I need to remember from yesterday is.. Commit, and do it frequently. I have over a decade of experience developing, I can't believe had to relearn this lesson. Now that I am over that hurdle once more, I don't mind it at all.

- Trolz

About Troels Lauritz Reese Christensen

Hey! Welcome to my brain.
This is a place where I dump my thoughts when I run out of random access memory.
trolz.dk