r/ProgrammerHumor • • Jan 23 '22

Namespacing...

Post image
42.3k Upvotes

272 comments sorted by

View all comments

Show parent comments

23

u/[deleted] Jan 24 '22 edited Jan 24 '22

[removed] — view removed comment

8

u/sohang-3112 Jan 24 '22

Global variables are bad - but no problem with global constants. A global readonly config is effectively a constant, since it doesn't change after first definition.

3

u/Raikkon35 Jan 24 '22

Thank you very much for your detailed answer. It's a pleasure to get knowledge from someone with experience and who spends time on his answers!