Global constants are fine.
Global (non-constant) variables are the work of the devil.
More Related Contents:
- Why is Singleton considered an anti-pattern? [duplicate]
- Is ServiceLocator an anti-pattern?
- In a PHP project, what patterns exist to store, access and organize helper objects? [closed]
- How will I know when to create an interface?
- Naming Classes – How to avoid calling everything a “Manager”? [closed]
- Dependency Injection & Singleton Design pattern
- What is an anti-pattern?
- How do you know when to use design patterns? [closed]
- Writing PHP functions that has many parameters/modifiers [closed]
- What is dependency injection?
- How do the Proxy, Decorator, Adapter, and Bridge Patterns differ?
- What is a wrapper class?
- Which Typesafe Enum in C++ Are You Using?
- Replacing if else statement with pattern
- Can you create instance properties dynamically in PHP?
- Relational Database Design Patterns? [closed]
- Factory, Abstract Factory and Factory Method
- Singleton pattern [closed]
- A way of casting a base type to a derived type
- Eliminating `switch` statements [closed]
- Does the Single Responsibility Principle work in OOP?
- What is the point of accept() method in Visitor pattern?
- Learning/Implementing Design Patterns (For Newbies) [closed]
- When should you use the singleton pattern instead of a static class? [closed]
- Can you explain the Context design pattern?
- Switch statements are bad? [closed]
- Avoiding parallel inheritance hierarchies
- anti-if campaign
- What are `optimistic updates` in front-end development
- Why doesn’t generic ICollection implement IReadOnlyCollection in .NET 4.5?