What is Prettier?
Originally from the Javascript ecosystem, if you're not familiar with it Prettier is a code formatter, which means it takes your code, and makes it as its namme indicates prettier . There are a lot of code formatters, and for a lot of languages – even Javascript has quite a few of them.
But Prettier is currently one of the most popular code formatters out there and it has sp…
By default when using Doctrine in a project, in particular entities, you may have to use annotations a lot, example:
The issue however is that when using PHPStorm to add these, it will default to grouping them all under one namespace as such:
Which won't necessarily work out of the box. The reason for this is that when creating the annotations driver
there is actually a second argument set to t…
As far as I can remember, PHP has always had a terrible reputation at handling very heavy (or asynchronous) tasks. For a long while if you wanted to parallelize long tasks you had to resort to forking through pcntl\_fork which had its own issues, and you couldn’t really handle the results of those tasks properly, etc.
As such, a habit has kind of developed where we go straight for more intricat…
If you’ve ever worked on any PHP application, or package, or anything you know that debugging performance issues is hard . There are several ways to ease the pain a little: debug bars, putting timers a bit everywhere. Or if you’re courageous like I was for a long time, you use xdebug snapshots which requires you to configure it, and then parsing the snapshots which takes a long time, etc.
Re…
Dans la vaste école des frameworks web, de langage en langage le paysage est bien différent. Là où les développeurs Ruby et Python ont su se mobiliser pour une même cause autour des piliers que sont désormais Rails et Django , il faut bien avouer que du côté du PHP ressort un certain côté cours de récré. Des frameworks à la pelle, chacun dérivés de X ou Y, pas un pour s’entendre sur des con…
I like to occasionally write articles about things that pique my interest at work, or opinions that I form over the years.
Toggle filters
One click to filter/sort double click to exclude filter name to reset
What is Prettier?
Originally from the Javascript ecosystem, if you're not familiar with it Prettier is a code formatter, which means it takes your code, and makes it as its namme indicates prettier . There are a lot of code formatters, and for a lot of languages – even Javascript has quite a few of them.
But Prettier is currently one of the most popular code formatters out there and it has sp…
By default when using Doctrine in a project, in particular entities, you may have to use annotations a lot, example:
The issue however is that when using PHPStorm to add these, it will default to grouping them all under one namespace as such:
Which won't necessarily work out of the box. The reason for this is that when creating the annotations driver
there is actually a second argument set to t…
As far as I can remember, PHP has always had a terrible reputation at handling very heavy (or asynchronous) tasks. For a long while if you wanted to parallelize long tasks you had to resort to forking through pcntl\_fork which had its own issues, and you couldn’t really handle the results of those tasks properly, etc.
As such, a habit has kind of developed where we go straight for more intricat…
If you’ve ever worked on any PHP application, or package, or anything you know that debugging performance issues is hard . There are several ways to ease the pain a little: debug bars, putting timers a bit everywhere. Or if you’re courageous like I was for a long time, you use xdebug snapshots which requires you to configure it, and then parsing the snapshots which takes a long time, etc.
Re…
Dans la vaste école des frameworks web, de langage en langage le paysage est bien différent. Là où les développeurs Ruby et Python ont su se mobiliser pour une même cause autour des piliers que sont désormais Rails et Django , il faut bien avouer que du côté du PHP ressort un certain côté cours de récré. Des frameworks à la pelle, chacun dérivés de X ou Y, pas un pour s’entendre sur des con…