TQ
dev.com

Blog about software development

Subscribe

A session locking test suite for PHP

27 Nov 2022 - by 'Maurits van der Schee'

Session locking is well explained by Mattias Geniar in his article "PHP Session Locking: How To Prevent Sessions Blocking in PHP requests" (please read that first). Now that you've done that you know what session locking is. My story is that I have once been bitten by this bug...

Continue reading...

PHPStan: Find bugs without writing tests

15 Nov 2022 - by 'Maurits van der Schee'

I'm not saying you shouldn't write tests. But you may find bugs without writing tests using PHPStan. At least, that is what they claim on their website. I took a relatively big PHP project I run commercially to see whether or not PHPStan would help me to find and fix bugs...

Continue reading...

MintyPHP v3 is released

30 Oct 2022 - by 'Maurits van der Schee'

I use MintyPHP to quickly build web applications on the LAMP stack and I just released version 3 this month. Since v3 it relies solely on the composer generated autoloader, making the software faster and making it integrate even better with your IDE...

Continue reading...

Beelink "MINI S" N5095 under 200

13 Oct 2022 - by 'Maurits van der Schee'

I want my computers to be small, silent and repairable and use as little energy as needed, especially when idle. I recently bought a Beelink "MINI S" N5095/16GB/256GB computer with slots for both the DDR4 RAM and the M2 SATA drive. It has an external power supply and medium sized fan...

Continue reading...

Overengineering makes investors happy

18 Sep 2022 - by 'Maurits van der Schee'

Investors want tech startups to use a "latest technology" to gain an "unfair advantage" allowing them to compete in an established market. This "unfair advantage" may be a reason that the investment is going to pay off. Therefor startups may say that they are using (for instance) blockchain, AI...

Continue reading...

Getting started with Font Awesome 6

17 Sep 2022 - by 'Maurits van der Schee'

When you want to integrate the free Font Awesome icons in your application or website you are asked to "Enter your email to get started with a free Kit!" (source). It was always possible to just copy a single line in the head of your HTML. Fortunately this is still possible...

Continue reading...

Web development in Visual Basic .NET 6

24 Aug 2022 - by 'Maurits van der Schee'

In 2015 I was working on a Simple web framework for .NET. Back then I wanted to create an MVC framework that would allow me to run .NET web applications on Linux. Last year I ported the code .NET 5 (cross-platform now) and today I updated the code to support .NET 6...

Continue reading...

Generate avatars with initials in PHP

19 Aug 2022 - by 'Maurits van der Schee'

For a mobile app I'm doing some front-end development and the design includes a lot of avatars. Unfortunately we don't have any avatars of our users. Fortunately we do have their names and I've learned from Outlook and Trello that you can make great avatars with a user's initials...

Continue reading...

Proposal to fix a 2012 bug in Symfony

28 May 2022 - by 'Maurits van der Schee'

When your Symfony (PHP web framework) project uses AJAX requests and sessions (logging in) you may run into this 2012 bug where Symfony does not lock the session allowing for data loss on concurrent AJAX requests. I fixed the bug in 2014 in the SncRedisBundle...

Continue reading...

Add a REST API to an existing database

28 Apr 2022 - by 'Maurits van der Schee'

I've written PHP-CRUD-API (3k Github stars) that lets you publish an instant REST API for an existing database. The latest version supports a mapping to allow you to clean up the names of your tables and columns. Other important features such as authentication and authorization...

Continue reading...