TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

11 点作者 grover_hartmann将近 10 年前
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 条评论

DarkTree将近 10 年前
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 未加载
michaelmcmillan将近 10 年前
I use TDD. No matter how complicated the task may be, I have found writing tests first really reduces stress.
评论 #10024706 未加载
everyone将近 10 年前
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 未加载
meierjo将近 10 年前
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 未加载
gull将近 10 年前
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_hartmann将近 10 年前
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 未加载
aplummer将近 10 年前
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.
jordsmi将近 10 年前
The joy of fixing the bug&#x2F;creating a solution for a non-trivial problem is enough for me.
评论 #10025368 未加载
koberstein将近 10 年前
The complicated problems are not the pain to me. The trivial things are the pain.
评论 #10025364 未加载