News for hackers. Stuff that matters.
Re:Ask HN: How do I learn C properly? by vocram on Sunday March 08, 2020 @03:44PM (#22520087)
Becoming proficient in a language usually involves: - writing code with it long enough, - collaborate in a project based on it, - reading code other people wrote, - keep yourself up to date by following the language evolution, - go more in depth in language internals, compilers, etc...

I wrote C for 10+ years (mostly bare metal FW), yet I am still amazed of how little I know about it. Recently for example I learnt of all the things the dynamic linker does in Linux, how symbols memory addresses are resolved at runtime using PLT, ....

The good point about C is that it can be used for very different kind of projects, so the choices are a lot.

Re:Ask HN: How do I learn C properly? by stiray on Sunday March 08, 2020 @04:05PM (#22520228)
This was a pure satisfaction when I have first seen it :)

https://en.wikipedia.org/wiki/Duff%27s_device

Re:Ask HN: How do I learn C properly? by saagarjha on Sunday March 08, 2020 @08:22PM (#22521759)
(Please don't write code like this anymore)
Re:Ask HN: How do I learn C properly? by stiray on Monday March 09, 2020 @03:58AM (#22523747)
Sure, duff device is obsolete due to cpu zero overhead looping but it is still nice to see, mind boggling piece of code. :)
Re:Ask HN: How do I learn C properly? by mrr54 on Monday March 09, 2020 @10:04PM (#22532090)
(Please do write code like this anymore.)