Skip links

Random knowledge shared...

  1. 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"

  2. Setter anxiety

    June 24, 2015 8:10 AM - by Freek Lijten - 3 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"

  3. Testing PHP extensions - what makes a good test

    March 22, 2015 3:04 PM - by Freek Lijten - 0 comments

    Tags: , ,

    In my previous blog I took you through the process of getting PHP and extensions compiled, generating code coverage and running tests. What I did not talk about was what makes a good test. I hope to correct on this by adding this post and going into more detail on the actual writing of tests itself.

    Read more about "Testing PHP extensions - what makes a good test"

  4. Testing and improving PHP extensions for PHP 7

    March 12, 2015 1:58 PM - by Freek Lijten - 0 comments

    Tags: , ,

    PHP7 is coming. And it is coming to a neighbourhood near you :) A couple of people started an initiative to ensure extensions will be running out of the box once PHP7 hits the shelves. The fun part: You can help too! No C knowledge is necessary (although it is fun to dive into PHP's internals!). This piece is a short intro to help you help PHP! Help triaging extensions, write tests, add documentation and who knows when you'll be diving into C code.

    Read more about "Testing and improving PHP extensions for PHP 7"

  5. Separating concerns even better with events

    March 9, 2015 9:03 AM - by Freek Lijten - 0 comments

    Tags: , ,

    Object oriented architecture interests me. A lot is happening in PHP over the last few years. PHP might be a decade late but hey, it is happening. I feel a lot of techniques and terms like SOLID, BDD, DDD, CQRS and what not are essentially one thing: tools to help us model the real world in an as useful and understandable way as possible. The concept of an API or a Service is widespread, even  in PHP land. I feel the same goes for repositories. This is a great way of separating concerns, but there is room to improve! In my Services at least :)

    Read more about "Separating concerns even better with events"