DEV Community

Discussion on: 10 rules to code like NASA (applied to interpreted languages)

Collapse
 
paddy3118 profile image
Paddy3118 • Edited

Use the preprocessor sparingly.

This kinda maps to the Python good practices of

  1. Use eval/exec sparingly, and
  2. Avoid "magic" code that alters the standard operation of statements.
Collapse
 
xowap profile image
Rémy 🤖 • Edited

Very well spotted, I completely forgot to mention eval(). That's another successor of macros. To be honest I haven't done an eval in so long that I did not even consider it as a threat.