I’ve recently worked on a Vue application after working for a long time with React, and more particularly with React and Typescript. While I felt right at home in Vue 3’s Composition API given how similar it feels to React Hooks, I did miss the ability to easily use Typescript purely for props validation... or so I thought.
Options API versus Composition API
Now I’ve known for quite some time th…
Over my career I've dabbled in various forms of testing, both on the back-end and front-end. I've tried various frameworks, experimented with different approaches, types of tests and philosophies, from unit tests to Gherkin behaviour tests to E2E tests with Selenium in the good ol days. And yet despite all this I don't consider myself good at testing, because I can be very lazy and that I tend to…
Rationale
When working in a React application, one pain point that often comes up is Redux . People say that as soon as an application uses it, things quickly get overrun with boilerplate and "wiring" code that ultimately clogs your codebase more than it helps it. This isn't something inherent to Redux but more something to do with the best practices associated with it, and with people misusing …
While snapshot testing has been around for a while in the form of visual snapshots (used in visual regression testing), it's clear that the introduction of textual snapshots in Jest a few years ago had a big impact on testing, not only in Javascript but in other languages as well. But looking back on what it brought me a few years later I feel rather failed by snapshots. And while most of the blam…
Hello everyone!
By now I think a lot of you might have noticed something was different with me lately, and I've been meaning to approach the subject but it's taken me a while to get the courage to pull the trigger.
I've struggled a bit throughout my life with my image, my esteem and my identity. This has manifested in quite a lot of ways over the years (yes including the hair ??♀️) but it too…
Why Gatsby?
One of the greatest aspects of modern web development is how modular and composable everything has become. Building an application these days has become a lot like tinkering with building blocks: piecing together packages, APIs, services and so on. Each doing what they do best. We've learned that reinventing the wheel is (often) not the solution and by embracing interoperability we've…
If you’ve ever worked with Redux – in the context of a React application or not – you may have heard numerous times that it was inspired not only by Flux (which it followed) but also by the Elm architecture. This is something that is thrown around a lot by people in the React ecosystem, and looking at the Elm homepage it may seem difficult to see the link between a strictly-typed language and a JS…
What's up with Chrome?
Recently Google has been in the headlines a lot due to an upcoming change affecting Chrome, which you can read about a bit more over here but the gist of it is the following:
The proposed design changes would replace the API relied upon by privacy extensions like uBlock and Ghostery with another designed to “diminish the effectiveness of content blocking and ad blocking ex…
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…
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…
In my branch there are a lot of things that make it possible to distinguish someone who does his job well from someone who doesn’t. Compliance with norms and standards, the reusability of the code, the consideration of accessibility, and so on. But above all, it is the willingness and ability to update oneself.
It is this quality that makes people who are considered very good in their field right…
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…
Depuis quelques temps j’ai envie d’écrire une mince série de billets sur ce que je fais plus concrètement au travail. Histoire de partager, recueillir quelques avis et puis pouvoir discuter un peu de sujets qui me passionnent avec des gens qui traversent la même chose. Comme je l’avais mentionné dans un précédent article, j’ai commencé à travailler il y a deux ans et demi de cela. Quand je suis ar…
J’ai conscience qu’à à peu près chaque fois que je publie sur ce blog j’annonce mon article sur Buckethead, mais c’est tellement difficile de cerner le personnage et ses indénombrables albums qu’en attendant je préfère me consacrer à d’autres poissons, plus petits mais néanmoins intéressants : les Cold War Kids.
La musique du groupe dont je parle aujourd’hui n’en est pas pour autant plus facile à…
There is one rule in the game. And it needs to be broken. There is one goal. And when you attain it, you die.
Il y a un mois de cela, Factornews faisait une preview d’un jeu étrange, sorti de nulle part et développé par un petit studio indépendant : The Path . Revisite profondément macabre du conte de Perrault, sobre mélange de jeu vidéo expérience et d’art, il suffisait de lire les mots du réda…
00:25 - Anahkiasen: « Disaster Movie » who the fuck downloaded that
00:25 - Saniss: TCHAKATCHAKATCHAKATCHAKA CHOOCHOOOOOOO
00:25 - Anahkiasen: Hm.
00:25 - Anahkiasen: Oui bon au point où j’en suis, va pour Disaster Movie.
00:26 - Anahkiasen: If you see me in twenty minutes it’s that this movie is actually a disaster.
Avant toute chose, étant donné que la transition est quand même douteuse, jetez …
C’est un bloc de pierres paisibles où quelques mille récifs s’entrechoquent et se résignent. C’est un bloc de haine abrasive où certains sèment le rêve pendant que d’autres hésitent.
Je poste peu sur ce blog, pour la simple et bonne raison que je n’ai jamais l’impression d’avoir réellement quelque chose à y dire. Il arrive aussi trop souvent qu’un sujet me saisisse, sans que l’article parvienne à…
Attention, personnes sensibles et femmes enceintes, cet article parle de rap français !
Bien, maintenant que plus personne n’écoute je peux tranquillement déblatérer des conneries. Comme certains le savent, j’aime énormément le rap français; j’en écoute des heures et des heures chaque jour, je pourrais en écrire des paragraphes interminables, j’en ai visité les prémices et les classiques, et je v…
Robin the Bobbin, the big-headed hen.
He eat more meat than four-score men.
He eat a cow, he eat a calf,
He eat a butcher and a half;
He eat a church, he eat a steeple,
He eat the priest and all the people.
Comparative Studies in Nursery Rhymes - Lisa Eckenstein
Elles ne se seraient doutées que la route serait aussi sombre ce soir-là. Les yeux las, la femme gardait pourtant le pied enfoncé sur l…
Si il y a bien une chose qu'il faut reconnaître chez Tim Burton, c'est que son petit monde est à des lieues de celui des autres réalisateurs, bien loin des idées abstraites d'un Cronenberg ou des aventures épiques ou comico-gore d'un Jackson. Le monde de Burton est un monde féerique ou étrange où arrivent souvent des choses qui n'arriveraient pas dans la vraie vie.
Ce Big Fish est une nouvelle pre…
Bon, j’ai été au cinéma aujourd’hui voir Silent Hill, comme prévu. Allons droit au but, j’ai adoré. Les décors sont sublimes, l’histoire tient la route (disons que Gans a fait de son mieux pour la respecter et s’en sort plutot bien). La musique de Akira est toujours aussi somptueuse, bien qu’on ai l’impression que Gans ai voulu en caser un maximum et que à chaque scène on a le droit à une musique,…
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
I’ve recently worked on a Vue application after working for a long time with React, and more particularly with React and Typescript. While I felt right at home in Vue 3’s Composition API given how similar it feels to React Hooks, I did miss the ability to easily use Typescript purely for props validation... or so I thought.
Options API versus Composition API
Now I’ve known for quite some time th…
Over my career I've dabbled in various forms of testing, both on the back-end and front-end. I've tried various frameworks, experimented with different approaches, types of tests and philosophies, from unit tests to Gherkin behaviour tests to E2E tests with Selenium in the good ol days. And yet despite all this I don't consider myself good at testing, because I can be very lazy and that I tend to…
Rationale
When working in a React application, one pain point that often comes up is Redux . People say that as soon as an application uses it, things quickly get overrun with boilerplate and "wiring" code that ultimately clogs your codebase more than it helps it. This isn't something inherent to Redux but more something to do with the best practices associated with it, and with people misusing …
While snapshot testing has been around for a while in the form of visual snapshots (used in visual regression testing), it's clear that the introduction of textual snapshots in Jest a few years ago had a big impact on testing, not only in Javascript but in other languages as well. But looking back on what it brought me a few years later I feel rather failed by snapshots. And while most of the blam…
Hello everyone!
By now I think a lot of you might have noticed something was different with me lately, and I've been meaning to approach the subject but it's taken me a while to get the courage to pull the trigger.
I've struggled a bit throughout my life with my image, my esteem and my identity. This has manifested in quite a lot of ways over the years (yes including the hair ??♀️) but it too…
Why Gatsby?
One of the greatest aspects of modern web development is how modular and composable everything has become. Building an application these days has become a lot like tinkering with building blocks: piecing together packages, APIs, services and so on. Each doing what they do best. We've learned that reinventing the wheel is (often) not the solution and by embracing interoperability we've…
If you’ve ever worked with Redux – in the context of a React application or not – you may have heard numerous times that it was inspired not only by Flux (which it followed) but also by the Elm architecture. This is something that is thrown around a lot by people in the React ecosystem, and looking at the Elm homepage it may seem difficult to see the link between a strictly-typed language and a JS…
What's up with Chrome?
Recently Google has been in the headlines a lot due to an upcoming change affecting Chrome, which you can read about a bit more over here but the gist of it is the following:
The proposed design changes would replace the API relied upon by privacy extensions like uBlock and Ghostery with another designed to “diminish the effectiveness of content blocking and ad blocking ex…
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…
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…
In my branch there are a lot of things that make it possible to distinguish someone who does his job well from someone who doesn’t. Compliance with norms and standards, the reusability of the code, the consideration of accessibility, and so on. But above all, it is the willingness and ability to update oneself.
It is this quality that makes people who are considered very good in their field right…
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…
Depuis quelques temps j’ai envie d’écrire une mince série de billets sur ce que je fais plus concrètement au travail. Histoire de partager, recueillir quelques avis et puis pouvoir discuter un peu de sujets qui me passionnent avec des gens qui traversent la même chose. Comme je l’avais mentionné dans un précédent article, j’ai commencé à travailler il y a deux ans et demi de cela. Quand je suis ar…
J’ai conscience qu’à à peu près chaque fois que je publie sur ce blog j’annonce mon article sur Buckethead, mais c’est tellement difficile de cerner le personnage et ses indénombrables albums qu’en attendant je préfère me consacrer à d’autres poissons, plus petits mais néanmoins intéressants : les Cold War Kids.
La musique du groupe dont je parle aujourd’hui n’en est pas pour autant plus facile à…
There is one rule in the game. And it needs to be broken. There is one goal. And when you attain it, you die.
Il y a un mois de cela, Factornews faisait une preview d’un jeu étrange, sorti de nulle part et développé par un petit studio indépendant : The Path . Revisite profondément macabre du conte de Perrault, sobre mélange de jeu vidéo expérience et d’art, il suffisait de lire les mots du réda…
00:25 - Anahkiasen: « Disaster Movie » who the fuck downloaded that
00:25 - Saniss: TCHAKATCHAKATCHAKATCHAKA CHOOCHOOOOOOO
00:25 - Anahkiasen: Hm.
00:25 - Anahkiasen: Oui bon au point où j’en suis, va pour Disaster Movie.
00:26 - Anahkiasen: If you see me in twenty minutes it’s that this movie is actually a disaster.
Avant toute chose, étant donné que la transition est quand même douteuse, jetez …
C’est un bloc de pierres paisibles où quelques mille récifs s’entrechoquent et se résignent. C’est un bloc de haine abrasive où certains sèment le rêve pendant que d’autres hésitent.
Je poste peu sur ce blog, pour la simple et bonne raison que je n’ai jamais l’impression d’avoir réellement quelque chose à y dire. Il arrive aussi trop souvent qu’un sujet me saisisse, sans que l’article parvienne à…
Attention, personnes sensibles et femmes enceintes, cet article parle de rap français !
Bien, maintenant que plus personne n’écoute je peux tranquillement déblatérer des conneries. Comme certains le savent, j’aime énormément le rap français; j’en écoute des heures et des heures chaque jour, je pourrais en écrire des paragraphes interminables, j’en ai visité les prémices et les classiques, et je v…
Robin the Bobbin, the big-headed hen.
He eat more meat than four-score men.
He eat a cow, he eat a calf,
He eat a butcher and a half;
He eat a church, he eat a steeple,
He eat the priest and all the people.
Comparative Studies in Nursery Rhymes - Lisa Eckenstein
Elles ne se seraient doutées que la route serait aussi sombre ce soir-là. Les yeux las, la femme gardait pourtant le pied enfoncé sur l…
Si il y a bien une chose qu'il faut reconnaître chez Tim Burton, c'est que son petit monde est à des lieues de celui des autres réalisateurs, bien loin des idées abstraites d'un Cronenberg ou des aventures épiques ou comico-gore d'un Jackson. Le monde de Burton est un monde féerique ou étrange où arrivent souvent des choses qui n'arriveraient pas dans la vraie vie.
Ce Big Fish est une nouvelle pre…
Bon, j’ai été au cinéma aujourd’hui voir Silent Hill, comme prévu. Allons droit au but, j’ai adoré. Les décors sont sublimes, l’histoire tient la route (disons que Gans a fait de son mieux pour la respecter et s’en sort plutot bien). La musique de Akira est toujours aussi somptueuse, bien qu’on ai l’impression que Gans ai voulu en caser un maximum et que à chaque scène on a le droit à une musique,…