892
The C++ learning process
(aussie.zone)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Last time I did anything on the job with C++ was about 8 years ago. Here's what I learned. It may still be relevant.
const
,constexpr
,inline
,volatile
, are all about steering the compiler to generate the code you want. As a consequence, you spend a lot more of your time troubleshooting code generation and compilation errors than with other languages.valgrind
or at least a really good IDE that's dialed in for your process and target platform. Letting the rest of the team get away without these tools will negatively impact the team's ability to fix serious problems.1 - I borrowed this idea from working on J2EE apps, of all places, where stack traces get so huge/deep that there are plugins designed to filter out method calls (sometimes, entire libraries) that are just noise. The idea of post-processing errors just kind of stuck after that - it's just more data, after all.