fbpx
Default image

Matteo Moretti

The C in CSS: cascading

Author: Stefano Frasca The Cascade is a fundamental element of CSS: it means that in order to fully understand how an element will be rendered, a developer should be aware of how weight, specificity, and order will affect the process.…

PHP tip: array_diff an array of objects

That’s tricky! Let’s assume we have two arrays like these: [crayon-60c66e343dab5510609801/] Looking at these few lines I would expect that those two arrays are different but if we compare them with php array_diff function they’re the same: [crayon-60c66e343dab8292083544/] This happens…

TWIG: include VS embed VS macro

There are various types of code reuse in Twig but, what are the differences between them? In this article we’ll explore the differences between include, embed and macro. First of all, some definitions from the documentation: The include statement includes…