HACKER Q&A
📣 b20000

C++ devs who went C only


Any C++ devs who got off the train and went C-only to focus their skill set and spend more time on picking up other archtectural type skills instead of keeping up with the new features and standards?


  👤 thesuperbigfrog Accepted Answer ✓
Some thoughts and reasons from the Zero MQ developer:

https://250bpm.com/blog:4/

https://250bpm.com/blog:8/


👤 Rochus
The rapid succession of new standards obviously overwhelms the compiler developers. Personally, I prefer code that is compatible with as many toolchains as possible and therefore stick with old standard versions. There is hardly a feature of the new standards that I miss. In the case of embedded systems with limited resources, I continue to work with C (and soon Micron).

👤 dyingkneepad
I am a dev who work mostly on C-only codebases and it's so... relaxing when I get the opportunity to write C++ so I can use stuff like std::vector or std::string. I think of C++ as a scripting language. On the other hand, I'm not looking forward to reading other people's C++.

👤 beyondCritics
I have seen that managers decided to let something rewritten in C, for various reasons, mostly to set the language culture. It seems obvious to me, that no C++ coder would switch voluntarily to C, since then he would reminded of the features he is missing every day glaringly. So either you switch to Zig, Rust,... or (if you are finally fed up) to a functional language or you choose to code in a certain subset.

👤 GianFabien
C++ has become a large language. Within any team it seems that each member has their preferred subset of the language. Going back to C only makes sense where C++ features do yield benefits. Personally I prefer code-reviews and project level standards/conventions to maintain cohesion and consistency.

👤 pubby
I've seen a few people/companies do this and it always baffles me. You don't have to use every C++ feature in existence, but a little bit here and there is far more productive and safe than writing C.

👤 ActorNightly
I went from C++ for personal projects to Python for wrapper and C libraries with Python callable code. I basically prototype shit in pure python, and then if i decide i need more speed, I just rewrite the thing in C extension. Its pretty easy to do. ChatGPT can even do 90% of the work for you.

👤 pjmlp
Yikes, C instead of C++, only when customers leave me no alternative.

👤 softwaredoug
How about C w/ Python? I think Python is better at high-level bits than C++ IMO, and you can use C or Cython modules that expose functionality that has to be fast.