I'm blogging about Emacs, Drupal, php and exciting subjects

Emacs Magit: The Git Interface That Will Change How You Work

Submitted by admin on

Magit is not a thin wrapper around Git. It is a complete reimagining of the Git workflow inside a text editor, and it is almost universally cited as the single Emacs package that converts sceptics. After one week with Magit, most developers find the command-line Git UX intolerable by comparison.

Largest Contentful Paint (LCP) Optimisation: A Code-Level Checklist

Submitted by admin on

Largest Contentful Paint measures how long it takes for the largest visible content element — usually a hero image or an H1 heading — to finish rendering in the viewport. Google's recommended threshold is under 2.5 seconds on the 75th percentile of real user loads.

PHP Enums in Depth: Backed Enums, Methods, and Interfaces

Submitted by admin on

PHP 8.1 introduced enums as a first-class language feature. After a few years in the wild they are well-supported across frameworks, Drupal, and static analysis tools — but many PHP developers still use constants or pseudo-enum classes out of habit.

Docker Compose for a Drupal Development Stack: Nginx, PHP-FPM, MariaDB

Submitted by admin on

Running Drupal locally with a Docker Compose stack gives you a reproducible environment that matches production. Every team member gets the same PHP version, the same MariaDB version, and the same Nginx configuration — no more "works on my machine" debugging sessions.

PHP Attributes in Drupal 11: Replacing Annotations in Plugins and Hooks

Submitted by admin on

For years Drupal used docblock annotations — special comments parsed at runtime by the Doctrine Annotations library — to declare plugins, entity types, and field formatters. PHP 8.0 introduced native attributes as a first-class language feature, and Drupal 11 now supports them everywhere annotations were used.

Subscribe to Linkhub