Electronics > Beginners
what is the most relevant programming language for ee?
Nusa:
--- Quote from: rjp on November 06, 2018, 02:38:27 am ---Its a shame that nobody with serious clout has done a c+ yet - which is the useful subset of c++ that every damn modern language has run with - python,c#,java. dart etc.
Bascially c structs with single inheritance that makes building core framework plugins like "Stream" easier without pointer casting.
Namespacing to avoid foo_bah_wah clumsyness in libraries.
then a more modern std library.
--- End quote ---
What's the point? It's already there in C++, just as C remains a subset of C++. You just don't use the features you don't want to use.
People cloak it in C vs C++ labels, but the real "religious" argument is usually about procedural vs object oriented approaches. Both approaches have value, although the extremists in either camp may choose to argue that. Anyone who has to understand and maintain existing code better be willing to understand both.
Crazy_Pete:
>Its a shame that nobody with serious clout has done a c+ yet
I thought that was what C# was? (Basically MS couldn't get it together to write a C++ compiler. They finally released C# as a political move to turn failure into propaganda victory.)
Most people don't use multiple inheritance anyway. That was the whole idea and the reason why C++ was designed to obsolete C in the first place. If a feature isn't useful, don't use it.
thanks
Crazy Pete
rjp:
--- Quote from: Nusa on November 06, 2018, 03:04:17 am ---
--- Quote from: rjp on November 06, 2018, 02:38:27 am ---Its a shame that nobody with serious clout has done a c+ yet - which is the useful subset of c++ that every damn modern language has run with - python,c#,java. dart etc.
Bascially c structs with single inheritance that makes building core framework plugins like "Stream" easier without pointer casting.
Namespacing to avoid foo_bah_wah clumsyness in libraries.
then a more modern std library.
--- End quote ---
What's the point? It's already there in C++, just as C remains a subset of C++. You just don't use the features you don't want to use.
People cloak it in C vs C++ labels, but the real "religious" argument is usually about procedural vs object oriented approaches. Both approaches have value, although the extremists in either camp may choose to argue that. Anyone who has to understand and maintain existing code better be willing to understand both.
--- End quote ---
The point is that nobody agrees to the subset and everyone makes their own clumsy NIH here version of the framework library.
Crazy_Pete:
Thanks Nusa!
I couldn't have said it better myself. You need to be able to understand both procedural and object oriented programming. Understanding functional programming is even better. (Re. the post by the guy who managed to blow a C++ program outta the water by writing it in Dylan.) The honest truth is that for most small day to day tasks, procedural programming is better. (The playlist program i use to listen to music is written bash script, i don't write a C++ program everytime i wanna change the music!)
The problem with LEARNING C is that it makes it nearly impossible to learn C++, whereas if you learn C++ first (Hatokays original question) you have a great background and ability in both C and C++.
thanks
Crazy Pete
rjp:
--- Quote from: Crazy_Pete on November 06, 2018, 03:06:35 am ---
>Its a shame that nobody with serious clout has done a c+ yet
I thought that was what C# was? (Basically MS couldn't get it together to write a C++ compiler. They finally released C# as a political move to turn failure into propaganda victory.)
Most people don't use multiple inheritance anyway. That was the whole idea and the reason why C++ was designed to obsolete C in the first place. If a feature isn't useful, don't use it.
thanks
Crazy Pete
--- End quote ---
well the thing is that all those features that you shouldnt use, do get used, and c++ can be a nightmare when multiple inheritance and templates are used to their fullest insanity.
c# is aimed at desktops and is VM based and has a monster std lib - but yes i was dreaming of a c# style subset but aimed at micro's with efficient binary compilation,
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version