Oop

  • | 2 min read
    #Dev #Craftsmanship #OOP #anti-pattern

    Unique instance anti-pattern

    I'm back from the past. I have been trying to introduce some tests in one of the oldest part of our codebase. I'm back from a time where using Service Locator was the norm for a lot of people,...

    read article
  • | 3 min read
    #Dev #OOP

    Removing ifs

    I'm not a big fan of if statements. They make source code harder to reason about, force us to write more test cases and increase cyclomatic complexity... We even debated with some colleagues on the...

    read article
  • | 3 min read
    #Dev #OOP

    OOP Layers

    Yesterday at work I ran into a pretty nasty bug and while looking through the code I spotted something which even if it wasn't the primary cause of all the mess made it really worst. The code was...

    read article