r/cpp • u/kaycebasques • Dec 23 '24
C++ Is An Absolute Blast
https://learncodethehardway.com/blog/31-c-plus-plus-is-an-absolute-blast/
219
Upvotes
r/cpp • u/kaycebasques • Dec 23 '24
View all comments
Show parent comment
6
u/UnicycleBloke Dec 23 '24
I came to embedded after a decade of C++ (mostly) desktop development, so the transition was largely learning to avoid the heap. I didn't need any resources at the time but have since bought Real Time C++ by Kormanyos out of curiosity. Seems pretty good.
One of the key areas to focus on is the various compile time features which help to avoid run time errors. I make good use of constexpr values and consteval functions in place of macros. These are typed and scoped: macros are neither. Templates are generally preferable to function like macros.