General > General Technical Chat
How many people code in C these days, and if so, why?
radioactive:
--- Quote ---Someone's right tool maye be someone else's worst nightmare - for the exact same project.
--- End quote ---
I feel as though you are referring to Python here. Either that, or possibly my personal nightmares. I guess the former makes more sense.
nctnico:
--- Quote from: SiliconWizard on May 06, 2020, 08:29:18 pm ---
--- Quote from: nctnico on May 06, 2020, 06:58:43 pm ---Personally I'm not a fan of doing OO in plain C. C++ makes life a lot easier by hiding all the nasty stuff which results in much easier to read code. The Linux kernel is a particular poor example of doing OO in C. It is a huge convoluted mess.
--- End quote ---
It works well enough and has been maintained for a long time, for something that is a huge convoluted mess. But code style is such a personal matter.
--- End quote ---
I don't know your knowledge level with the Linux kernel but I'm intimately familiar with it. Making meaningful modifications to it has a steep learning curve and there is a of lot stuff loosely coupled using void pointers. From a C point of view defendable but from a coding perspective it doesn't help.
nctnico:
--- Quote from: engrguy42 on May 06, 2020, 08:43:45 pm ---I'm kinda surprised in an engineering forum nobody is talking about C#. For general engineering stuff like simulations and setting up UI's and graphs and data acquisition stuff it is, for me at least, incredibly fast and efficient to get stuff up and running. Just drag-n-drop some UI components (windows, buttons, graphs,
--- End quote ---
C# is MS only. People seem to use Python for that kind of applications nowadays. Personally I don't know anyone who is writing software using C#.
Wolfgang:
--- Quote from: nctnico on May 06, 2020, 08:59:55 pm ---
--- Quote from: SiliconWizard on May 06, 2020, 08:29:18 pm ---
--- Quote from: nctnico on May 06, 2020, 06:58:43 pm ---Personally I'm not a fan of doing OO in plain C. C++ makes life a lot easier by hiding all the nasty stuff which results in much easier to read code. The Linux kernel is a particular poor example of doing OO in C. It is a huge convoluted mess.
--- End quote ---
It works well enough and has been maintained for a long time, for something that is a huge convoluted mess. But code style is such a personal matter.
--- End quote ---
I don't know your knowledge level with the Linux kernel but I'm intimately familiar with it. Making meaningful modifications to it has a steep learning curve and there is a of lot stuff loosely coupled using void pointers. From a C point of view defendable but from a coding perspective it doesn't help.
--- End quote ---
my Linux kernel area is years gone. The problem is rather that it has never been *really* cleaned up and rewritten. Its like all successful software: it can be incrementally improved until it finally breaks down. 20 years leave their trace in any kind of software.
The problem we had that we wrote software that our customers did not want to renovate after 20 years or more. None of our developers was keen to work inside the code, even it was very clean (in the beginning). Same with Linux or any other "old" OS.
engrguy42:
--- Quote from: Wolfgang on May 06, 2020, 08:52:16 pm ---IMHO, the reason for the preference of Python is because:
- cross-platform
- much more scientific/engineering libs than other languages
- free, and open source.
Hard to beat, I would say. When you look at TIOBE what is happening to MATLAB at the moment that tells something.
Python is on the way to a firm number one in scientific computing, also for AI, ...
--- End quote ---
Hey, wait a minute...what's happening to MATLAB???
Am I gonna have to learn Python?? :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version