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

Top comments (1)