Making our Laravel test suite in Oh Dear ready for parallel testing
Using the new parallel testing feature that recently landed in Laravel, we managed to run the Oh Dear testsuite about four times faster.
Read more [ohdear.app]
Using the new parallel testing feature that recently landed in Laravel, we managed to run the Oh Dear testsuite about four times faster.
Read more [ohdear.app]
Last week, I started using a M1 powered MacBook Air as my primary computer. It feels much faster that my previous 16" MacBook Pro with Intel processor. Here's a good post on how Apple made their processors so fast.
Read more [debugger.medium.com]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"I’ve been reading freeks newsletter for a while now, and it’s easily one of my favorite developer newsletters. Freek shares practical, no-nonsense insights from running Spatie, maintaining hundreds of open-source packages, and shipping real products. Every time I get useful Laravel tips, smart tooling advice, always high quality and immediately applicable."
– gdebrauwer.dev - submitted by Günther Debrauwer
Generating one voucher code is easy, but what if you need to generate thousands (or millions) and you need to be sure that each voucher code is unique? In this post, I will explain how you can solve this problem (in PHP).
Read more [gdebrauwer.dev]
My colleague Alex recently fixed a strange problem with Redis.
Read more [alexvanderbist.com]
When your unit test suite gets larger, it can take quite a long time. One of the many ways to speed this up is to hunt down and fix slow tests. Let’s use PHPUnit’s test listeners to do just that.
Read more [www.aaronsaray.com]
Developed by Derick Rethans, Xdebug 2 is the current stable version. Xdebug 3 had its first RC release out just a few days ago, and this post benchmarks the performance improvements in the new version.
Read more [php.watch]
– naxon.dev - submitted by Daniel Naxon
I needed to display only the first picture from my Product's model media collection and found my app running five queries and hydrating 16 models with only four products to display 😱 . Here's how I ended with only two queries and eight models.
Read more [naxon.dev]
Larry Garlfriend explains how you can use PHP 8's weak maps to implement a self cleaning cache. Pretty sweet!
Read more [platform.sh]
Paratest is an extension on top of PhpUnit that adds support for parallel testing. For our unit tests, we could just add Paratest and it works without any configuration!
Read more [blog.mollie.com]
Xavier Decuyper researched which provider offers the fastest static webhosting.
Read more [www.savjee.be]
When reviewing the contents of the database of Flare, we encountered a table with 1 billion records. Technically that isn't a problem. Flare runs on Vapor and uses an Aurora database, so it can handle that scale. But of course, there's a cost for storing that many records.
We dove in and concluded that we could safely delete about 900 million records. They all were created before a specific date.
Read more [flareapp.io]
Modern applications don’t crash; they hang. One of the main reasons for it is the assumption that the network is reliable. It isn’t.
Read more [robertovitillo.com]
Databases are the backbone of most modern systems, so taking some time to understand how they work is a good investment for any developer.
Read more [hakibenita.com]
Using our laravel-model-cleanup package, you can easily remove old unneeded records from your database. We recently released a new major version that adds support for safely cleaning out huge tables.
In this blog post, I'd like to introduce this new release of the package to you.
Michael Dyrynda explains why and how you should install pcov
Read more [dyrynda.com.au]
My collegue Brent did some benchmarks of the upcoming JIT coming to PHP 8
Read more [stitcher.io]
– web.dev
Wouldn't it be nice if users wouldn't see a blank screen when navigation to another URL? Portals allow you to preload the next page and transition to it with a nice animation.
Read more [web.dev]
Project Lanai is a joint effort between JetBrains and Oracle that looks to solve performance problems by utilizing Apple's Metal API for rendering the application instead of OpenGL. My colleague Alex tried using it in PhpStorm
Read more [alexvanderbist.com]
Jonathan Reinink published another excellent blogpost on db performance.
Read more [reinink.ca]
We're excited to announce all Oh Dear users now have access to detailed performance metrics for all of their websites!
Read more [ohdear.app]