DEV Community

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

Posted on

3 2

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay