Originally posted by: hans007
Originally posted by: Markbnj
In electronics C is used more than C++ since it is closer to the hardware than C++.
I don't think C is closer to the hardware than C++. There's just less compiler overhead, and it's easier to control the layout of structures in memory. It's also available for more embedded platforms than C++, I think.
C is closer...
then again ... if you just use C++ and dont use any of the C++ specific things it'd be the same.
the only real difference is that c++ has classes with inheritance and such. so the compiler has to search through vtables. If you read about how that works, classes are very much just structs with lookup tables in certain places that the compiler has to check first.
Anyhow, I am in agreement with most people here that you should learn the lowest language you can first. its hard to "move backwards". I mean its easier to understand a concept that has been abstracted away in a language like python in terms of C++ than it is to learn these things in python and figure it out the other way.
Then agian Im biased since i learned the lower level languages first, and it seems that schools are really emphasizing these abstracted away dynamic languages more .
which makes sense since the job market is filled with jobs like that now. I'm primarily a java and c++ developer, so I have noticed this.
then again we have all the processing power in the world for the mos tpart so it has its place, but not knowing how to do it the more low level and strucutred way is a handicap.
so yeah, basically learn the hardest thing you can. depends on how smart you are.