@jaffathecake@mastodon.social
@jaffathecake@mastodon.social avatar

jaffathecake

@jaffathecake@mastodon.social

Engineer at Shopify. Once swam to the end of an infinity pool. No thought goes unpublished. 'IMO' implicit. He/him.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

jaffathecake, to random
@jaffathecake@mastodon.social avatar
jaffathecake, (edited ) to random
@jaffathecake@mastodon.social avatar

An API returns an object like { r, g, b, a } to represent a colour. r, g, and b are numbers, 0-255.

a is also a number, but what should its range be?

jaffathecake, to random
@jaffathecake@mastodon.social avatar

The absolute emotional whiplash of "ohhh! A new album by a band I love" to "oh it's a 'live' album"

jaffathecake, to random
@jaffathecake@mastodon.social avatar

We're baaaaaack! Me and @surma have a new podcast: Off The Main Thread! (google wouldn't let us have the other name, whatever)

In this episode, @surma talks through the architecture of GPUs, and I look at browser 'ideologies' over the past decade.

https://offthemainthread.tech/episode/webgpu-and-browser-ideologies/

jaffathecake, to random
@jaffathecake@mastodon.social avatar

I really like JavaScript import attributes as a way to invoke build magic.

jaffathecake,
@jaffathecake@mastodon.social avatar

But first, we need TypeScript to support them in terms of typings https://github.com/microsoft/TypeScript/issues/46135#issuecomment-1822522888

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Staring at the logo, I had to animate it: https://static-misc-3.glitch.me/ff-conf-logo/

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Surprised that HTML doesn't have a way to get the language of an element, and observe changes in that value. Seems important when localising custom elements.

Wrote up a proposal: https://github.com/whatwg/html/issues/9918

jaffathecake, (edited ) to random
@jaffathecake@mastodon.social avatar

Take a look at https://static-misc-3.glitch.me/reduced-motion/. What do you think of the result?

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Snapped this cat going for a stroll in my dad's garden

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Misty weather looks otherworldly on the doorbell cam

It kinda looks like snow, played in reverse.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

I am obsessed with this guy's surveys of new build properties https://youtube.com/shorts/giy6lK2Rqzo?si=wP5aO39E5r7Pw3jH

jaffathecake,
@jaffathecake@mastodon.social avatar

@woodsbythesea REDIKALAS

jaffathecake, to random
@jaffathecake@mastodon.social avatar

I'm not entirely convinced by active noise cancelling. "We've effectively eliminated the calming rumble of the plane engine so you can really focus on the snoring of the guy two rows back."

jaffathecake,
@jaffathecake@mastodon.social avatar

@seldo this is why I compare everything to my Shures. They're just earplugs with music poking through them.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Let's do more view transition debugging! https://www.youtube.com/watch?v=GDkFiog1D1c

mia, to random
@mia@front-end.social avatar

Did I read somewhere that you don't want view transition names on a lot of elements (like every article in a list) when only one is actually transitioning? That makes sense but also seems difficult to manage.

But I wonder if you could add names on :has(:focus,:active) or similar?

(random thoughts on a train to the airport)

jaffathecake,
@jaffathecake@mastodon.social avatar

@mia @jelmerdemaat exactly. That's why I've been discouraging high level solutions based on clicked elements.

jaffathecake,
@jaffathecake@mastodon.social avatar

@mia @jelmerdemaat Not exactly :target because you don't want to mess with scrolling, but yeah, something like a bit of metadata that's passed across the navigation.

jed, to random
@jed@mastodon.social avatar

trying unsuccessfully to get a service worker to activate instantly to resolve all subsequent fetches upon registration. what do i need to add to sw.js to have this page display 200 and not 404?

// sw.js addEventListener('install', skipWaiting) addEventListener('activate', e => e.waitUntil(clients.claim())) addEventListener('fetch', e => e.respondWith(new Response))
404

jaffathecake,
@jaffathecake@mastodon.social avatar

@jed @tomayac yeah, if you absolutely require a service worker to be there, that's the best way to do it.

jaffathecake,
@jaffathecake@mastodon.social avatar

@jed @jeffposnick @tomayac deliberately so. Hard refresh bypasses service workers.

jaffathecake,
@jaffathecake@mastodon.social avatar

@jed @jeffposnick @tomayac the service worker can still client.claim()

jaffathecake, to random
@jaffathecake@mastodon.social avatar

If you're adding view transitions to your sites, the Material Design guides have some great examples, and some patterns to avoid. I don't think their word is law, but there are a lot of good ideas here.

https://m3.material.io/styles/motion/transitions/applying-transitions

jaffathecake,
@jaffathecake@mastodon.social avatar

Probably the most important point to consider is "unified direction". It's very tempting, and easy with view transitions, to transition every 'element' that exists in both states. But that isn't always the best idea: https://m3.material.io/styles/motion/transitions/applying-transitions#b974d94c-bf80-4c54-8818-4a1d7eaa10ae

jaffathecake,
@jaffathecake@mastodon.social avatar

@krinkle agreed.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Can you guess who nearly stabbed himself to death with a stick? Clue:

jaffathecake,
@jaffathecake@mastodon.social avatar

@rachelandrew they're not 100% sure, but he's managed to land on a spiky thing and rip himself a bit trying to get off it. Failed to jump over a metal fence maybe?

He's so timid, and we had folks round he didn't know, so it took us a couple of days to realise something was up. Silly cats hiding their injuries!!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • Durango
  • anitta
  • InstantRegret
  • GTA5RPClips
  • cubers
  • ethstaker
  • normalnudes
  • tacticalgear
  • cisconetworking
  • tester
  • Leos
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines