Write documentation as tests in PHP using Rusty

Languages such as Python or Rust provide an interesting way to document code: they write code samples inside their documentation and they make them executable. Rusty is an attempt at implementing the same idea in PHP.

Use cases for PHP generators

Despite being available since PHP 5.5.0, generators are still largely underused. Let’s see what how awesome they are through real-world cases.

TIL PHP ::class keyword

The ::class keyword look like it can be used to assert that the generated FQCN will point to a valid class. Guess what: it cant.

Done with school.

That’s it. After five years spent learning computer science in various schools and universities, I’m finally free!

TIL Why is uniqid() slow?

While profiling RulerZ with, I noticed that a non-negligible amount of time was consumed by PHP’s uniqid() function. I found it odd that it consumed so much time and started to investigate why.

TIL Parallel bundle install

In ruby projects, the bundle install command is known to be quite slow. To mitigate this, Bundler provides an option allowing to install gems using parallel workers: bundle install --jobs 4. Just tell Bundler how many concurrent jobs can be launched and let it work.

New life, new blog

I launched my first blog in 2007, when I started to attend lycée (the American equivalent would be High School I guess, something like 9th or 10th grade). While most my posts were kinda tech-oriented, the rest of them were… well let’s say that I was young and that I’ve evolved since!

Symfony best practices

Digest of my best practices for Symfony projects. They are given as is, in no particular order and are far from being exhaustive.