3 ms·
No, C (and C++) is used as much as ever Is this really true, especially for C? Lots of things that used to be done in C is today done in C++ and lots of thing
by dagw 10y ago
No, C (and C++) is used as much as ever
Is this really true, especially for C? Lots of things that used to be done in C is today done in C++ and lots of things that used to be done in C++ is today done in Java or C#.
- TickleSteve 10y agoIn the embedded world, the default language is still C by a wide margin. You have to argue hard to have C++ considered and languages like Rust&Go just aren't on the radar. Only in HN world is C considered legacy. For the rest of the world, its the well-known workhorse of the software world.
- dagw 10y agoFor the rest of the world, its the well-known workhorse of the software world. But it's a workhorse that's continually being replaced. I'm not talking about Rust&Go. I'm talking about C++/Java/C#. Thinking about C projects I saw 15-20 years ago, hardly any of them would be written in C if they where started today. And even in the embedded world C++ is becoming more and more of a thing. Is C used, of course. Is C going away, of course not. Is C "used as much as ever", I just don't see it.
- TickleSteve 10y agoThe number of devices with embedded software is growing all the time. These devices are 99% of the time using C. ...therefore the number of C projects is growing, not shrinking.
- kbart 10y agoI can confirm that. I write C for embedded systems every day, but for better or worse, I don't see any replacement for it in foreseeable future. C++, Python, Java etc. might be used at higher levels (GUI, for example), but all the guts are still good, old, plain C. Rust is still in its infancy so it's hard to tell and even if it succeed, it will be evolution, not revolution and will take decades to replace C fully. HN is a bit of echo chamber as mostly SaaS, web and other high level application developers are here. For them C might be dead as well, but if you have anything to do with hardware and system programming, C is still the tool.
- coldtea 10y agoWell, it's second after Java in TIOBE, which, while not perfect, it checks multiple data points, so it's better than most attempts at guesstimation: http://www.tiobe.com/tiobe-index/ http://www.tiobe.com/tiobe-index/ It's #8 on GitHub in projects per language: http://githut.info/ http://githut.info/ And #18 on Stack Overflow: http://stackoverflow.com/tags http://stackoverflow.com/tags (and I'd say most C projects are not as likely to go to GitHub compared to JS or Javascript ones. And C programmers are not exactly the type to ask questions on SO, compared e.g. to some language where one can be an "eternal newbie". >Lots of things that used to be done in C is today done in C++ and lots of things that used to be done in C++ is today done in Java or C#. Lots of things that are done by Java or C# where done by other languages back in the day too. Visual Basic for enterprise apps that are now a web Java/C# frontend, Delphi, 4GL platforms, Clipper, Visual FoxPro, etc. Even games were written in assembler for most of the eighties too.
- steveklabnik 10y ago(GitHut's data is from 2014)