r/learnprogramming 15h ago

Resource learning cpp for electronics

hello everyone so im planning on learning cpp for some "low-level electronics" and embedded systems...

and i've seen multiple people on programming subreddits saying that www.learncpp.com is a good website and tbh after i read some shapters i can say that its indeed a great website,however i feel like that website is just too much for me especially that im not very interested in deep diving into this language and just want to learn what i really need (i already have a short learning deadline)

i took a look at freecodecamp 4h course but i feel like four hours for a language like cpp is too little (i took their python course and it was good tho)

so what im asking for is where can i find some resources that fit my learning goal? ty

2 Upvotes

3 comments sorted by

1

u/MrSqueak 12h ago

Learning to code without understanding it is like buying a car without a driver's license. You'll eventually get there but probably kill a few people, or devices along the way.

To code in c or cpp you'll need to know at least some of what's going on in memory. Especially for embedded code where a byte can make a difference in whether or not your code works properly. Learning to properly debug is just as important.

1

u/ConfectionAlert2658 2h ago

man that car analogy is dark but i'm stealing it for my next team meeting

just to add to your point, maybe grab an arduino kit and learn cpp by burning out a few leds on purpose, the memory stuff clicks way faster when you can physically see your code failing

u/CapitalKey2994 47m ago

Embedded C++ is not general purpose C++. Skip the language deep dives and focus entirely on hardware abstraction layers and memory mapped registers. I use the Embedded Artistry course and Modern Microcontrollers by Shawn Hymel for this exact scope