PHP

February-2018.php

Why PHP 7.2 Is Important thephp.cc gives an overview of some of the internal changes that have happened to PHP over the last few versions, to try and discover the actual impact of these changes. Based on this they discuss some of the behind the scene...

Race conditions

We just had an issue at work. A system that had been working fine suddenly started losing data. This had never been an issue before, and it seemed to happen at random which made it pretty hard to debug and reproduce. The system consisted of a JavaScr...

December-2017.php

The pages of the calendar has turned, and our dates now start with 2018, at least for those of us following ISO-8601. Still in this new year, I'm planning to keep doing my monthly lists of interesting tech-related articles to read. Starting from toda...

November-2017.php

Oh yes, Unix The Unix philosophy focuses on minimalist, modular software. A beautiful example of this is the yes command, which repeatedly prints the character 'y'. This sounds really simple, but Matthias Endler wrote a little story about the yes Uni...

September-2017.php

Another month is coming to an end, and again that means I'll try to summarize some of the most interesting articles I've read. Because of holidays, it's been a pretty short month for me work-wise. That also means that this month's list is pretty shor...

August-2017.php

Once again a month is coming to an end and, as is becoming the habit, I've gathered a bunch of interesting tech articles that caught my eye during the last month. First up, Matthias Noback has a 3-part series about his approach to application archite...

July-2017.php

Even though July was a pretty quiet month online due to everybody being on vacation, I still came across some interesting articles. Earlier in the year, there was a big discussion in the PHP community after some people suggested that pretty much ever...

May-2017.php

The month of May is over, and as usual, it's time for a summary of interesting tech related articles I've found during the month. We start out with some numbers. Jordi Boggiano published a new updated version of his PHP version stats. A range of stat...

April-2017.php

April is almost over, and it's time for another monthly roundup of interesting articles and links. During the month I've read some interesting articles providing a pretty good spread ranging from introductions to JavaScript tools over best practice f...

March-2017.php

The month of march is ending, so it's time for this month's roundup of recommended reads. This month consists of 3 main topics: PHP, JavaScript and project management. Even though I work a lot with PHP there's always something new to learn. I've prev...

February-2017.php

February is coming to a close, and it's time for a monthly round-up. Even though February is the shortest month of the year I doubt it will be the least eventful. Especially the security scene has been on fire this month, and I doubt we've seen the f...

Laravel file logging based on severity

Per default anything logged in a Laravel application will be logged to the file: storage/logs/laravel.log, this is fine for getting started, but as your application grows you might want something that's a bit easier to work with. Laravel comes with a...

Lazy loading, eager loading and the n+1 problem

In this article I'll look into a few data loading strategies, namely: Lazy loading Eager loading Lazy-eager loading I'll talk a bit about the pros and cons of each strategy, and common issues developers might run into. Especially the n+1 problem, a...

OOP Cheatsheet

This is a small OOP (Object oriented programming) cheatsheet, to give a quick introduction to some of the commonly used OOP terminology. function returnSomething() { $something = 'something'; return $something; } echo returnSomething(); c...

Wrapping up Laracon EU 2016

Last week I spend some days in Amsterdam attending Laracon EU 2016. It was two very interesting days, and I think the general level of the talks was very high compared to other conferences I've attended. The location and the catering was also really ...

Front Controller design pattern

A common design patterns used by PHP frameworks, is the front controller. The base idea is simply that your application has a single entry point, which distributes all requests to the proper parts of the system. In php the front controller pattern us...

PHP 7 has finally arrived

After about 2 years of work, and a few postponements, PHP 7 has finally been released. I've previously written at length about PHP 7 new features and enhancements but the short version is: Improved performance: PHP 7 is up to twice as fast as PHP 5....

New WordPress plugin: URL Builder for Analytics

tl;dr: I've built a WordPress plugin for creating Google Analytics tracking URLs for your posts, straight in the post editor. Development of the plugin happens on the GitHub repository Website Analytics in short When doing website analytics, it can ...

PHP 7 - What's up, and what's new?

Update nov. 9 - Looks like the PHP 7 release date has been postponed due to some outstanding bugs and regressions. It should still be right around the corner, though. PHP 7 overview The next major version of PHP, PHP 7, should be right around the cor...

Composer

What is Composer Composer is a dependency manager for PHP. It makes it easy to include 3rd party libraries in your PHP project. It's inspired by npm and aims to bring some of the same ideas to PHP will fixing some of the deficiencies. But, what about...