Quantcast
Channel: Jesper Jarlskov's blog
Browsing all 43 articles
Browse latest View live

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...

View Article


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...

View Article


Demagicfying Laravel: Model properties; getters and setters

I mostly enjoy working with Laravel. It provides a range of tools that makes it really fast to create a proof of concept of an idea, allowing you to test out your ideas without spending too much time...

View Article

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...

View Article

Validating email senders

Email is one of the most heavily used platforms for communication online, and has been for a while. Most people using email expect that they can see the who sent the email by looking at the sender...

View Article


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...

View Article

PHP regular expression functions causing segmentation fault

We recently had an issue where generating large exports for users to download would suddenly just stop for no apparent reason. Because of the size of the exports the first thought was that the process...

View Article

HTTP/2 – What and why?

What is HTTP? HTTP, HyperText Transfer Protocol, is an application layer network protocol for distributing hypermedia data. It is mainly used for serving websites in HTML format for browser...

View Article


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...

View Article


Exporting from MySQL to CSV file

We often have to export data from MySQL to other applications; this could be to further analyse the data, gather user emails for a newsletter or similar. Usually these applications, CSV is probably the...

View Article

January-2017.php

As a new feature this year, I’d like to start doing monthly summaries of interesting articles I read throughout the month, that I feel is worth returning back to. The lists will include a bunch of...

View Article

HTTPS and HTTP/2 with letsencrypt on Debian and nginx

Introduction Letsencrypt NGINX Improving HTTPS security Benchmarking your setup Introduction Most web servers today run HTTP/1.1, but HTTP2 support is growing. I’ve written more in-depth about the...

View Article

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...

View Article


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...

View Article

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...

View Article


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...

View Article

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...

View Article


June-2017.php

Summer is on, June is over, and it’s time for yet another summary of a month passed. This month’s focus will be on PHP and Laravel, with an emphasis on performance, but many of the tricks are also...

View Article

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...

View Article

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...

View Article
Browsing all 43 articles
Browse latest View live