RE: https://phpc.social/@thbley/115703101459780371
Current alpha of HTMX4 is introducing "Explicit Attribute Inheritance":
Developer :php: :mysql: :linux:
Pascal 1993-2001, PHP/JS/MySQL since 2000, some Java/Go/Bash
RE: https://phpc.social/@thbley/115703101459780371
Current alpha of HTMX4 is introducing "Explicit Attribute Inheritance":
RE: https://phpc.social/@phpugmrn/115702437719144543
Thanks to everyone for coming and listening!
Here are the slides for my new talk today @phpugmrn about HTMX:
https://codeberg.org/thbley/talks/raw/branch/main/HTMX_phpugmrn_2025_ThomasBley.pdf
@ocramius it works quite good, proper signal handling, logging, auto restart for crashes, good documentation
@ocramius how about supervisord?
A great option to optimize database writes in Laravel is using bulk operations.
E.g. "upsert()" can insert/update multiple rows with _one_ query using "on duplicate" logic:
User::upsert(values: [
['email' => 'foo@domain', 'name' => 'Foo'],
['email' => 'bar@domain', 'name' => 'Bar'],
], uniqueBy: ['email'], update: ['name']);
becomes:
INSERT INTO users (email, name),
VALUES
('foo@example', 'Foo'),
('bar@example', 'Bar')
ON DUPLICATE KEY UPDATE name = values(name);
MySQL Replication Best Practices:
https://percona.community/blog/2025/12/03/mysql-replication-best-practices-how-to-keep-your-replicas-sane-and-your-nights-quiet/
@shochdoerfer smart move by Anthropic
@markusstaab @phpunit e.g. Pest uses https://github.com/sebastianbergmann/php-code-coverage/blob/bca180c050dd3ae15f87c26d25cabb34fe1a0a5a/src/Report/PHP.php#L30 this is quite slow for bigger code bases
@markusstaab @phpunit how about skipping serialize() and unserialize() and write the cache as .php file?
The slides for my talks are now also on Codeberg! 🎉
Codeberg has over 200k accounts and only 1.2k members, which, if we assume that the recommended membership fee is the average, works out to ~50k€ per year in membership dues.
They’re asking for old hardware to run CI jobs, because they can’t just go out and buy a Mac Mini.
Please, folks, if you think a non-USA alternative to GitHub is important, and you have the disposable income: put your money forward.
Or, if you just want to donate once:
The AWS RDS drama: why managed databases with EBS are only fast in charging your credit card and not fast with your data:
Having trouble with running Redis? Try Apache KVRocks!
Here is my new talk:
From Redis to Apache KVRocks (it's not about the license):
https://github.com/thomas-0816/talks/blob/master/From_Redis_To_Apache_KVRocks_2025_ThomasBley.pdf?raw=true
@ocramius find some automation tool to hide the "pin copilot" overlay every day
New! A Look At HTMX With PHP
HTMX is a JavaScript library that can be used to issue AJAX requests, create CSS transisions, and set up web sockets using HTML
The power of HTMX is that it can be used without writing any custom JavaScript code.
In this article we will look at how to get HTMX working with a vanilla PHP backend. With a few examples of the two systems working together.
https://www.hashbangcode.com/article/look-htmx-php
#javascript #htmx #php