@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

Great to see ReadableStream.from(x) land in the spec, allowing you to quickly create a stream from something (async) iterable. https://streams.spec.whatwg.org/#ref-for-rs-from

jaffathecake, to random
@jaffathecake@mastodon.social avatar

A common misconception about the event loop is that it's a JavaScript thing. Nah, the event loop is the scheduler for what we often call the 'main thread'. Sure, that's where JavaScript runs, but it's also where the document lives, and style, and layout.

A single 'task' can involve zero JavaScript (eg turning a click into following a link), or lots of JavaScript (multiple event listeners).

jaffathecake,
@jaffathecake@mastodon.social avatar

(the 'main thread' is kinda a bad term for this, because worker environments each have their own event loop too)

jaffathecake,
@jaffathecake@mastodon.social avatar

@ppk absolutely

jaffathecake,
@jaffathecake@mastodon.social avatar

@ppk workers can't access DOM nodes. The DOM lives in the document's environment, so the worker's environment can't access it.

jaffathecake, to random
@jaffathecake@mastodon.social avatar

el.className and el.htmlFor have weird, incorrect, inconsistent names because old JavaScript didn't allow reserved words to be property names. That changed over a decade ago, so should we add el.class and el.for? https://github.com/whatwg/html/issues/9379

jaffathecake, to random
@jaffathecake@mastodon.social avatar

The new linear() feature means you can have bounce and spring easing in CSS. Here's a little web app to convert JS easing functions to the new format https://linear-easing-generator.netlify.app/

jaffathecake, to random
@jaffathecake@mastodon.social avatar

Big life update: I've resigned from Google to take on an exciting new role. I'll share more details soon, but first, a nice long break between jobs 😴 …

jaffathecake,
@jaffathecake@mastodon.social avatar

Unfortunately, "gardening leave" means Google won't let me speak at conferences for the remainder of my contract, so I've had to cancel all the talks I was due to give in May & June. I didn't expect Google to do that, and I'm sorry to folks who were coming to see the talks …

jaffathecake,
@jaffathecake@mastodon.social avatar

It's been a great 10 years of Googlering, and I'm going to miss working with lots of folks there! View Transitions is in good hands, and I look forward to watching the MPA part of the feature landing from the outside 😀

jaffathecake,
@jaffathecake@mastodon.social avatar

@fox well I've got nothing better to do so…

jaffathecake,
@jaffathecake@mastodon.social avatar

@tailsy lots of Playstation. Might also blog a bit

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