Blog

How to use Vim on Linux and macOS

If you ever did try to edit files on Linux through the terminal, you’ll probably have run into Vim. It is a text-based editor pre-installed on …

How to capitalize strings in JavaScript

To capitalize a string in Javascript so the first character is in uppercase, we don’t need to add another NPM dependency. We can use plain …

How to use React Context

React Context is a powerful feature introduced in React v16.3.0. It allows you to access values from the current context (e.g. the parent) inside your …

Trap focus in a React component

Some actions on a web application requires shifting the focus of an user. We’ll use the focus-trap package to trap focus within a DOM node or …

Scroll a React component into view

React has an easy way to access DOM APIs of HTML elements through references. We learn how React exposes HTML elements by scrolling an element into …

A package for presenting person names

When building applications, you’ll probably have to show an user’s name in one or more formats (first, last, initials, etc.). I’ve …

Going epic with Redux Observable tests

The last couple of React projects I’ve developed where built with a lot of help from the Redux Observable library. It is an excellent library to …

How I started thinking about my styles

If I had received a dollar for each time I intend to write the most maintainable CSS I had ever seen… We’ve all been there as front-end developers, …

JavaScript rendering in PHP with Lambda

As a web developer you’ve must came across the term Polymorphic JavaScript, or Universal JavaScript as some may prefer to call it. The technique …

Handle authenticated users in Behat/Mink

One of the latest addition to PHP’s testing tools is Behat. A test framework that focusses on business expectations (behavior driven development) …

Running Hapi with Passenger on Heroku

Before it changed it’s name to Passenger, the application server was called mod_rails and used as module within Apache HTTPD to get your Ruby on Rails …

How I use environment variables with NodeJS

After a small tweet I sent out recently, I noticed a lot of response on it. So it seems that a lot of people are struggling with their NodeJS projects …

Rendering templates from a Twig extension

Given you need to render something - a toolbar for example - inside your template in a Symfony application. You have some options to do this like …

A spelling and grammar checker for Node

When you need to write in a foreign language, you’ll probably use Google Translate. An awesome service that does a great job for translating …

Running Symfony on Heroku

If you’re a PHP-only developer, odds are that you’ve never heard of Heroku. It’s one of the popular SAAS providers out there, but …

Install the INTL PHP extension in MAMP

As a Symfony developer you run into translations sooner or later. This is a very powerful component of the framework. But requires some additional …

Mock Guzzle responses in Symfony tests

Most of the web applications out there have at least one integration with an external service. Like with Twitter for pulling in tweets for example. On …

Masking Content In Drupal

Today I released a very useful module for masking parts of your content for certain roles, users or even organic groups. It is based on …

Using Drush in a MAMP environment

Drush is a very powerful instrument in the toolbox of a Drupal developer. But it can give you a little headache when trying to install in your local …

Install Mongo extension in MAMP with PECL

Maybe as you guessed from my previous post, I develop on a Mac with MAMP. I really like the interface of the pro version compared to other programs …

From A till Z in PHP

Today I discovered a very handy piece of code I wasn’t aware of till now. With this code, it’s very easy to get an array filled with all …

Upgrade MAMP's phpMyAdmin

My current MAMP version ships with phpMyAdmin version 3.3.9.2. But there is already a higher version available, version 3.4.10.1. Upgrading the …

Configure multiple Wordpress environments

Most of the time, when you are developing web applications, you make use of multiple environments. For example, a development, staging and production …