TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How do you deal with the pain of programming?

11 pointsby grover_hartmannalmost 10 years ago
Programming is often a very pleasant activity.<p>However, there are times this is not true, we as programmers usually get stuck with something that is complicated to solve.<p>That might be a bug, a non-trivial problem that we need to solve, or whatever it might be that we cannot solve quickly.<p>How do you deal with the stress though?

9 comments

DarkTreealmost 10 years ago
If it weren&#x27;t for that stress, I wouldn&#x27;t be a programmer. It is that variability, and challenge that keeps me coming back and satiates my desire to problem solve. But I understand, in the moment, it is hard to step back and see programming this way.<p>The only thing I do when feeling stressed, is to physically step back. I walk away from the computer, go on on a run, or get some sleep.<p>It is often within this absence that the solution to my programming problem emerges.
评论 #10025084 未加载
评论 #10025561 未加载
michaelmcmillanalmost 10 years ago
I use TDD. No matter how complicated the task may be, I have found writing tests first really reduces stress.
评论 #10024706 未加载
everyonealmost 10 years ago
What your describing is the best part for me. Obviously spending days languishing in confused and lonely impotence is horrible, but no job (in my experience so far) has the same high of going from producing nothing (ie. program doesnt work at all) to producing a perfect working product in one second, one line, one moment of insight.<p>As I get more experienced I get stuck or encounter problems less and less, I think I just keep doing more challenging or unfamiliar work in order to keep chasing that high.
评论 #10024113 未加载
评论 #10024086 未加载
评论 #10025105 未加载
meierjoalmost 10 years ago
I usually nap. More often than not, I wake up with a solution. Check this link for a good napping procedure <a href="http:&#x2F;&#x2F;www.artofmanliness.com&#x2F;2015&#x2F;02&#x2F;18&#x2F;hypnagogic-nap&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.artofmanliness.com&#x2F;2015&#x2F;02&#x2F;18&#x2F;hypnagogic-nap&#x2F;</a>
评论 #10027666 未加载
gullalmost 10 years ago
I deal with it with an old trick.<p>(1) Backing away. Pushing through stressed produces inferior results.<p>(2) Using a different constraint. That&#x27;s the real trick.<p>Only I can&#x27;t make myself pick the right constraint from the get go if I&#x27;m feeling stressed, so I stay stuck in a loop. I need to back away for the subconscious to reveal the right constraint.<p>It&#x27;s as if I have to give up first. It seems it&#x27;s only then I finally let myself attempt a solution I haven&#x27;t tried before.<p>So ironically the way to deal with the stress of getting stuck and having deadlines is to manage to reach the point where, after trying everything, you sincerely no longer give a damn.
grover_hartmannalmost 10 years ago
Some of you guys are misunderstanding me, I also enjoy the challenge of solving real problems.<p>But mix that with the pressure from your employer and deadlines and you get even more stress.<p>This is what I&#x27;m referring to.<p>How do you deal with that?
评论 #10024846 未加载
评论 #10025575 未加载
评论 #10025574 未加载
评论 #10025659 未加载
aplummeralmost 10 years ago
I like to talk about the problem with other engineers. It sometimes feels like you learn everything the hard way but it usually turns out that&#x27;s how it is for everyone.
jordsmialmost 10 years ago
The joy of fixing the bug&#x2F;creating a solution for a non-trivial problem is enough for me.
评论 #10025368 未加载
kobersteinalmost 10 years ago
The complicated problems are not the pain to me. The trivial things are the pain.
评论 #10025364 未加载