Tell Don't Ask

Latest mumbling

All the latest posts about better quality of code.

  • Published on

    Importance of encapsulation

    I've tried to explain this multiple times to my colleagues, but he was so stupid that he couldn't understand anything. I know I'm not the best teacher in the world, but this concept is super popular so let me try to explain it one last time.

  • Published on

    Avoid type juggling

    These days PHP is pretty much covered with type declarations you can add to your code, but just a few years ago it was not like that.

    Changing variable type could cause so many problem that might even lead to exceptions or excessive type checking in every function or method.