rhnrgn
Member level 5
- Joined
- Dec 25, 2013
- Messages
- 92
- Helped
- 2
- Reputation
- 4
- Reaction score
- 2
- Trophy points
- 1,288
- Activity points
- 2,069
Hello,
I am an electrical and electronics engineer and using MCUs and DSPs in my designs. I am using C language.
I want to know should i learn c++? Where people use c++ esspecially in electronics field. I know in visual studio you can use it but is it essential?
Thank You
PS:I am generally reading sensors, driving bldc and stepper motors, doing some ADC works in my desings.
I wouldn't bother with C++ if I were you. It is an ugly and complicated mess that is falling out of favour.
If using Visual Studio, I would learn C#. It is a much more improved modern language, the language of the .Net framework.
If you know C, C# will be an easy move.
If you think that then you either don't understand C or you don't understand C#, or both. The syntax is similar, but the semantics are radically different - for a start, pointers are absent (unless you use unsafe).In my opinion.
To say C# is a version of Java is realy a bit simplistic, it is so much more.
It is more like C than Java!
Windows centric maybe, but that is still the dominant platform in industry.
I struggled with C++ for a long time, then we moved to C#, like a breath of fresh air.
So much more productive.
I have yet to use the 'unsafe' keyword.
Still, each to his own, if you like C++, go with it.
Yes they are. See rant definitionMy post are not rant.
...and stimulate my laugh reflex. :laugh:btbass said:They are to stimulate discussion.
Hi rhnrgn
Every language has its strength and its weaknesses.
...
It doesn't matter which language and which framework do you use as long as you know what you are doing.
Unfortunately many people doesn't know what they are doing and that's why they are telling you things like C++ is difficult.
const Fred* p
Your other questions are simply variants on a theme, and don't change the guarantees that are and aren't being made.Oh common.
First of all this is basic C.
This answer sounds to me like, I know every problems in the world and I know that none of the problems can be solved with C++ but with language "xyz".if C++ is the answer, then you have asked the wrong question"
In normal case the following is guarantees.
const Fred *p; // A writable pointer to const value
Don't cast the const away. It's a sign of bad design!
And yes, I know the link you have posted.
There are bashing site of all languages out there.
Does this mean that those languages are bad? -> No as I mentioned before every language as his strength and weaknesses.
Or is the only right language to learn/use the one you suggest? -> Definitely no. Everyone has to find out by them self.
This answer sounds to me like, I know every problems in the world and I know that none of the problems can be solved with C++ but with language "xyz".
Such answers are very unprofessional.
Mostly the the question "which language should we use to solve this problem" can be answered with a decision matrix.
There is no perfect, flawless language out there. Neither Java nor any other language.
You can do bad things with every language.
I, for myself would never ever say language "xyz" is bad or is the best language in the world because such sentences are unprofessional and partial.
So learning something is always good even if you don't need it to do your job.
If "rhnrgn" is going to learn C++, I sure you would answer something like "it is total waste of time"
Is it really a wast of time?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?