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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What do you do while you're waiting for code to compile?

10 点作者 karmacondon大约 9 年前
I often find myself working on something that takes awhile to run. I make a change and then have to wait up to three minutes before I can see the result. It&#x27;s enough time that I feel silly just staring at the screen, but not long enough to accomplish anything else. So I usually check hn or my email and end up losing 15 or 20 minutes.<p>There have to be a lot of other people with this problem. What do you do while you&#x27;re waiting a short time for something to run or compile?

8 条评论

PaulHoule大约 9 年前
(1) Your build cannot possibly be fast enough. Your boss will almost always think it is a waste of time to spend time speeding up your build, but if you work out the math in terms of minutes spent and minutes saved, the payoff time can be as little as a week for spending 2 days improving your build.<p>(2) Your build cannot be fast enough. Quite likely you have a machine that was chosen to be crazy cheap (Dell) or crazy beautiful (Mac) but not chosen to be crazy fast. A crazy fast machine with an SSD and the best CPU you can get will improve your productivity enough to pay for itself in 2 months or so if you do the math. Your boss won&#x27;t believe it, so you might just get one for yourself.<p>(3) It never hurts to get up and move around<p>(4) It is not a bad idea to stare at the screen and think. In fact, carefully reading the output of your build should piss you off enough that you do something at (1)<p>(5) Overall it is dangerous to juggle a large number of balls in the area, but one exception to this is to carve out a single task you can work on while waiting for builds and make switching to and from that task as easy as possible. This task can be anything that makes progress towards your goals, such as sorting the backlog, reading technical documentation, etc.<p>(6) Set up some kind of chime to ring when your build is done, that will help you get back to it. It&#x27;s one of those things that people don&#x27;t seem to do, but it works.
评论 #11626113 未加载
theGREENsuit大约 9 年前
Get up and walk around. Look out the window. Give your eyes a break from staring at your screen.
gt565k大约 9 年前
Work on UI stuff for other tasks that don&#x27;t require the back-end.<p>Sometimes I&#x27;d read up on technical articles &#x2F; blog posts related to what I&#x27;m working on.
jasonkester大约 9 年前
What language are you working in that takes this long to compile? I&#x27;m used to C# compile times of a few seconds for thousand-class, 20 project solutions on a nothing-special laptop.<p>Is it just a <i>really</i> big project, or do there exist languages that compile much slower than others?
yolesaber大约 9 年前
Hang out and enjoy life.
bbcbasic大约 9 年前
I am waiting for a compilation now. Here I am.
imauld大约 9 年前
What&#x27;s compiling? - Python Dev
mediocre_dev大约 9 年前
Yoga or push-ups !