Hacker News new | ask | show | jobs
by ralferoo 744 days ago
> The sad thing is that I start the refactor, realize midway that I did not think it through, waste a day of my life, go to sleep, and repeat the same tomorrow thinking that I have found a "better way" to do it, just to make the same mistake again in a different place.

FWIW, this isn't wasting your time. This is exactly how your learn your craft. You don't learn much from things that work right first time, you learn from making mistakes, and understanding why they failed. Over time, that turns into intuition - a gut feeling that approaching a problem one way will fail because you remember that time you did something a bit similar and it turned out to be a bad idea. Given enough experiences like this, when you encounter a new problem, you'll very quickly be able to limit the solution space down to something manageable and then you have a good chance of coming up with a good solution almost right away. You might still make mistakes or bad decisions, but the more of those you've had in your past, the less likely they'll be in your future.