3 ms·
> It's been a decade or more since I've worked in C (and have never been a heavy C coder). Is "modern C" really a thing? Well, I've done C off-and-on, sometime
by dbcurtis 10y ago
> It's been a decade or more since I've worked in C (and have never been a heavy C coder). Is "modern C" really a thing?
Well, I've done C off-and-on, sometimes heavily, since the days of VT-100s and DEC-Writers. Modern C has always been a thing since the 1970's. Its just that the definition of "modern" keeps changing :)
Yes, things are easier. It is possible to use the compiler features to write code that can be compile-time checked better than in the old days. A good IDE can use that to advantage to flag a lot of errors before you even compile. Yes, memory management can be easier. That said, most of the C I do now is for embedded microcontrollers with no OS underneath -- so memory safety and threads are DIY, and fork() is not a thing.
As someone once said to me about 30 years ago, "C doesn't get in your way." Also, with C, I can, if I wish, get extremely fine-grained control over memory layout. So currently I tend to use C on bare metal, and Python 3.5 whenever I can get away with it, with wee, tiny, C extensions to Python where necessary. C still has a place, but since the advent of Python my motto is: "Life is too short for C++".
- a3n 10y ago> "Life is too short for C++" I've said for many years "Life is too long to write C++ for a living." And I haven't written C++ for many years.