Hacker News new | ask | show | jobs
by dcchambers 1723 days ago
It's kind of a shame that C has fallen out of favor as a language for new programmers these days. I still haven't found another programming book as good as K&R and its hard to convince people to read a book for a laungage they probably won't use.
1 comments

> It's kind of a shame that C has fallen out of favor as a language for new programmers these days.

I really like C, but I also disagree with that sentiment. C/C++ should be used as minimally as possible. New projects should use something secure by default in 2021 unless they have a specific articulable need (i.e. not "I like C more" or "I don't know [alternative]").

C/C++ usage should fall into three categories:

- New OS and System Utilities (in particular for hardware with no other language support).

- Existing projects written in C/C++.

- Areas where all the resources and support are only currently in C/C++ (e.g. game development).

I'm glad fewer new developers are getting into C/C++. That will increase the costs and make companies less likely to pick it unless they absolutely must.