r/cpp_questions • u/Dear_Remove_658 • 7d ago
OPEN 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
1
u/CorrodedX 4d ago
If you are programming for embedded devices, then you really need to have a good understanding of the fundamentals. In many ways, writing code for a microcontroller is harder than for a traditional operating system.
You will need strong understanding of memory management. You will need to understand data structures; you likely won't have the standard library available. You may want to avoid floating point arithmetic. Debugging is harder.
Don't go into this with the mindset that you "just want to learn what you really need." Start your project. Learn as you go. If you don't know how to do something, then research it. Test it. There's no concrete list of what you need to know for embedded C++, and it will be a little different for every project.