3 ms·
Keeping the topic to "should I learn C++" and "will there be a C++ in the future" Want to program the iPhone? Learn Objective-C, a bastardized C++ language Wa
by DanielBMarkham 17y ago
Keeping the topic to "should I learn C++" and "will there be a C++ in the future"
Want to program the iPhone? Learn Objective-C, a bastardized C++ language
Want to build some shit-hot hardware for NASA or the Defense Department? Pick up VxWorks and WindRiver -- and welcome to C++
Want to write your own O/S kernal? Hell if I'd do it in C. C++ gives me nice namespaces and modules and an easier way of organizing things.
So yes, C++ is going to be around for a long, long time. And the concepts you learn in C++ -- assuming you can become a good C++ programmer -- are going to make you a much more proficient programmer in any of the "better" languages.
But fair warning: if you dabble? Yes, you'll be Homer Simpson.
- tptacek 17y agoNo idea why you got downmodded --- perhaps for the crack about OS kernels, though. Every mainstream OS kernel is C.
- DanielBMarkham 17y agoBeats me. I didn't say the existing kernels were C++. I said if I wanted to write a new one it would be in C++. I certainly know the existing kernels are C++. Some of the kernel code for popular Operating Systems -- in production now -- goes back 30 or 40 years. If I'm not mistaken, the Windows kernel has evolved quite a bit to C++. Even the core C files are compiled using the C++ switches. Not sure, but not relevant to my point either. Hope this discussion helps the poster, which is the goal here. Like I said, you made some great points, and I agree with quite a bit of what you wrote. But understanding the exceptions and edge cases are important, even if the guy doesn't choose C++.
- jacquesm 17y agoThe reason why you probably would want to write your kernel in C over C++ is that C++ does more 'under the hood' and when you're writing an OS you want to have your code as transparent as it can possibly get. Any side effects that are not explicitly mentioned in the code will get you burned at some point.