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.

The Ten Commandments For C Programmers by H. Spencer (1987)

12 pointsby schleissalmost 4 years ago

5 comments

nanisalmost 4 years ago
Looks better rendered in PDF: <a href="https:&#x2F;&#x2F;www.unur.com&#x2F;10cfcp.pdf" rel="nofollow">https:&#x2F;&#x2F;www.unur.com&#x2F;10cfcp.pdf</a><p><pre><code> groff -ms -Tps 10cfcp.in &gt; 10cfcp.ps ps2pdf 10cfcp.ps</code></pre>
zvralmost 4 years ago
Ah, I remember seeing this when it was first posted in comp.lang.c and being duly impressed. I had definitely a printed typeset copy in various work environments.<p>Remember, it was a time when the language had no function prototypes, and we were seeing more and more code abusing parameter passing and value returning by &quot;knowing&quot; what happens.<p>Re-reading it now, I&#x27;m amazed on how general the commandments are, the underlying wisdom applicable to any language and system.
cozzydalmost 4 years ago
The last thing we need right now is more antivax propaganda.
drewg123almost 4 years ago
&gt;Thou shalt foreswear, renounce, and abjure the vile heresy which claimeth that ``All the world&#x27;s a VAX&#x27;&#x27;,<p>We could update that to &quot;All the world&#x27;s linux&quot; today.
评论 #27321949 未加载
pitchedalmost 4 years ago
&gt; <i>Thou shalt study thy libraries and strive not to re-invent them without cause, that thy code may be short and readable and thy days pleasant and productive.</i><p>Just reading through the list of names of libraries in a package manager is more than I can handle, let alone reading through their APIs. I imagine this was a bit more possible to do in the 80s. Still though, I wish there was a more manageable way to handle this.