Blog (5 of 15)
-
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 ➞ -
PHP Refactoring Browser Alpha Release
Constant refactoring is a cornerstone of TDD and an important technique to learn and apply during development. With the PHP Refactoring Browser we are releasing a tool that allows to automate common refactorings with a command line tool.
Monday, 8 April 2013Read more ➞ -
Code Coverage with Behat
Code coverage does not make much sense for Behat tests, except for if you use them on legacy code as wide-coverage test cases, before starting to refactor. This blog post shows you how to generate code coverage information for your Behat test scenarios.
Wednesday, 3 April 2013Read more ➞ -
Mocking with Phake
The use of Mock and Stub Objects is an important skill to learn when using Test Driven Development (TDD). Mock objects allow you to replace dependencies of an object with lookalikes, much like crash test dummies are used during automobile safety tests so humans aren't harmed.
Wednesday, 13 March 2013Read more ➞ -
Behavior Driven Development
While unit, integration and system tests - especially the methodology of Test Driven Development (TDD) - are great ways to push the technical correctness of an application forward, they miss out one important aspect: the customer. None of these methods verify that developers actually implement what the customer desires. Behavior Driven Development (BDD) can help to bridge this gap.
Friday, 8 March 2013Read more ➞
Subscribe to updates
There are multiple ways to stay updated with new posts on my blog: