On April 23, 2025 at 13:48

AI just run the first `rm …` command on my computer. And I trusted it to delete just the files it said it will delete.

What's the scariest thing that you've done with AI?

On April 22, 2025 at 13:48

Just got roasted by an AI πŸ”₯ about my strategy on socials:

> You’re creating technically dense content for an audience that doesn’t want to be lectured or debug with you unless there’s something emotionally or practically in it for them.

Fair. Brutal. True.

Does this resonate with you? What are some tactics that have worked well for you?

Attached are my stats for reference.

On April 21, 2025 at 19:39

Are you running paid ads for your WordPress products? Which platforms are you using and what type of creatives are working best?

On April 21, 2025 at 13:48

The WP core navigation-link block doesn't support current-ancestor feature which was available in the legacy menu system.

Previously we had the following classes available:

– current-menu-ancestor
– menu-item-has-children
– current_page_ancestor

This render method no longer has any of that logic: github.com/WordPress/gutenberg

And there doesn't appear to be an issue for this in the repo.

On April 19, 2025 at 05:54

Are you getting "SPF alignment issues" or "spf=neutral" for emails sent by WP?

Turns out that wp_mail() doesn't set the Return-Path email header which leads to PHPMailer populating that from the php.ini sendmail_from setting. While that is correct, email clients these days expect the FROM domain, Return-Path and DKIM p= domain to be equal to pass the DMARC checks.

On April 18, 2025 at 13:48

Here is a crazy idea — use JSON with actual JS for config files. So many JS and PHP projects seem to embrace it now over plain JSON or YAML files.

Was listening to this interview with Sam Goodwin on devtoolsFM podcast about Alchemy and realized how cool it is to have actual programming language features for configs.

devtools.fm/episode/138

On April 17, 2025 at 18:11

Introducing Lazy Load Blocks for WordPress!

Speed up your site and boost UX by lazy loading any block — videos, embeds, forms, and more without breaking SEO.

πŸ’‘ Easy setup
πŸ€– SEO-friendly
🎯 Lightweight and effective

Watch the walkthrough: πŸ”½

On April 17, 2025 at 13:48

Why is naming things hard? 🏷️ OpenAI is such a young company but their user-facing product names look like this already.

On April 16, 2025 at 16:22

Native <video> in HTML is extremely good these days. Videos encoded with H264/AAC are universally playable and with HTTP chunk support you can serve the same video to all users.

However, browsers seem to request videos with preload=auto/metadata as soon as the page loads which is unnecessary. So I built this lazy-load solution that hides the src attribute (prevents loading) until an Intersection Observer callback.

On April 15, 2025 at 13:48

Responded to @kasparsd:

Optional Chaining & Nullish Coalescing πŸ“œ ES2020

const what = user?.profile?.name ?? 'N/A';

Reads the value of name without undefined crashes, and returns 'N/A` if not present.

On April 15, 2025 at 13:48

Responded to @kasparsd:

Object.entries() πŸ“œ ES2017

const obj = { a: 1, b: 2 };
Object.entries(obj);

returns [ ['a', 1], ['b', 2] ] which is useful for mapping.

On April 15, 2025 at 13:48

Responded to @kasparsd:

Object Spread for Merge πŸ“œ ES2018

const a = { x: 1 };
const b = { y: 2 };
const c = { …a, …b };

Merges like magic (shallow copy).

On April 15, 2025 at 13:48

Responded to @kasparsd:

Computed Property Names πŸ“œ ES6 (2015)

const key = 'foo';
const obj = { [key]: 123 };

Turns variable value into a property key. Syntax sugar for obj[key] = 123.

On April 15, 2025 at 13:48

Responded to @kasparsd:

Nested Destructuring πŸ“œ ES6 (2015)

const user = { profile: { name: 'Ada' } };
const { profile: { name } } = user;

Same as name = user.profile.name;

And you can rename the variable name to userName:

const { profile: { name: userName } } = user;