On Oct 01, 2024, Didier Kryn wrote:
> Le 01/10/2024 à 18:13, Dan Purgert via Dng a écrit :
> > On Sep 30, 2024, o1bigtenor via Dng wrote:
> > > Greetings
> > >
> > > if I were to want to choose between learning C (and likely adding C++) and
> > > learning ADA for programming microcontrollers and embedded systems
> > > what - - - besides amount of usage would you use to advise me - - -
> > > which should I learn (and why please (this is at least as important as
> > > your choice!!!))?
> > At the end of the day, you need to be able to read and understand the
> > Minimum Working Example ("MWE") code in the datasheets. And, well,
> > that's going to be C.
> >
> > If you don't know enough programming in general to parse that MWE code,
> > you're going to have a real hard time rewriting that into the
> > "better(tm)" language.
> >
> > Once you can read the MWE in the datasheet, well, then by all means go
> > off to something else if you want to.
> >
> [...]
>
> However I warn you that C++ is not an easy transition from C. This idea
> seems natural but it is an illusion.
About the only place where you'll "want" a bit of C++ familiarity
(within the confines of microcontroller-land, anyway) is if you're
poking around stuff like libraries "For Arduino" (or, well, the Arduino
source itself).
And that's basically just the same idea as why C --> being able to read
and follow someone's library implementation so you can make an informed
decision about whether or not you're going to try integrating it into
your project (or just writing it yourself).
--
|_|O|_|
|_|_|O| Github:
https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860