Tag: PHP7

PHP Typed Properties

Lately there has been a lot of hype around the typed properties that PHP 7.4 will bring. In this post I outline why typed properties are not as big of a game changer as some people seem to …

PHP project template

Want to start a new PHP project? Perhaps yet another library you are creating? Tired of doing the same lame groundwork for the 5th time this month? Want to start a code kata and not lose time on …

PHP 7.1 is awesome

PHP 7.1 has been released, bringing some features I was eagerly anticipating and some surprises that had gone under my radar. New iterable pseudo-type This is the feature I’m most exited about, perhaps because I had no clue …

Missing in PHP7: Nullable return types

This is the fifth post in my Missing in PHP7 series. The previous one is about Collections. This is a short post, as there really is not much to explain or motivate. Nullable return types As of PHP7, …

Missing in PHP7: Collections

This is the fourth post in my Missing in PHP7 series. The previous one is about Value Objects. In this post I’ll outline some problems PHP has with regards to collections, the implications of those problems, and a …

Missing in PHP7: Value objects

This is the third post in my Missing in PHP7 series. The previous one is about named parameters. A Value Object does not have an identity, which means that if you have two of them with the same data, …

Missing in PHP7: Named parameters

This is the second post in my Missing in PHP7 series. The previous one is about function references. Readability of code is very important, and this is most certainly not readable:

You can make some guesses, and in a …

Missing in PHP7

I’ve decided to start a series of short blog posts on how PHP gets in the way of creating of well designed applications, with a focus on missing features. The language flamewar PHP is one of those languages that …