Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
How did you learn C?
5 points by johnnyApplePRNG on June 26, 2021 | hide | past | favorite | 2 comments
I am learning C right now and am curious to hear how others went about it.

I have a hobby project I want to speed up so I thought this is the perfect opportunity to crack that K&R book that's been on my shelf for the past decade in pristine condition.

Am about 3/4ths of the way through it now and whoa page 123 is blowing my mind a bit... stopping there for now.

There are some pretty terrible teachers and books out there too I have come to learn.

CS50 from Stanford and Kris Jordan's CS211 from UNC on youtube have been a great help. Curious if anyone else has any more high quality free C videos like that?



I learned C with K&R (1st ed.) running on Unix v5. Have since upgraded to 2nd ed. and it is very dog-eared. Running mostly on NetBSD and Debian. But have written masses of code on a huge range of Unix systems, e.g. AIX, HP-UX, Solaris, etc.

As for p123, yeah mind boggling. But I have never had to do anything that complex in practice.

The best thing about well written C programs is that they port easily. I have 20+ year old programs that compile and run fine on new systems, even Mac OS/X. Have avoided porting to Windows. Most of my work is with servers and web front-ends. Lua and quickJS are great for implementing scripting on top of libraries of modules/functions written in C.


I learned C with Turbo C on MS-DOS systems for a college class.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: