Loïc Faugeron
banner
loicfaugeron.bsky.social
Loïc Faugeron
@loicfaugeron.bsky.social
Test. Code. Refactor. Repeat!
Ooooh Claude... At least you're trying.

"✳ For BisouLand, I think the loveliest port convention would be based on 21 - 'Bisou' has 5 letters, and 2+1+5+0+something = love?"
November 7, 2025 at 9:29 PM
Sometimes, we make typos in the namespace, classname, filename, folder names... Here's how to setup a way:

* to check for it: composer dump-autoload --optimize --strict-psr --strict-ambiguous
* to fix it: swiss-knife namespace-to-psr-4 src --namespace-root 'App\\'

gist.github.com/gnugat/437d6...
October 24, 2025 at 9:24 AM
Published: eXtreme Legacy 5: PDO

Migrating from the deprecated MySQL extension to modern PDO, and the security of prepared statements.

gnugat.github.io/2025/10/22/x...
October 23, 2025 at 9:09 AM
Published: eXtreme Legacy 4: Coding Standards

gnugat.github.io/2025/10/01/x...
October 1, 2025 at 12:59 PM
September 29, 2025 at 7:14 PM
Published: eXtreme Legacy 3: End to End Tests

gnugat.github.io/2025/09/24/x...
September 24, 2025 at 8:28 AM
I've been using this one liner to merge for a while now:

```
_GIT_MERGE_FROM_BRANCH=$(git branch --show-current); git checkout main && git merge --no-ff $_GIT_MERGE_FROM_BRANCH && git branch -D $_GIT_MERGE_FROM_BRANCH && git push
```

Finally decided to make a script out of it!
September 22, 2025 at 9:54 AM
Published: eXtreme Legacy 2: Smoke Tests

gnugat.github.io/2025/09/17/x...
September 17, 2025 at 12:52 PM
Published: eXtreme Legacy 1: Dockerizing a 2005 LAMP app

gnugat.github.io/2025/09/10/x...
September 10, 2025 at 9:18 AM
September 3, 2025 at 6:34 AM
Published: My dotfiles gnugat.github.io/2025/08/27/m...

I've set up that git repo back in 2014, and it's been extremely useful to me for the past 11 years. The biggest changes happened earlier this year (2025) as I suddenly needed macOS compatible settings, but other than that it's still the same.
August 27, 2025 at 7:53 AM
After a 6 months trial, I've officially now made the switch from bash to zsh! ⚡

✅ Superior tab completion
🚗 Auto-suggestions (ghost text completion as you type)
🌈 Syntax Highlighting (commands turn green/red in real-time)
August 24, 2025 at 12:57 PM
Here's on the left an output example of a (highly configure) neofetch / fastfetch command.

On the right the output of favicon's neofetch, which I believe is the standard (non configured / non customised) output.
August 22, 2025 at 4:17 PM
August 20, 2025 at 12:46 PM
August 13, 2025 at 6:02 AM
eXtreme Legacy code is eXtreme.

What do you like the most about it?

See: github.com/pyricau/biso...
August 12, 2025 at 11:44 AM
August 6, 2025 at 6:55 AM
Published: PHPUnit Best Practices.

gnugat.github.io/2025/07/31/p...
July 19, 2025 at 6:33 PM
Not sure how I should take that answer from Claude 😅
July 12, 2025 at 10:11 AM
In 2021, Andrew Garfield submitted a v2 for the RFC.
Instead of using $$, he proposed to used the arrow functions that were introduced in 2019 with PHP 7.1

AFAIK, Garfield had a tight deadline to implement this which'd have resulted in a rushed release. Some other objections were...
May 14, 2025 at 12:04 PM
Initially submitted in 2016 by Sara Golemon, the RFC v1 was proposing to use a special character as a placeholder for the first argument of the receiving callable.

My understanding / recollection is that it didn't go through due to Sara lacking time to work on the implementation.
May 14, 2025 at 11:57 AM
I had to reboot today, which means having to start my #tmux sessions again 😞.

I've found a new fancy way to do it though:

`_RT_NAME=dotfiles; z $_RT_NAME; tmux new -s $_RT_NAME`

I got the idea from @joshmedeski.bsky.social, he's combining zoxide, fzf and tmux to make sessions a breeze 🧵⬇️
April 30, 2025 at 7:57 AM
Fun fact: the TestDox attribute allows you to override what's written there.

It's main use to me is to combine it with DataProvider: test method parameters can then be used as placeholders, which will be replaced in --testdox with the values from the data provider.

docs.phpunit.de/en/12.0/attr...
April 24, 2025 at 12:48 PM
Good murning!
Just posting this here for future reference (for myself!) -- the run from a 2024 app #phpspec and #PHPunit testsuites:
February 21, 2025 at 9:16 AM