AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Commit Code When It Works, Not After Refactoring
I did this to myself a couple of weeks ago, where i was trying to make a code that was already working look better. I ended up breaking it for about three hours, and couldn't figure out what i had done. And if i had just not put in those four lines, or committed my code before i added them, it would have saved me a whole time of time. That's actually a good sig way into one that i have continued to re learn as i have gone along in my career: commit the code when it works,. Not after you've decided to refactor it, and you're kind of half way through the refactoring.