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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: I get bored while programming?

5 点作者 yuashizuki超过 10 年前
I get bored while programming, do u guys know how can one program for long hours non stop. I program for like 30min and then my mind starts to wander. How to resolve this issue, do u guys face the same issues. Basicaly in other words how to focus constantly for hours.

6 条评论

powatom超过 10 年前
The easiest way to train yourself is to define strict boundaries for what you will achieve during a defined period of time.<p>If you have trouble focusing, the worst thing you can do is leave your attempts completely open-ended and vague. Define precisely what you want to achieve in an hour, and then give yourself an hour to do it.<p>If you don&#x27;t get it done in an hour, stop and take a break, then give yourself another hour to finish it and start the next thing. Work in well defined blocks of time - the point is not to get good at &#x27;doing lots of things within an hour&#x27;, but &#x27;sitting down and working straight for an hour&#x27;. Once this isn&#x27;t a struggle for you, bump it up to an hour and a half, then two hours etc. Don&#x27;t avoid breaks - your brain will continue to work problems out while you&#x27;re off making a cup of tea or getting some air.<p>If you need practice, then you need something to practice towards. Give yourself boundaries.
saluki超过 10 年前
Having interesting work is definitely a plus when you&#x27;re excited about completing something time usually flies by.<p>The Pomodoro technique might be something for you to try.<p>Basically choose a goal&#x2F;task work only on that for 25 minutes then take a 5 minute break (play a round of a game you like, browse the news, etc) the get back on your task or move to the next task if you complete the first one.<p><a href="http://en.wikipedia.org/wiki/Pomodoro_Technique" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Pomodoro_Technique</a><p>Sometimes when I&#x27;m in a groove I just keep going, but if it&#x27;s a boring tedious task it&#x27;s nice to break for 5 minutes.<p>There is a cool OSX app that shows a countdown at the top bar and that&#x27;s good incentive to keep at it and try to knock out tasks in 25 minutes.<p>Soon you&#x27;ll be estimating in pomadoros (30 mins).<p>Good luck staying focused.
Klockan超过 10 年前
The problem isn&#x27;t that programming is boring, the problem is that you can&#x27;t focus unless the task is interesting. Not being able to focus for more than 30 minutes as an adult is abnormal. But programming is mostly boring and tedious, there is no way to get around that.<p>I used to have the same problem but I have been fine since I started taking ritalin. Before I could do around 10 hours in a good week but now I can easily do 60 in similar circumstances. Could be an alternative if you are open to it. You would need a diagnosis though.
评论 #9075153 未加载
评论 #9074663 未加载
gamechangr超过 10 年前
If you get bored in 30 min, programming may not be a natural fit for you.<p>I get restless about 4-6 hour mark, but I am great for the first three hours.<p>One trick that does help when I am really tired is to play music. I use classical (or no words) music if I am having a hard time focusing. It helps me more than other kinds of music and I do listen to everything at different times, but classical really keeps me focused!<p>Hope that helps
Rainymood超过 10 年前
I am of the notion that, to some degree, the brain can be trained to focus.<p>You could try cycling work&#x2F;play with MagicWorkCycle (google it) and work up from 10&#x2F;5 to 25&#x2F;5, which is standard pomodoro.
kiraken超过 10 年前
Then maybe coding isn&#x27;t for you? You need passion to code, but if you get bored in half an hour i doubt you have it
评论 #9080643 未加载