General > General Technical Chat
How many people code in C these days, and if so, why?
ace1903:
Maybe a clarification is needed.
I do program in C for monthly salary all day long.
When I need to do some data processing, to interpret measurement results, test algorithm for signal processing I do use MATLAB, Python, Qt and C++.
Rarely Perl, TCL/TK, Java, Assembler ...
Somehow whole thread went in a direction to show how one can do something with few lines of code.
That is not coding, it is fun.
How many of you earn a salary by coding in Python(except web development), Matlab ,Octave...?
How many of you worked on code in Matlab Python larger than 1000 lines and potentially saleable?
Berni:
Both C++ and Python are great languages but with entirely different purposes.
Id say people that earn a living programing in Python mostly use it as a way to process data or create quick small tools to get there actual job done. You wouldn't create a python application and sell it as PC software. Its a slow clumsy language that is not suited for large projects at all. But for when you want to write an app for example "takes in a folder full of images, rescales them and adds text in the corner according to data from a database" then you will have your app working from scratch in half an hour with Python. Its designed to let you do whatever you want without being a language nazzi and yelling at you "You can't put a string in there, this is a int array" it always tries to do whatever you tell it to do. As a result there is a lot of dirty tricks and bad programing habits in it, and big projects like to become a mess. Yet damn is it quick to throw something together in Python.
For developing GUI PC apps id recommend C#. It just works from VisualStudio and the language has a lot of object oriented creature comforts while maintaining very high performance. Lots of commercial apps are written using it.
Regular C on PCs tho...no, just don't. There are so many better languages now. The C language is mostly a way more readable and useful version of assembler. Its fast and lets you do low level things. So its great for running on MCUs where you might only have a few KB of RAM, or when writing Windows/Linux drivers where you need the low level capabilities. Game engines still use quite a bit of C++ tho, since it can squeeze last remaining bits of performance out of a CPU when a good programmer does it.
coppice:
--- Quote from: IanB on May 06, 2020, 09:10:32 pm ---
--- Quote from: nctnico on May 06, 2020, 09:03:29 pm ---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#.
--- End quote ---
C# is gaining cross-platform support and much of it is now open.
--- End quote ---
Is it really? Mono has been around for years, but if it is seeing significant use it must be in places I never see.
bd139:
Microsoft is telling everyone it is growing constantly and rolling out the marketing hard. It's shrinking almost everywhere in reality.
engrguy42:
At this point I tend to agree with Berni. You start up VS, start a C# app, the toolbox with all the GUI stuff appears, you drag-n-drop, and you're off. The code is automatically generated, as are the event handlers.
Trying to shoehorn Python/Qt/Qt Designer into VS is looking like a pain, especially when GUI's are involved. Apparently you need to run QtDesigner separately to generate the .ui file, then use command line crap to convert to .py, and merge your code into that.
For those who have gone thru the hassle and it's become second nature, then yeah, it's easy. For those who have no interest in going thru the hassle, it's a freakin' pain. And at the end of the day, is there really much benefit over C#? Or is it just because it's popular? I couldn't care less what others are using, and whether it's "popular".
From what I've seen so far it's a "loose" version of C#.
In any case, does anyone know of a tutorial on setting up PyQt5 and QtDesigner, for Python, in Visual Studio, that's more recent than 6 years ago?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version