Blog (4 of 14)
-
Using Mink in PHPUnit
Another day for a short PHPUnit trick. If you want to use PHPunit to control a browser for functional or acceptence tests, then you can easily do this using the Mink library. Mink is well known from the Behat community to facilitate Behaviour-Driven Development (BDD), but it is a standalone library that can be used with PHPUnit just as easily.
Tuesday 5 April 2016Read more ➞ -
Why Architecture is Important
We experience that the system architectures of our customers grow more and more complex. This is either because of scaling requirements or because developers like to try out new technologies like implementing Microservices. What are the challenges with this and how can we overcome them?
Tuesday 22 March 2016Read more ➞ -
Testing Effects of Commands With Phake::capture()
Today I want to share a simple trick for the excellent Mocking library Phake when testing state on APIs that don't return values.
Tuesday 8 March 2016Read more ➞ -
Teaching and Learning Domain-Driven Design without Patterns
When development teams start to use Domain-Driven Design (DDD) in work projects, then one or more developers read the blue book by Eric Evans and start to apply patterns such as Entity, Repository, Services and Value Objects. In my experience with teams using DDD it can be very distracting to think in patterns. Read about a more practical way to get started…
Friday 26 February 2016Read more ➞ -
Analyze the Quality Of Your PHP Code
In code reviews we often browse metrics, source code and reported code issues together with our customers. This leads to discussions about the current state of the code and possible improvements. First we used a bunch of shells scripts for that. In a second step we developed a simple PHP (Open Source) application helping us to do the job. Now we did the third step and rewrote that application into a React based client side (Open Source) application. Read on for the reasons and benefits…
Friday 23 October 2015Read more ➞ -
Utilize Dynamic Dispatch
Dynamic Dispatch is one of the fundamental powers of object oriented programming. By using static access or traits, you throw away this power.
Thursday 16 October 2014Read more ➞ -
Testing Micro Services
End-to-end tests for micro service architecture are hardly to achieve. This blog post outlines a method to assert end-to-end functionality by measuring metrics.
Tuesday 16 September 2014Read more ➞ -
Code Reuse By Inheritance
Using inheritance for the purpose of code-reuse is a code smell. In this post I explain why.
Monday 20 January 2014Read more ➞ -
ContainerAware Considered Harmful
Making objects aware of the Dependency Injection Container can seriously harm the object oriented structure of your application.
Monday 7 October 2013Read more ➞ -
Finding the right Test-Mix
The topic of Test Driven Development (TDD) and unit-testing usually creates heated discussions among developers. We at Qafoo are not an exception and the topic how to apply TDD in our daily work regularly leads to heated discussions. One reason for this is that both TDD and unit-testing combined are by some people seen dogmatically as the only way to do software development.
Monday 19 August 2013Read more ➞ -
Ducks Do Not Type
I consider public methods not originating from an abstract class or interface a code smell – at least when following class based object orientation design principles. Let me explain why…
Thursday 11 July 2013Read more ➞ -
PHP project room at FrOSCon 2013
This years FrOSCon – one of the most awesome open source software conferences – is right ahead and we are organizing a PHP project room again this year. Read more for details…
Saturday 25 May 2013Read more ➞
Subscribe to updates
There are multiple ways to stay updated with new posts on my blog: