@developit@mastodon.social
@developit@mastodon.social avatar

developit

@developit@mastodon.social

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

mcc, to random
@mcc@mastodon.social avatar

Me: How long can sharks live

Google: I need to customize this result to your current location

Me: That's clearly wrong and if it's right then it's terrifying

developit,
@developit@mastodon.social avatar

@mcc IIRC sharks live far shorter lives when on land

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

jQuery plugins depended on jQuery, and when jQuery went out of favor, they ended up in the junkyard.

There is all sorts of componentry built exclusively on React, limiting it to React-based sites. As React goes out of favor, they will end up in the junkyard. (Same with any framework-specific extension.)

But with Web Components... it seems like the story will end differently. If they are built without dependencies, they might just live as long as the web does.

developit,
@developit@mastodon.social avatar

@chriscoyier the react stuff can be switched to Preact and wrapped in a web component

paul, (edited ) to random
@paul@status.kinlan.me avatar

Huh polyfill.io got sold. Probably advisable to make sure your sites are not using it.

https://twitter.com/triblondon/status/1761370894272708903

Edit: original post deleted, announcement here https://x.com/JakeDChampion/status/1761315228447277184?s=20

developit,
@developit@mastodon.social avatar

@paul was always best self hosted.

developit, to random
@developit@mastodon.social avatar

🦑 PSA / lolz:

Whatever you thought you knew about the <script type=""> attribute is probably wrong.

There are between 9 and ∞ type values that execute as JavaScript:
https://gist.github.com/bdb68249869a7b69f008995ffe0265f1

developit, to random
@developit@mastodon.social avatar

I have occasionally been asked why Preact's string renderer doesn't do scheduling and defaults to synchronous. Here's your reason (it's so fast that doing so is generally net-negative for both response time and throughput, making it undesirable by any metric)
#preact

developit, to random
@developit@mastodon.social avatar

Google standard product lifecycle

developit, to random
@developit@mastodon.social avatar

hooooly shit... DeviceScript!!
https://microsoft.github.io/devicescript/

developit, to webdev
@developit@mastodon.social avatar
developit, to random
@developit@mastodon.social avatar
developit,
@developit@mastodon.social avatar

now powered by @vite / #vite and #oxlint

developit, to random
@developit@mastodon.social avatar

OAuth flow between installed PWAs is weird/tricky.

Chris Pratt Andy Dwyer

developit, to random
@developit@mastodon.social avatar

With the new Navigation API, you can now show the native spinner + stop button for any asynchronous operation - all you need is a Promise.

A video showing JavaScript code executed in Chrome DevTools that causes the browser's "page loading" UI to be displayed for an arbitrary period of time.

developit, to random
@developit@mastodon.social avatar
developit, to random
@developit@mastodon.social avatar

The first stage of my team's massive undertaking just went live on Shopify:

You can now build UI Extensions for Shopify Admin that show up in-context around the interface.

https://editions-summer-2023.shopify.com/editions/summer2023?filters=developer-updates&product=admin-ui-extensions

developit, to random
@developit@mastodon.social avatar

Gotta love Android apps that provide notifications categories, but then send their marketing BS notifications as "Urgent" or "Device Updates"

developit, to random
@developit@mastodon.social avatar

"NOOT NOOT"

#pingu

developit, to random
@developit@mastodon.social avatar

if your cookie consent banner's "accept" button reloads the page, fuck you

developit, to random
@developit@mastodon.social avatar

seal's the deal

This meme seals the deal

developit, to random
@developit@mastodon.social avatar

Building stuff with Preact + Signals is easier than using hooks.

You get to write as if the UI is being created fresh on any change (the good part of VDOM), but behind-the-scenes your components generally end up only needing to run once. No need for things like memoization or "useCallback".

Plus you get free reactive models: any part of your state can be built independent of the UI tree using the same 3 functions (signal, computed and effect).

A screen recording of the compose UI for a mastodon client implemented in Preact using Signals. Typing text, adding attachments and editing their descriptions all happen without triggering any Virtual DOM rendering.

developit, to random
@developit@mastodon.social avatar
developit, to random
@developit@mastodon.social avatar
developit, to random
@developit@mastodon.social avatar

This ramen in NYC was very good

whitequark, to random
@whitequark@mastodon.social avatar

so, house heating saga continues

as far as i can tell from the measurements i took, it works like this: running the heating system for 5 minutes raises the temperature at the desk where I sit by almost exactly 0.2 degrees centigrade

so... I could write a script that looks at the current temperature and runs heating for 5*(20-t)/0.2? and then put it into cron

developit,
@developit@mastodon.social avatar

@artemesia @whitequark problem is that the keyboard doesn't get hot. I want a heated keyboard and mouse.

developit,
@developit@mastodon.social avatar
developit, to random
@developit@mastodon.social avatar

I spent the day bracing and shimming our stairs while the ceiling is out. So dirty, so tired lol

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