3 ms·
> I don't have code that I knew was wrong to write the way I wrote it when I wrote it, given whatever priorities and constraints I was working under. I didn't
by krstck 13y ago
> I don't have code that I knew was wrong to write the way I wrote it when I wrote it, given whatever priorities and constraints I was working under.
I didn't intend to ask about code that you knew was wrong at the time. I meant to ask about code that was the best that you knew how to do, but given what you know now, makes you feel embarrassed. This is something that I'm struggling with.
- tbrownaw 13y agoNo, that doesn't bother me. I'm perfectly happy to say, yes I wrote this, yes it's crap, this is why it's crap, here are some ideas for fixing it, here's why I haven't fixed it. Good judgement comes from experience. Experience comes from bad judgement. God grant me the serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to know the difference. The reasonable man adapts himself to the world. The unreasonable man adapts the world to himself. Therefore all progress depends on the unreasonable man. Much of programming can be viewed as adapting the world. It's not reasonable. It requires experience. Gaining experience will inevitably show that what you've done in the past could have been done better. You can't change what was done, so don't bother worrying about it. You can learn from what you did, but recognizing the problems is how you know you've learned, how you know you've improved your judgement. This is a good thing. Don't try to hide it. So you didn't spring into existence already knowing perfectly how to adapt the world? So what? You're not supposed to.