There’s a saying that goes: “Don’t code hard, hardcode instead.” Terrible, I know. Almost all applications have configuration data. Some of them are neatly saved in a configuration file, and others are just hardcoded in a quick and dirty fashion. By using configuration, we make our code much more reusable and can quickly alter the way it works without our having to think about it.
Configuration data should live outside the application. If you feel the urge to hardcode something, stop and think about the impact it may have on the scalability of the application in ...