Blogg

  • Refactoring: minimizing if-statements

    den 1 juni 2017 av Dennie

    Multiple if-statements with null checks which returns a formatted result is quite common and I often write that kind of code myself. Imagine we add a zip code and a country (yes, I know, returning only the zip code wouldn't be that great. But you get the point, right? just keep imagine) and the cod…