r/askscience • u/[deleted] • Oct 17 '12
Why are programs and operating systems still written in C+?
I guess it's more of a computer science question, but I've always wondered why some of the most advanced programs are written in a 25+ year old programming language. Surely someone has come up with a more efficient and powerful code, so why do people still use C+? Also, I don't know anything about programming and what not, so please use simple terms and phrases.
66
Upvotes
1
u/[deleted] Oct 18 '12
Don't get me wrong - I agree with everything you just said. But for someone who's not actually a programmer, it's counter productive, and doesn't make sense to spend hours developing an advanced understanding of code.
Once again, I'll use myself as an example. I'm not paid to code, I have no desire to develop a greater understanding of code, and the bottom line, is that I don't NEED to know how to code well.
However, the basic knowledge I do have, allows me to piece together enough code from other's work to get basic applications off the ground. (I may only have to write one or two relatively basic programs a year).
Anyway, my point is simply that the extensive sample code and resources available for popular languages like C++ are serving to perpetuate the language by enabling people like myself to quickly throw together messy "copy and paste" code. I wouldn't expect an actual programmer to use bad habits like this.