0

C? C++? C#? Horses for courses?

Can anyone give me a quick lowdown on each of these? I'm tempted to go with C as Python is built on it. Any suggestions?

1st Jul 2024, 1:27 PM
Technocrat
5 Respuestas
+ 3
Technocrat with your experience in assembly language, C would be a comfortable next step. The pre/post-increment operators, pointers, bitwise operators, and conditional logic principles in C are rooted in DEC PDP assembly, upon which Motorola based their MC68000 instruction set. C++, C#, and Python are in the next league that add object-oriented concepts. Among them, Python is the easiest to learn. However, beware that it is very different from C, and there are many traps for C developers who expect Python to work just like C. C++ is an evolution of C into object-oriented programming. It retains the original C syntax and adds, in my opinion, cryptic and difficult syntax to work with objects. I've never known anyone who has mastered it. C# is a better blend of C with objects. It has everything you would want in a modern language, though it is a little wordy - having to fully spell out long names in the .Net libraries. It has moved far beyond C and has many powerful syntax features to explore.
1st Jul 2024, 5:04 PM
Brian
Brian - avatar
+ 3
Python is written it C++, which is written in C. Every language is written in C. The only way to defeat C is assembly.
1st Jul 2024, 1:37 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
+ 1
A few people do, but most of the time it’s not needed. High-level programming languages are basically just simplifications of assembly, and they inherently reduce some of its power. If for some reason one needed direct access to any and all processor functions with no limitations whatsoever, one would want to use assembly. If you don’t, you can use a higher language.
1st Jul 2024, 3:51 PM
Wilbur Jaywright
Wilbur Jaywright - avatar
0
Lol. That was my next question. Does anyone use Assembly these days? I used to program Z80 and 68000. It's great, but the options are better these days.
1st Jul 2024, 2:11 PM
Technocrat
0
But the question remains.. C#? What's that about? 😊
1st Jul 2024, 4:41 PM
Technocrat