Development
-
More flexible Figma Components: Slotting
Slotting in Figma is a practical technique that simplifies working with complex designs by equipping components with flexible “slots”. These slots are essentially predefined spaces within a component where other components or elements can be inserted. This is particularly useful for creating customizable and reusable UI elements such as buttons, cards, and navigation menus. The…
-
Getting a list of week numbers between two dates
Recently, I was working on a PHP application that needed to show weekly summaries in the period of one month. Then, January came and I found myself looking at 48 weeks instead of the expected 4 to 5. This is the piece of code that I used in a Twig template. What the above does,…
-
‘master’ has always been a poor branch name
Recently I was scrolling through my twitter timeline when I encountered this tweet by Fabien Potencier: Fabien eloquently describes something that suddenly clicked with me; master has always been a poor choice of name. With the current state of affairs, people have been reviewing the names that we use on a daily basis. And the…
-
Shape, Form and Detail: What developers could learn from drawing techniques
When you are like me and love practising your art as a developer then it hurts to build something only to throw it away later on. Many books, articles and opinions centre around the notion of good code; in this post, I want to make a case that you, initially, should not focus too much…
-
The WeCamp Experience
Disclaimer: I have been involved with the organisation of WeCamp for the past 6 years. The WeCamp Experience. In these past few years this has been my best description for what WeCamp is. It is incredibly hard for me to capture the essence of the Experience but I believe it is an incredible opportunity to…
-
Adding drop shadows to your Mapbox Maps
One of the things that MapBox does not natively support is the concept of drop shadows or some sort of glow to your map elements. Luckily, with some trickery, we can fake that. The trick here is to draw your polygons / areas twice, the first time you draw them as a line with a…
-
Setting the Field of View (FOV) in Mapbox GL JS
At a client of mine, we are working with Mapbox to show a floor plan of the building. As the map needs to be as readable as possible we wanted to do an experiment by using an orthographic or axonometric projection. Unfortunately, the camera in the Mapbox GL JS library cannot be configured to show an orthographic…
-
When your template cannot be found in Symfony 4
While I was playing with GraphQL in Symfony I wanted to use a pre-symfony 4 bundle to provide a GraphQL server. When I wanted to go to a page that used a twig template I got the following error: Unable to find template “GraphQLBundle:Feature:explorer.html.twig” (looked into: /var/www/templates, /var/www/templates, /var/www/vendor/symfony/twig-bridge/Resources/views/Form). Since I haven’t been working with…