Sometimes to avoid a decision I decide to make something “configurable” 😉

What this ultimately achieves is, that of the two choices (or more) that I have, I can now choose at any time, except I don’t! I arbitrarily choose one, because I “could” always choose the other for the next run. Arbitrarily chosen solutions are like running systems, they are loath to change. So instead of 10 minutes of thinking it over “Which is the better solution?” I get the “random solution that first came to mind” or the one “that looks better in the config file” or ….

So “configurability” is just as great as “anticipatory genericity” ™

PS: it’s probably in the antipattern book?

By Yashima

Writer of code and stories