DEV Community

Cover image for I'd rather you did not ...
Marek Dabek
Marek Dabek

Posted on

I'd rather you did not ...

Here goes a little gem: Secure Programming Practices in C++

The main takeaway - is a list of "I'd rather you did not":

  1. Use C
  2. Allocate with new
  3. Do math a lot
  4. Trust your external input
  5. Use pointers a lot (since they have no semantics!)
  6. Write “clever” code
  7. Use shared_ptr a lot
  8. Use share state a lot

Enjoy!

P.S.
For the curious students: C++ Core guidlines

Latest comments (1)

Collapse
 
tux0r profile image
tux0r

When in doubt, I usually skip C++ and write in C instead...