BLUE
Profile banner
JA
Jake Archibald
@jakearchibald.com
Engineer at Shopify. No thought goes unpublished. 'IMO' implicit. He/him.
1.7k followers172 following98 posts
JAjakearchibald.com

Cursor was making a series of mad suggestions to my code. I rolled my eyes, and ploughed on. But it turned out I'd made a mistake earlier in the function, and the eager-to-please AI was just trying to roll with it. It's a 'signal' I'll look out for in future.

1
JAjakearchibald.com

`el.className` and `el.htmlFor` have such unusual names because `class` and `for` used to be reserved words in JS. That hasn't been true for property names for 10+ years. Firefox is experimenting with adding `el.class` and `el.for`, yay! github.com/whatwg/html/...

Add `class` & `for` aliases for `className` and `htmlFor` · Issue #9379 · whatwg/html
Add `class` & `for` aliases for `className` and `htmlFor` · Issue #9379 · whatwg/html

https://dom.spec.whatwg.org/#dom-element-classname https://html.spec.whatwg.org/multipage/forms.html#dom-label-htmlfor I assume these were originally given unusual and inconsistent names to avoid r...

1
JAjakearchibald.com

🔊 Chrome folks are experimenting with an API that exposes a built-in LLM. Could something like this work on the open web? Me and @surma.devoffthemainthread.tech/episode/chro...

Chrome's new LLM AI API OMG - Off The Main Thread
Chrome's new LLM AI API OMG - Off The Main Thread

Chrome is experimenting with exposing an LLM to the web platform.

0
Reposted by Jake Archibald
Ssurma.dev
JAjakearchibald.com

📝 I set off to find the best way to make video with transparency work on the web. Over 10 bug reports later, it turns out it's better to handle the transparency manually with WebGL. Here's how: jakearchibald.com/2024/video-w...

Video with alpha transparency on the web
Video with alpha transparency on the web

It's better to do it yourself.

2
JAjakearchibald.com

📝 JavaScript garbage collection doesn't work how I expected when it comes to closures. TIL! jakearchibald.com/2024/garbage...

Garbage collection and closures
Garbage collection and closures

GC within a function doesn't work like I expected

1
Reposted by Jake Archibald
Ssurma.dev

🎧 Not that loads of people asked for it, but @jakearchibald.commusic.youtube.com/playlist?lis...

1
Profile banner
JA
Jake Archibald
@jakearchibald.com
Engineer at Shopify. No thought goes unpublished. 'IMO' implicit. He/him.
1.7k followers172 following98 posts