| General > General Technical Chat |
| How many people code in C these days, and if so, why? |
| << < (17/99) > >> |
| coppice:
--- Quote from: Picuino on May 06, 2020, 07:37:49 pm ---I think the ideal is to combine the best of each world. C to make quick and efficient code libraries combined with a scripting language like Python, Lua or TCL to develop the application at a high level. Many software packages do so today. --- End quote --- Its a long time since I saw anything but legacy code in TCL. It (or more specifically TCL/TK) used to be extremely popular for some pretty complex applications. |
| Picuino:
Tcl was just an example of scripting language. I know it from Tcl / Tk in Python. |
| SiliconWizard:
--- 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. Anyway. You'll use more basic OO approaches with plain C, but if done right, it structures things well, and contrary to C++ (which granted has a lot more features and sugar coating), it's still perfectly predictable, so it's often a benefit especially for embedded stuff. Now it may depend on what exactly YOU call OO. |
| engrguy42:
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, etc.), grab a free math library like MathNet, write your code and you're all set. And personally, like I say, if you're simulating real world equipment the OO design makes things so intuitive. Is it because many folks here are more involved with hardware/embedded systems? And also no mention of the ever popular graphics/gaming stuff that pretty much relies on C++ for the API's (DirectX, OpenGL, etc.). I've been doing raytracing stuff in OpenGL/C++ and it seems like most of the docs and sample code and tutorials are geared toward C++. |
| Wolfgang:
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, ... |
| Navigation |
| Message Index |
| Next page |
| Previous page |