|
|
|
Ask HN: Why do I feel anxiety when I'm writing code?
|
|
2 points
by acidus
3268 days ago
|
|
I'm trying to rewrite something from scratch and I'm not finding it easy at all. I'm supposed to be doing this for fun but I'm struggling quite a lot. I kind of enjoy it, don't get me wrong, I love programming - but I also feel the pain. Most of the times I don't experience this feeling. But it happens consistently when I'm facing a tough problem that it's a bit over my head. Why is this happening? Do you have any tip to overcome it? Hard problems should be fun to solve, not the opposite. This is not new to me. I remember I had a similar issue in school. It feels that at some point my cognitive capacity hits the wall and anxiety kicks in. |
|
1. We are constantly screamed at on sites like HN that there is a right and a wrong way to do something. It's almost always just a fashion trend of some kind, and the reality is: there is rarely a single "best way", the pros mess up all the time, and even the perfect design will grow haggard with age, and that ain't a long time in this business. Perfect is an illusion, so just try to make some reasonable choices.
1.5. Naming things is hard, but there is no perfect name. Pick a single letter and move on! :)
2. You are replacing something that already works. As you begin your planning, you'll start to notice all kinds of little features you'll have to build out.. the boring minutiae that you didn't even notice the first version did.. and then the scope of work changes, becomes less thrilling, and that can be discouraging.
3. It's always difficult to start from a blank page, especially in a software system where the "method of entanglement" of all the moving parts is such a key design decision. Sometimes it's good to just pick some interesting part and write that in isolation. Then you will get some momentum going and you can move on to fleshing out the rest.
4. Anxiousness sometimes comes from not knowing the full scope of the problem. Try sketching on a napkin some pieces of what you have to do. Try to start from large blocks and decompose. This might help you feel more comfortable committing some code.
5. Maybe the project is just way more boring than you thought. :)