r/cpp • • Dec 07 '22

C++ overtakes Java in language popularity index

https://www.infoworld.com/article/3682141/c-plus-plus-overtakes-java-in-language-popularity-index.html
382 Upvotes

137 comments sorted by

View all comments

119

u/feverzsj Dec 07 '22

Kinda make sense. There are tons of embedded c++ jobs emerged this year. Mostly from automotive and medical industry.

68

u/SkoomaDentist Antimodern C++, Embedded, Audio Dec 07 '22 edited Dec 07 '22

Only a fool starts a new embedded project using C unless it's for a rare niche platform that doesn't have a working C++ environment. Unfortunately there are still many fools around.

E: I didn't expect to get downvoted on /r/cpp of all places for advocating using C++ instead of C for systems where C++ is almost ideally suited for...

37

u/[deleted] Dec 07 '22

C is still popular for its simplicity.

13

u/Jannik2099 Dec 07 '22 edited Dec 08 '22

Literally all the flaws of C are because it's "simple"

No type safety is simple. No RAII is simple. No bounds checking or guarantees is simple. No thread safety is simple. No memory safety is simple.

C is the most dysfunctional non-esolang on the planet, precisely because everyone insisted on it being "just simple pointers"

2

u/anacrolix Dec 08 '22

Simple itself is not a flaw tho.