logoalt Hacker News

The Little Book of C

63 pointsby ghostrssyesterday at 8:35 PM18 commentsview on HN

Comments

robvirenyesterday at 10:43 PM

I wish someone spoon fed me how to add path for C compilers in Windows back in the day. We lose a good 90% of people to installing C from ever learning C. Feel like godbolt or an online compiler might be a reasonable starting place these days. C is amazing but can be so punishing early on compared to stupid opening up any text editor on earth and writing an HTML file. Not advocating for more JS learning but it's hard to beat the getting started on that.

show 1 reply
JSR_FDEDtoday at 12:19 AM

The author is right about C leading to better understanding of computers, OSes and other languages.

For me a breakthrough moment was when I saw my C code interleaved with the generated assembly. Registers, calling conventions, calling OS functions…all laid bare!

smusamashahyesterday at 10:39 PM

I wonder how many hallucinated wrong facts are in there. It looked like a good resource until I learned its LLM generated. https://news.ycombinator.com/item?id=45479268

show 1 reply
i_am_proteusyesterday at 9:33 PM

Another very fine online reference for someone new to C is Beej's Guide to C Programming: https://beej.us/guide/bgc/

(Here is a reference to K&R, the standard first reference to C, because I am obligated to make such a reference.)

show 4 replies
agrishinyesterday at 11:12 PM

The fact that it's AI generated is simultaneously thrilling and frightening. Especially considering that some AI Agents might be trained on that.

androiddrewyesterday at 10:33 PM

Wish they had this for zig

threethirtytwoyesterday at 9:45 PM

Ai is getting really good. I can’t tell the difference anymore.

show 2 replies