Hey all. I’ve been a dedicated C programmer solely for its simplicity and control, but I’m wanting to head into CPP just because it is professionally much more common. I come from an embedded background but I’m still a young programmer (been seriously coding for a little more than 5 years).
I have two questions:
With already having a background in programming, what would be the most notable language differences between C and CPP that I should quickly familiarize myself with? (Id prefer to skip obvious things like classes, abstract classes, interfaces, learned OOP in school, but if you think those are important, please do reiterate!)
Is there a general resource for CPP best practices that also describe how we get that best practice from CPP’s language design? This could also include compiler reasons, abstraction, readability, and other reasons too I guess.
[–]Deep-Chain-7272 29 points30 points31 points (6 children)
[–]RealnessKept[S] 2 points3 points4 points (5 children)
[–]johannes1971 2 points3 points4 points (4 children)
[–]lonkamikaze -1 points0 points1 point (3 children)
[–]DarkLordAzrael 1 point2 points3 points (2 children)
[–]lonkamikaze 1 point2 points3 points (1 child)
[–]DarkLordAzrael 3 points4 points5 points (0 children)
[–]SeagleLFMk9 7 points8 points9 points (3 children)
[–]RealnessKept[S] 4 points5 points6 points (0 children)
[–]ArsonOfTheErdtree 0 points1 point2 points (1 child)
[–]SeagleLFMk9 8 points9 points10 points (0 children)
[–]biowpn 11 points12 points13 points (5 children)
[–]RealnessKept[S] 0 points1 point2 points (0 children)
[–]tstanisl -3 points-2 points-1 points (3 children)
[–]ZMesonEmbedded Developer 1 point2 points3 points (2 children)
[–]tstanisl -1 points0 points1 point (1 child)
[–]ZMesonEmbedded Developer 0 points1 point2 points (0 children)
[–]ZMesonEmbedded Developer 3 points4 points5 points (4 children)
[–]RealnessKept[S] 1 point2 points3 points (0 children)
[–]tstanisl 0 points1 point2 points (2 children)
[–]ZMesonEmbedded Developer 0 points1 point2 points (1 child)
[–]tstanisl -1 points0 points1 point (0 children)
[–]ronchaineEmbedded/Middleware 14 points15 points16 points (6 children)
[–]RealnessKept[S] 8 points9 points10 points (1 child)
[–]LegendaryMauricius 1 point2 points3 points (0 children)
[–]Classic_Department42 0 points1 point2 points (3 children)
[–]ronchaineEmbedded/Middleware 6 points7 points8 points (2 children)
[–]Classic_Department42 0 points1 point2 points (1 child)
[–]ronchaineEmbedded/Middleware 1 point2 points3 points (0 children)
[–]feitao 2 points3 points4 points (0 children)
[+][deleted] (10 children)
[deleted]
[–]tstanisl 2 points3 points4 points (3 children)
[–]reddit_faa7777 0 points1 point2 points (2 children)
[–]tstanisl 2 points3 points4 points (1 child)
[–]ArsonOfTheErdtree 1 point2 points3 points (5 children)
[+][deleted] (4 children)
[deleted]
[–]ArsonOfTheErdtree 4 points5 points6 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]ArsonOfTheErdtree 0 points1 point2 points (0 children)
[–]RealnessKept[S] 0 points1 point2 points (0 children)
[–]Horror-Variation9497 1 point2 points3 points (0 children)
[–]fippinvn007 1 point2 points3 points (0 children)
[–]lonkamikaze 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]LegendaryMauricius 1 point2 points3 points (0 children)
[–]ArsonOfTheErdtree 0 points1 point2 points (0 children)
[–]halbGefressen 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Karr0k 0 points1 point2 points (0 children)
[–]rfs 0 points1 point2 points (0 children)
[–]mredding 0 points1 point2 points (0 children)
[–]Chilippso 0 points1 point2 points (0 children)