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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: As a programmer, what do you wish you knew at 25?

6 点作者 FahadUddin92超过 6 年前
What have you learned now that you wish when you started?

5 条评论

makecheck超过 6 年前
The most carefully-constructed, architecturally-pure piece of code will still break in the face of future requirements. And in a surprising number of cases, it will break on the <i>very first</i> new requirement. Keep it straightforward and get it done.<p>You will almost never be working on something so performance-critical that it truly needs cleverness and super-optimization. And you will rarely have time to properly <i>measure</i> a particular thing anyway. You <i>will</i> be expected to frequently change things and super-optimal code is a pain to modify.<p>You will work with programmers with a variety of skills and it will often be impossible for them to maintain things of moderate complexity. Or, your team will be using ancient tool versions that <i>can’t</i> reliably do the spiffy new thing in the language. Again, straightforward code wins.<p>When you write a test, first set up a case that fails to make sure your test can actually catch a failure. Too much time is spent debugging things because tests “pass” when the tests themselves just weren’t doing what they meant to do.<p>The code is king: put everything you possibly can in there (comments, etc.). Don’t let people set up external documentation that no one reads, because it becomes wrong&#x2F;misleading within a day. If you <i>must</i> have things outside the code, they <i>need</i> to be revision-controlled alongside the code, in the same repository.
avip超过 6 年前
The most important take, which took me years to sink in, is that code does not matter. So many things stem from that simple fact.
评论 #18032735 未加载
krapp超过 6 年前
To stop being obsessed with pointless BS and actually finish something. Even if it&#x27;s terrible.<p>Also, that I would <i>deeply</i> regret going to school to learn progamming once Udemy became a thing.
评论 #18038660 未加载
vjsc超过 6 年前
I wish I knew at 25 that programming is perhaps not my actual calling.
MrEfficiency超过 6 年前
Here are some<p>&gt;Yes I am a programmer, stop questioning it<p>&gt;Stop avoiding learning to make macros and job automation, it will pay dividends<p>&gt;Javascript is fine, not great.<p>&gt;Embedded systems should be my full-time hobby<p>&gt;Stop avoiding capitalism and start charging money for my otherwise free products.