blog

parallel processing with php (2018-05-22)

PHP is single threaded. No way around it (if you can't bring Facebook's Hack on the table). This also means that almost every command or function in PHP is a blocking operation. Meaning that the main program (script) has to always wait for results of e.g. database operations, webservices, command line jobs and many more.<br> Although this is usually not a problem and actually leaves some complexity out - arguably, I know, one can sometimes feel the impact by a cascade of degrading performance as soon as an external source is a bit busy. ...

read more


array_unique - as bad as possible (2017-08-17)

A phenomenon I encounter quite often is programmers spending hours on reinventing a feature, function or construct of the programming language or framework they use. In PHP - from what I've seen so far - the most common one is ...

read more


Intro (2017-07-15)

A few years back I had an idea. I was talking to a colleague and explained that I was pretty sure that the person who developed the software I was given to maintain (yes, about 98% written by the same person), did not only have their first attempt in web application development but must have also ...

read more