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.
How to efficiently create chunks from several iterators in PHP?
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.
::class keyword look like it can be used to assert that the generated FQCN will point to a valid class. Guess what: it cant.
November 24th 2015, I gave my first big talk at the Forum PHP conference, organized by the AFUP in Paris.
That’s it. After five years spent learning computer science in various schools and universities, I’m finally free!
While profiling RulerZ with Blackfire.io, 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.
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
bundle install --jobs 4. Just tell Bundler how many
concurrent jobs can be launched and let it work.
I already introduced RulerZ and the reasoning behind it. This time I’ll showcase its integration with Symfony and the Form Component.
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!
A while ago I stumbled upon a - rather old but nonetheless interesting - post written by @beberlei. In his post, he highlighted the issues of having too much responsibilities in a repository and suggested a solution based on the Specification pattern.
Digest of my best practices for Symfony projects. They are given as is, in no particular order and are far from being exhaustive.
Symfony snippet showing how to use several validation files.