Hugo's Avatar

Hugo

@codewithhugo.com

Senior Developer - Building alpinedevtools.com Wrote jesthandbook.com + ×3 books with Packt. Thoughts at codewithhugo.com

44
Followers
91
Following
54
Posts
01.04.2024
Joined
Posts Following

Latest posts by Hugo @codewithhugo.com

Quadratic runtime complexity (nested loops) is really nasty since it's fast over small datasets/test cases but under real-world usage it breaks. In this case, the Alpine.js Devtools data panel would freeze.

25.02.2026 11:19 👍 0 🔁 0 💬 0 📌 0
Post image

This fix for an O(n^2) -> O(n) is just moving a reduce() out of a map(), but it took years to diagnose (thanks to showsubmit.com for being the reproduction case).

25.02.2026 11:19 👍 0 🔁 0 💬 1 📌 0

I would be interested

25.01.2026 17:23 👍 2 🔁 0 💬 1 📌 0

The super annoying thing here is that in my case it didn't manifest as a CSP failure but as a crash from the _website's_ code

21.11.2025 10:51 👍 2 🔁 0 💬 0 📌 0

Chrome is the opposite, adding inline scripts breaks stuff but its permissive about loading JS resources from Chrome extension URLs

21.11.2025 10:50 👍 1 🔁 0 💬 1 📌 0

Yeah I didn't manage to figure it out completely, based on the fix, it must be that when Firefox when it encounters a CSP with script-src, it wont allow loading from moz-extension://<extension-UUID>

Weirdly enough it doesnt mind you injecting an inline script (and fetch-ing the resource is allowed)

21.11.2025 10:50 👍 1 🔁 0 💬 1 📌 0

Replied on GH but that looks suspiciously similar to an issue I fixed on Alpine Devtools to do with how Firefox CSPs deal with extension resource URLs

21.11.2025 06:45 👍 1 🔁 0 💬 1 📌 0

As far as they're concerned, the website is only there to deflected from call center/other manned support channels

The only time reliability will come up & handling "edge cases" will be important is if there's some company wide initiative to reduce call center contact

26.10.2025 15:26 👍 0 🔁 0 💬 0 📌 0

I noticed this in an older version of date-fns (v1 or v2), 90% of the function I was reading was validating inputs, latest uses TS and doesnt validate as much

Before TypeScript and IDEs that understand TypeScript (even in JS), that was kind of the JS way of doing types... runtime validation

09.09.2025 15:03 👍 4 🔁 0 💬 0 📌 0

One of those productivity/flow tips is to leave something half done so you can get going the next time

LLMs/agents give you that in the cases where they don't one-shot your request.

Even just firing up the dev server and testing the output still gets you closer to flow even in the one shot case.

31.08.2025 20:55 👍 1 🔁 0 💬 0 📌 0

Arguing with an LLM about whether I want to call Alpine.js devtools seamless or effortless

23.08.2025 11:48 👍 0 🔁 0 💬 0 📌 0

... in the gnarliest file of the project

1 line fix, but you had go know where to jam it

Decent

19.08.2025 14:13 👍 0 🔁 0 💬 0 📌 0

Fed a repro into a coding agent (Jules) and it actually fixed the underlying bug

Can we make a plan to solve it but in a way that i can take over from Jules if you cant solve it? (So probably include a reproduction, make sure it fails eg. automation tests, submit that code, then try to fix it)

19.08.2025 14:13 👍 0 🔁 0 💬 1 📌 0

Jira and Confluence are enterprise kitchen sinks

As others mention, whatever you wanna build with them, you can.

Where smaller/earlier stages players are more focused/have less flexibility so enforce a simpler process.

19.08.2025 13:11 👍 0 🔁 0 💬 0 📌 0
Post image

The AWS News Feed is currently without funding 😢 Meanwhile development of new features continues, the site's numbers are consistently growing, and with the pre:Invent season about to fire up we expect only more visitors and subscribers in the coming months! Will you become a sponsor? Send me a DM!

18.08.2025 12:31 👍 2 🔁 3 💬 0 📌 0

Meanwhile Chrome rolled out Manifest v3 and started uninstalling non v3 extensions earlier this year...

15.08.2025 19:47 👍 0 🔁 0 💬 0 📌 0

👍 my pleasure

14.08.2025 09:07 👍 1 🔁 0 💬 0 📌 0
Post image

Started using jules.google.com

Async development agent, you grant it access to GitHub repositories, it clones them in a VM and runs tasks (including scripts etc).

Not bad for small tasks, stubbing/poc attempts or while on the go (slow to type code on mobile).

07.08.2025 10:24 👍 0 🔁 0 💬 0 📌 0

Also pre-TypeScript libraries that do a bunch of runtime parameter validation

05.08.2025 13:06 👍 0 🔁 0 💬 0 📌 0
Post image

I'm reviving my newsletter, have ~2 months of content scheduled.

Subscribe if you think this content might interest you.

buttondown.com/hugo/

01.08.2025 19:37 👍 0 🔁 0 💬 0 📌 0
Isaac Z. Schlueter

Big news! I'm available for hire! If you have JavaScript/TypeScript you want written, and you have budget for an ambitious and highly skilled practitioner with over 20 years of experience doing that, including leading teams, communities, and execs, hit me up.
izs.me
(RT please)

31.07.2025 17:45 👍 55 🔁 33 💬 3 📌 1
Preview
Code with Hugo: JS & Node.js in Prod Subscribe for content about: TypeScript Node.js Test Runner Past focuses: The Jest Handbook Alpine.js Guides A weekly newsletter covering web technologies and developer tools with a particular foc...

If you prefer it to your email inbox, I'll be sending them out

Subscribe at buttondown.com/hugo#subscri...

29.07.2025 13:18 👍 0 🔁 0 💬 0 📌 0
TypeScript in the Trenches: Utility types and type manipulation patterns for application development · Code with Hugo <p>7 advanced types and patterns that I&rsquo;ve used as part of TypeScript application development.</p> <p>These patterns help unlock new levels of type safety

I've aggregated some more advanced/non-obvioud TypeScript patterns in this new posts

codewithhugo.com/typescript-t...

29.07.2025 13:18 👍 0 🔁 0 💬 1 📌 0
Free Online Screenshot Generator | Supademo Create, customize, and share professional screenshots effortlessly with Supademo's Free Online Screenshot Generator. Enjoy powerful creation tools, customizable templates, and seamless sharing options...

Also found supademo.com/tools/screen...

To add annotations in the padding space to make the images pop a bit more

11.05.2025 11:51 👍 0 🔁 0 💬 0 📌 0
Screenshot.Rocks | Create beautiful mobile or browser screenshots and mockups Create mobile or browser mockups from screenshots in seconds. Screenshot.rocks turns ordinary browser screenshots into beautiful mockups

Was struggling to find a free product screenshot generator for Alpine Devtools Chrome extension

For the Chrome Webstore you need to capture 1280x800 and I'm just not that accurate with drag and drop

screenshot.rocks seems to do the basics of what I need (browser frame config, padding/background)

11.05.2025 11:51 👍 0 🔁 0 💬 1 📌 0

Aaaand just noticed it's not responsive

I've got a plan to move alpine.codewithhugo.com over (which is 11ty) so will likely redo at that point

03.05.2025 15:58 👍 0 🔁 0 💬 0 📌 0

Interesting concept of a minimalist blog

ostwilkens.se/blog/setting...

To be honest for alpinedevtools.com/updates

I went even further: use .md files and generate the HTML using the VSCode Markdown All In One plugin.

03.05.2025 15:56 👍 0 🔁 0 💬 1 📌 0

Funny story

I keep hitting this "I want to select elements where attr starts with *prefix*"

Eg. Detect HTMX I need hx-* or data-hx-*

15.04.2025 07:39 👍 1 🔁 0 💬 0 📌 0
GitHub diff adding Tailwind dark: classes to support dark mode

GitHub diff adding Tailwind dark: classes to support dark mode

I'm not one to admit when I'm being stubborn

But working on the Alpine Devtools in the evenings means I finally felt the "why no dark mode" pain

This vindicates the time I spent wiring Tailwind (v4) properly the other day (devtools v1 is on Tailwind 1)

15.04.2025 07:31 👍 1 🔁 0 💬 0 📌 0
Preview
Alpine.js Devtools Workflow Survey This short 6-question survey will help me prioritise features and explore ways to make Alpine.js Devtools more sustainable. If you use Alpine.js Devtools, I’d love your input! (I'm collecting emails t...

What's next?

- time travel debugging (store data updates and re-apply them)
- improvements to component/data edit UX

Let me know your workflow/features you need: alpinedevtools.com/survey

12.04.2025 12:58 👍 0 🔁 0 💬 0 📌 0