Always use caret instead of tilde

I’ve been noticing people having trouble understanding the differences between the caret (“^”) and the tilde (“~”) operator in the composer.json file. Composer’s documentation is great but a bit short, that is why I write this blog...

How Happyr work with Symfony translations

You probably follow the Symfony best practices when you develop web applications. That is great but there is no much information about translation. The official documentation tell you about file format, file location and something about translations keys. But then...

Do not worry about code style fixes

Earlier this year I installed Fabiens php-cs-fixer on my continuous integration server. So at each build I checked if there were any code style errors, if so I failed the build. Easy as pie and our source code were always nice and clean. But this new feature changed...

Hack: Asynchronous programming

Hack has introduced asynchronous programming. This is really great but it is not really documented at the moment. Not at all actually… I’ve done some experimenting and I will try to introduce you to the new concept. There is two new keywords async and await....

Hack Lambda expressions

Hack is all about making it easier for the developer to write good code. There has been some improvement of the PHP anonymous function or closer as they also are called. An anonymous function is a function without a name (dah!). You may use them as a parameter to some...

Using generics in Hack

Hack has introduced some new collection objects that will be a replacement for the array(). But what if you feel that something is missing? What if you have a problem that is easiest solved with another type of object? This is where we use generics. Say that you want...