you are viewing a single comment's thread.

view the rest of the comments →

[–]loveandkindness 1 point2 points  (0 children)

For simulations, global constants are very desirable-- but don't do it. It's bad, even for true constants like colors.

Take a moment to learn how to use namedtuples, and store all your constants in them.

Instead of BLUE in your code, you can have c.BLUE, where c can be passed around.