Re:Ask HN: Improve C language skills after K&R?
by kristianp on Thursday July 28, 2016 @07:27PM
(#12183963)
Implementing some dynamic data structures should give you a good understanding of how pointers work and allocating and freeing memory. Start with linked lists, then binary trees, then B-trees if you have time. Priority queues (heaps) are fun too.
[ Parent
| on HN ]
Re:Ask HN: Improve C language skills after K&R?
by colanderman on Thursday July 28, 2016 @11:08PM
(#12184829)
Exactly this. Implementing low-level algorithms focuses on C's strengths: arrays (memory layout) and manual memory allocation. They will be your biggest blind spots coming from a dynamic language, and they are the primary reason one would use C.
After that I would move on to implementing something like a telnet or simple HTTP server, focusing on using sockets and processes correctly: handling all error cases, ensuring no deadlock, etc. That is C's other strength: it is the language of Unix.