Can you persuade an LLM to generate tokens until it fails? #llm
fluffyandflakey.blog/2025/06…
Dennis Snell retweeted
Inspired by Dennis Snell's talk on #WordPress Playground at #WCUS2024, I put together a #VSCode extension to edit ReadMe files in the block editor.
Dennis Snell retweeted
🌊 "We're so used to WordPress development being a drop in a massive ocean, but with Playground, *we are* the ocean. We get to choose everything that goes out to our customers," said @dmsnell23, sharing unique opportunities with Playground at #WCUS. 💻✨
#WordPress #PlayGround
Even spec-compliant #html parsers can "break." HTML cannot represent all possible (even invalid) DOM trees. #wordpress' #htmlapi speaks HTML and ensures full encapsulation and isolation when manipulating a document so this doesn't happen.
SGML lets me write post tags the way I think about them, and with a proper ENTITY and SHORTREF+USEMAP, it parses them structurally.
#sgml
Dennis Snell retweeted
Did you know that HTML API is built from 0, specially for #WordPress, and there's no other framework or CMS that has anything similar? They all still use regex 🥲 There's also an interesting effect on performance 👯
I'll show you its magic in two weeks at @PHPSrbija #PHPSRB 🥰
Dennis Snell retweeted
11/ In this hook, we'll create a custom class using the `wp_unique_id` function and apply it to our block using #WordPress relatively new `WP_HTML_Tag_Processor`. We'll then compose the style selector and add the icon markup using a regex.
Dennis Snell retweeted
When learning about new features in code, I found that reading tests is, by far, the fastest route to understanding the usage and learning about available methods.
Here are some utterly educational tests for WP_HTML_Tag_Processor by @dmsnell23 🤩
github.com/dmsnell/wordpress…
Dennis Snell retweeted
なお、ブランド名など翻訳させたくないテキストには、translate="no"をつけようネ💪
developer.mozilla.org/ja/doc…
WPのブロックエディタでは、WP_HTML_Tag_Processor を使うと良きです😇 .notranslate クラスを付けたブロックには一律 translate=noを付ける処理が書けます💪
developer.wordpress.org/refe…
Dennis Snell retweeted
Not many people realize the revolution that the HTML API represents for WordPress.
@dmsnell23 is doing an amazing job explaining how this API works in his workshop right now at #WCEU.
If you are not in this room now, make a note to see it later online 📝📺
Dennis Snell retweeted
If you want your own TOC block that dynamically creates a list of anchor links based on H2s, you can use the WP HTML Tag Processor in a custom block. Here's a basic example that skips any H2s that don't have an id (and it works inside templates, too 🤫)
When tests, linting, and CI reject work that fixes defects, it may be a good time to revaluate that system. Something is not right when defects are automatically enforced and preferred over fixes.
#testsfailed






















