Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think books that teach through projects is a relatively recent trend. C is too old for that, and already phased out of mainstream (in the sense of everyone's daily programming language) long before the trend picked up.

There still exist such books. C is a system programming langugage so you have to look in that direction. There is a compiler book called "Game Scripting Mastery", which was an early 200X book that holds your hand through making a working Virtual Machine of a C-like scripting language. It is written in C and has the full code for that Virtual Machine. This is definitely a "learn-by-project" book.

I think you can probably find more examples by looking in that direction. There is another trick: Browse the websites of top 20 CS universities and find all their system programming labs. You will guarantee to find many mid-size C projects.

Last but not least, here is the famous awesome-C project list. Treat yourself. Many of them are walkthrough type tutorials (e.g. write a text editor in C) and can be very fun to code.

https://github.com/oz123/awesome-c



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

Search: