Make hard-coding your default choice
Hard coding is often considered an anti-pattern. Having values that can change over time hard-coded in the source code requires recompilation every time these values actually change.
While this statement is true, I think that hard coding should be the default choice when developing an application.
Hard coding vs configuration file When you work on a project or feature, there always are some magic numbers or strings that potentially can change in future.