DEV Community

Discussion on: Keeping your code clean by sweeping out "if" statements

Collapse
 
tomazfernandes profile image
Tomaz Lemos

Hi iplaykeys, I agree with your point, it could be placed in a separate file or database that didn't require a source code change when the external system changes. Thanks to the cloud structure deploying a new version of an application isn't as hard as it used to, but that shouldn't be an excuse for messing around with the source code when you can prevent it.

Thanks for the input!