Doeke Norg

Doeke Norg @doekenorg

About: Works mostly with Symfony, Laravel and a sprinkle of WordPress plugins. Testing enthusiast.

Location:
Groningen, The Netherlands
Joined:
Jul 21, 2021

Doeke Norg
articles - 17 total

Exploring Coroutines in PHP

The term "coroutine" often comes up when talking about asynchronous or non-blocking code, but what...

Learn More 5 4Jul 5

Reading bundle configuration inside Symfony Compiler Passes

When creating a Symfony bundle, you'll often want to use a custom Configuration to configure, or even...

Learn More 4 0May 4 '23

How the PHP Middleware Pattern works and can easily be applied

In this post we'll be looking at Middleware in PHP. This pattern is most common in the handling of...

Learn More 19 0May 4 '22

Using callbacks to prevent code duplication

Sometimes it can be useful to use a callback function or other callable to prevent a bunch of code...

Learn More 10 0Apr 11 '22

Heaps explained in PHP | Quick access to the highest or lowest value of a dataset

In this article we'll explore the world of Heaps, the data structure. Because some knowledge of Trees...

Learn More 8 0Dec 27 '21

The Visitor Pattern in PHP

The Visitor Pattern isn't used often. This is because there are few situations in which it is...

Learn More 43 3Nov 12 '21

Trees and Tree Traversal in PHP

In this post I want to introduce you to Tree structures. What they are, how you can use them, and in...

Learn More 9 0Oct 18 '21

Adapter Pattern vs. Bridge Pattern

The Adapter pattern and the Bridge Pattern have brought along a lot of confusion. In this post we're...

Learn More 62 5Oct 4 '21

What happens when we clone?

It can sometimes be more useful to create a copy of an object and only change the relevant parts,...

Learn More 13 0Sep 24 '21

Decorator Pattern vs. Proxy Pattern

There are two patterns in PHP that are very similar; The Decorator Pattern and The Proxy Pattern....

Learn More 22 0Sep 18 '21

How to use symfony/mailer without the Symfony framework

On August 19, 2021, Fabien Potencier officially announced the end of maintenance for Swiftmailer....

Learn More 13 0Sep 11 '21

A simple PSR-4 autoloader

Have you even used a composer.json file purely for the need of registering a PSR-4 autoloader? I...

Learn More 6 0Sep 3 '21

Traits are not inherited

Traits are not inherited, but copy-pasted. What does that imply?

Learn More 8 3Aug 28 '21

Introducing Iterator Functions package

Today I launched a new package: Iterator Functions. It's a package that helps with everyday usage of...

Learn More 6 4Aug 13 '21

is_initialized() helper function

I'm no fan of (too much) global helper functions, but I feel like is_initalized() is a must! It...

Learn More 2 5Aug 1 '21

Event dispatching in different frameworks

I first encountered events when I was working with Joomla!. I had to create some plugins, and quickly...

Learn More 5 0Jul 25 '21

Generators over arrays

I love ❤️ generators in PHP. They are like supercharged arrays that can preserve memory when used...

Learn More 4 0Jul 21 '21