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: What books have most influenced your coding style?

10 pointsby davikr7 months ago

8 comments

mindcrime7 months ago
Like @JohnFen said, my style has also evolved over multiple decades and it&#x27;s hard to pin it down to one (or even a few) specific titles. But I suppose <i>Teach Yourself C</i> by Herbert Schildt deserves a nod, as it&#x27;s basically the book I first learnt programming from.<p>Other than that, I can recall being influenced by a number of the <i>X: How To Program</i>[1] books by Deitel and Deitel. I might also mention <i>Rapid Development</i> and <i>Code Complete</i> by Steve McConnell. And <i>The Pragmatic Programmer</i> had some influence.<p>[1]: including &quot;C: How to Program&quot;, &quot;C++: How to Program&quot; and &quot;Java: How to Program&quot;.
marssaxman7 months ago
I remember finding much of value in &quot;Code Complete&quot; by Steve McConnell, though it was long enough ago that I cannot recall specifics.
JohnFen7 months ago
My coding style has evolved over the decades and I can&#x27;t honestly say that any book had a major influence over what it is today.<p>But, early in my career, the book that was most influential to my style was the K&amp;R, mostly because it corrected bad style habits I had learned from languages before I learned C.
wruza7 months ago
<a href="https:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;1&#x2F;indent" rel="nofollow">https:&#x2F;&#x2F;linux.die.net&#x2F;man&#x2F;1&#x2F;indent</a><p>I remember reading through it and deciding options based on what I’ve seen elsewhere. Later I just wrote in the chosen style without re-indent(1)ing whole files, cause this is generally a bad idea in my book.<p>The only change I made in around last ten years was using “}\nelse {“ because I realized that I’m post-newlining the preceding block anyway for visibility and “\n\n} else {“ looks kinda ugly.
sandwichsphinx7 months ago
Designing Data-Intensive Applications, Martin Kleppmann (O&#x27;Reilly 2017)<p>The Pragmatic Programmer, Andrew Hunt, David Thomas (1999)<p>Gwynne&#x27;s Latin, N. M. Gwynne (2015)
评论 #41932088 未加载
not_your_vase7 months ago
After reading Uncle Bob&#x27;s bible many years ago, I thought about it as <i>the</i> sacred script, and tried to follow it to the t. During the next couple of years I learned that many of its advises need to be taken with a varying amount of salt - though I think that book can be still recognized in most of my work, if at least in parts.
vismit20007 months ago
&#x27;A Philosophy of Software Design&#x27; by John Ousterhout
评论 #41948440 未加载
ano-ther7 months ago
The Pasta Codex: 1001 Recipes