Ignore it. Most people who bash it are those who don't know how to use it. Everyone wants to talk nice about C because they know it's used to create foundations, but they themselves don't even know how to use it. For them, it's just "important" because most of their OS was developed with it. The other languages that were listed are extremely high-level languages executing on runtimes that abstract away all the "big scary complex things". I bet she's a beginner web developer and I highly doubt she's ever written a single line in both C and C++...
Same, I used to do C++ 12 years ago, been back at a job doing it for over a year and I like it, it’s totally different now but you can still write it the old way of you want.
What? You didn‘t ever write C++ really then, you brought C mentality to a C++ compiler. Ever since C++11 it gets better and better, 17 is awesome, nobody wants to go back to 98, modern C++ is vastly superior in terms of language features alone, you don‘t -have- to use everything in std you know?
I have no love for 98, for me it‘s either the simplicity of C or even ASM that i can appreciate, or the multi-paradigma nature of modern C++ that did away with a lot of the clunky syntax limitations and ambiguities of earlier versions and made it much more expressive and easier to write safe code without any runtime overhead. just one of many things, but i wouldn't want to give back constexpr for example, or lambdas, or auto, or perfect forwarding, or the many tiny improvements to std, such as string having a well defined .data member since 17. the oversights and defects in 98 are too severe to cling on to it.
"About 10 years ago" is when C++11 came out and made the language infinitely better. Something is seriously wrong with you if you think that pre-C++11 was better.
I learned C++ around year 2000. I moved to other things, then started to relook at the language in early 2010's. It looked like a completely different language. I have no idea what happened. Modern day JS looks more like the C++ I learned on, except without pointers.
All the core constructs are there, just additional safety. The CLR provides an FFI for languages targeting the runtime to utilize and C# even has pointers as well. Some people complain about generics and it isn't until they want to avoid duck typing and more that they realize generics are important. Everything else, optional syntactic sugar.
Lemon OS and others are dominantly C++. You can even develop an OS using C# with the COSMOS SDK as well.
Windows and Linux are C based, no C++ AFAIR
The kernels and drivers are C and some assembly. For Windows, native APIs are mostly authored in C as well. System programs are then developed with C, C++, and .NET. Utilizing OS services doesn't really translate well with OOP, hence why a lot of APIs are developed with C (outside of originally being written in C) since they do not need object-oriented APIs.
I think Windows has its own Object paradigm, so that's not really the reason IMHO. In my previous company we also implemented macro-defined OOP (in some sense) because we did not want C++. I'm not trying to say C++ is bad - but I personally quit it when template madness started, and happily never looked back. Again, personal experience :)
Edit: I also admit I did not have to use that. Please don't take my previous comment as another pl war measage or something :)
213
u/[deleted] Jan 28 '23 edited Jan 28 '23
Ignore it. Most people who bash it are those who don't know how to use it. Everyone wants to talk nice about C because they know it's used to create foundations, but they themselves don't even know how to use it. For them, it's just "important" because most of their OS was developed with it. The other languages that were listed are extremely high-level languages executing on runtimes that abstract away all the "big scary complex things". I bet she's a beginner web developer and I highly doubt she's ever written a single line in both C and C++...