# skills

  • JavaScript _ 2019-11-01

    Make your objects iterable

    Just recently I became a fan of the iterable protocol. I knew about it for some time now but never actually integrated it on my own. I ended up using it to provide a nice API for one of my libraries and I thought that this approach worth sharing.

    → Read more

  • PHP _ 2012-05-12

    Dependency Injection in PHP. Create your own DI container.

    By my opinion one of the biggest problems in programming are dependencies. If you want to have a good well written application you should avoid dependencies between your modules/classes. There is a design pattern which could help and it's called Dependency Injection (DI). It allows you to inject objects into a class, instead of creating them there.

    → Read more

If this place saved you a few hours of debugging - or at least one existential crisis - you can buy me a coffee or check out my book Pocket Guide to Seniority. I've also written other books and built a video course called Do You Speak JavaScript? - where we lovingly dissect the strange parts of JS we pretend to understand.

RSS _ Stats _ Keywords _ License