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.

Learn enough C to survive

105 pointsby the_jesus_villaover 2 years ago

12 comments

throwawaaarrghover 2 years ago
You should learn C because it's a gateway to deeper knowledge. The kernel uses it, about a thousand programs shipped with Linux use it, embedded programming uses it. It helps you understand how lower level network protocols have been designed, how to efficiently use memory, how to design algorithms and why they're harder than you think. There's a crapton of libraries in C, most higher level languages have some extensions to take advantage of them. Sensitive security software will use it, due to various attack vectors that are slightly easier to deal with at a lower level. It's handy and expands your brain. And it's not going away anytime soon.
评论 #33230049 未加载
评论 #33230108 未加载
评论 #33230180 未加载
评论 #33229803 未加载
评论 #33229845 未加载
kensaiover 2 years ago
&quot;On my 18th birthday, my girlfriend asked me to drive to Barnes &amp; Nobles. She strolled in, then strolled out at a much faster pace. Then she handed me a copy of The C Programming Language, which she had just stolen...&quot;<p>Marriage material! :D
评论 #33229955 未加载
评论 #33229980 未加载
评论 #33229925 未加载
pksadiqover 2 years ago
&gt; Programming from the Ground Up<p>&gt; <a href="https:&#x2F;&#x2F;download-mirror.savannah.gnu.org&#x2F;releases&#x2F;pgubook&#x2F;ProgrammingGroundUp-1-0-booksize.pdf" rel="nofollow">https:&#x2F;&#x2F;download-mirror.savannah.gnu.org&#x2F;releases&#x2F;pgubook&#x2F;Pr...</a><p>There is an updated version of the book from the author: &quot;Programming Under the Hood&quot; or &quot;Learn to Program with Assembly&quot;. See[0]<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;johnnyb&#x2F;programming_under_the_hood" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;johnnyb&#x2F;programming_under_the_hood</a>
评论 #33230876 未加载
wodenokotoover 2 years ago
&gt; Beej’s Guide to C Programming &gt; It’s straightforward and to the point.<p>I&#x27;m not saying its a bad book&#x2F;guide, but with sections like these:<p>&gt;Before we go on, why would I even begin to bother pointing out that a pound sign is called an octothorpe? The answer is simple: I think the word octothorpe is so excellently funny, I have to gratuitously spread its name around whenever I get the opportunity. Octothorpe. Octothorpe, octothorpe, octothorpe.<p>It claims to be aimed at programmers who are already proficient in high-level languages, but spends a whole paragraph explaining what code comments are.<p>I&#x27;m not sure it qualifies as &quot;to the point&quot;
评论 #33229957 未加载
habiburover 2 years ago
Learn enough C so that you can push your module written in Java&#x2F;Ruby&#x2F;Python&#x2F;Node into C, and all the other high level language users can pick it, compile it and use it natively in their language.<p>Imagine you wrote a new 3D model file-format and all other language users have to load the Ruby interpreter to use it.
seibeljover 2 years ago
&gt; <i>Then she handed me a copy of The C Programming Language, which she had just stolen (though at $80, it’s not clear who was robbing whom to begin with).</i><p>Code of Dishonor
评论 #33230000 未加载
评论 #33229587 未加载
whateveracctover 2 years ago
If you want to be a Haskeller, learn some C too. They are fully complementary. The Linux tooling, gamedev libraries, etc you have available if you leverage C is great. And Haskell&#x27;s FFI and C tooling making it simple.
pkruminsover 2 years ago
C is life.
the_jesus_villaover 2 years ago
Just a bibliography of some C books
评论 #33229199 未加载
jjthebluntover 2 years ago
This is so strange : the original Kernighan and Ritchie The C Programming Language book from the early 1980s was a couple hours front to back read, and you&#x27;re done, and you&#x27;re up and programming. (Or you&#x27;re not a computer person at heart perhaps?)<p>The followup edition I think had the C89 draft ANSI standard, and was the beginning of the way way way more wordy era.<p>That the idea of &quot;learn enough C to survive&quot; is a concern for anyone seems to mean the concise clarity of the original K&amp;R book is long lost?
评论 #33229676 未加载
评论 #33238028 未加载
catiopatioover 2 years ago
&gt; <i>Then she handed me a copy of The C Programming Language, which she had just stolen (though at $80, it’s not clear who was robbing whom to begin with).</i><p>No, it’s actually crystal clear.
评论 #33229797 未加载
behnamohover 2 years ago
Isn’t a more future-proof approach to learn Rust instead? Linux kernel is incorporating Rust, and programmers often adopt open source packages written in their favorite language. Rust being the most favorite language for 5 years in a row must say something.
评论 #33229926 未加载
评论 #33230280 未加载
评论 #33229940 未加载
评论 #33231017 未加载
评论 #33230823 未加载