Why immutability?
When working on a React application that needs to handle state, one of the main pitfalls to watch out for is accidental mutations. Which is fancy talk for mistakenly modifying stuff you didn't want to change:
In this case, imagine we're in a Profile form, user holds the current user information and we want to create an updated user object with the modified attributes. As you …
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…
I like to think I'm a rather organised person. Not in every aspect of my life and not to the same extent in each, but I try my best to keep my thoughts in line. The problem with this, unfortunately, is that there is such a thing as counterproductive organisation. That is, the moment you're organised in such a fractured and unreliable way, that it becomes harmful to your end goal.
It doesn't start…
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
Why immutability?
When working on a React application that needs to handle state, one of the main pitfalls to watch out for is accidental mutations. Which is fancy talk for mistakenly modifying stuff you didn't want to change:
In this case, imagine we're in a Profile form, user holds the current user information and we want to create an updated user object with the modified attributes. As you …
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…
I like to think I'm a rather organised person. Not in every aspect of my life and not to the same extent in each, but I try my best to keep my thoughts in line. The problem with this, unfortunately, is that there is such a thing as counterproductive organisation. That is, the moment you're organised in such a fractured and unreliable way, that it becomes harmful to your end goal.
It doesn't start…