General > General Technical Chat
How many people code in C these days, and if so, why?
Karel:
--- Quote from: IanB on May 03, 2020, 05:00:33 pm ---I sense (as I expected) that C is used for embedded work on low level hardware.
However, C++ offers a vast toolkit of features to choose from, and you are not obligated to use them all. You can restrict yourself to a small subset and still have a more comfortable time while writing compact, efficient and transparent code.
Anyway, I got my answer. Many people are writing in C these days, and it is for embedded applications.
--- End quote ---
Maybe I'm an exception but all non-GUI software I write for the pc is written in C using gcc, not g++!
coppice:
--- Quote from: IanB on May 03, 2020, 05:00:33 pm ---Anyway, I got my answer. Many people are writing in C these days, and it is for embedded applications.
--- End quote ---
C is still used heavily for server, and HPC applications, as well as embedded.
IanB:
--- Quote from: coppice on May 03, 2020, 04:58:59 pm ---If that's the kind of logic you use, you could have a great career as a religious apologist.
--- End quote ---
;D
Religion is about vague, unprovable assertions.
Technology is about facts.
It is a fact that some things that will be accepted by a C compiler will be rejected by a C++ compiler, and vice versa. So if you compile "C" with a C++ compiler, there is no guarantee that your code will be accepted by a C compiler. The standards are different.
--- Quote from: Karel on May 03, 2020, 05:03:44 pm ---Maybe I'm an exception but all non-GUI software I write for the pc is written in C using gcc, not g++!
--- End quote ---
If you invoke gcc on a file with .cpp extension it will use the C++ compiler unless you force it to do otherwise. Similarly, if you invoke gcc on a file with a .c extension, then it will use the C compiler by default. So if your files have a .c extension, then I will agree that you are using C.
IanB:
--- Quote from: coppice on May 03, 2020, 05:06:57 pm ---C is still used heavily for server, and HPC applications, as well as embedded.
--- End quote ---
Interesting. Post edited.
engrguy42:
Different tools for different tasks. For me, C# is great for UI-based stuff. C++ comparatively sucks for that, but is great for graphics API stuff (DirectX, OpenGL, etc.). And C is great for lower level hardware stuff.
I suppose the best software developers learn ALL the tools and use the best one for the job, rather than sticking with one and getting offended when anyone disagrees.
Geez guys.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version