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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: How to learn good programming practices by yourself?

2 点作者 whatitdobooboo超过 5 年前
I am trying to find a job in programming (non-frontend for personal preference) and I am trying to go through all the system design and leetcode type questions - but how would one go about learning actual coding practices and thought process?<p>I am in the middle of reading &quot;Code Complete&quot; and find it quite nice, but don&#x27;t know how I can directly translate this to my code in a helpful way.

2 条评论

mrkeen超过 5 年前
Any coding practice or technique exists to thwart some kind of problem. The more you code, the more problems you run into, the more you remember &quot;Oh, this is why you do X&quot;.<p>If you&#x27;re writing one algorithm to solve one problem, it&#x27;s enough to make it correct and fast, and you probably don&#x27;t need to care about DRY, SOLID, YAGNI or anything else. But if it&#x27;s a &quot;real world&quot; project, these concepts can help you change course quickly when requirements change.<p>FWIW I don&#x27;t remember anything I read in Code Complete. Maybe it&#x27;s time to skim it again.
a3n超过 5 年前
Create something useful and interesting, put it on github, and manage PRs.<p>Repeat.