Skip links

Random knowledge shared...

  1. Inheritance, composition and the meaning of "is a"

    October 16, 2015 1:20 PM - by Freek Lijten - 1 comment


    So I watched this talk by Sandi Metz dealing with the "Null object pattern", composition, inheritance and general Object Oriented design principles. It was really nice and you can see it here on youtube. The whole talk was great but there was one part that really struck me. I want to emphasize that part in this blog to spread the word. Basically: watch the talk. If you want to know what I liked in particular, come back or stick around :)

    Read more about "Inheritance, composition and the meaning of "is a""

  2. Keeping track of your branches

    September 2, 2015 8:45 AM - by Freek Lijten - 0 comments

    Tags: ,

    Anyone using a modern version control system has seen that branching really takes no effort. Git branches are easy and I'm sure this goes for other version control system. In my scrum team we tend to create feature branches for all changes that surpass "change the title of formelement X". This article describes (in short) my teams approach to managing all that branches.

    Read more about "Keeping track of your branches"

  3. DateTime createFromFormat without time

    August 12, 2015 9:08 AM - by Freek Lijten - 1 comment


    This is just a quick word of warning. I recently had a bug where two DateTime objects that were created with the same date were inequal to eachother. It turned out that this was a difference between the normal __construct() and createFromFormat. This is actually documented behaviour but since people might be searching for this problem, this post might help.

    Read more about "DateTime createFromFormat without time"

  4. Value objects

    July 16, 2015 7:49 AM - by Freek Lijten - 4 comments

    Tags: ,

    I would like to talk about value objects for a bit. Value objects are very underused, very powerful and general good stuff. They might not change your world but they will change, very subtle, a lot of the code you write. I hope to give the shortest possible introduction to the concept and follow up with a couple of example that make me like value objects so much.

    Read more about "Value objects"

  5. Setter anxiety

    June 24, 2015 8:10 AM - by Freek Lijten - 4 comments

    Tags: , ,

    Sometimes sudden (or slow) realisations can wreak havoc in ones mind. I've always (since long?) been a a proponent of constructor injection for dependencies. On the other hand I was not unused or diametrically opposed to constructing objects with their values usings getters and setters. But now, these setters scare me. I'm suffering from setter anxiety.

    Read more about "Setter anxiety"