TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby whatitdoboobooover 5 years ago
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 comments

mrkeenover 5 years ago
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.
a3nover 5 years ago
Create something useful and interesting, put it on github, and manage PRs.<p>Repeat.