Peter Kröner
@sirpepe.bsky.social
130 followers 100 following 660 posts
Shitposting about vanilla #webdev. Also there's cat pictures and bursts of travel. Reading web technology specs and doing training/consulting on said web technologies. Also at @[email protected]
Posts Media Videos Starter Packs
sirpepe.bsky.social
... and we immediately get sidetracked with solving actual production problems via less-known #javascript features. As usual!
sirpepe.bsky.social
This week's workshop comes without travel blogging because it's not at the other side of the country, for a change!
Reposted by Peter Kröner
sirpepe.bsky.social
#React
elopers: "you can't expect mere mortal developers to deal with the complicated DOM API"

Also React
elopers, reading react.dev/reference/re...: "this is fine"

🤡

#webdev #javascript
useEffectEvent – React
The library for web and native user interfaces
react.dev
Reposted by Peter Kröner
sirpepe.bsky.social
The only real downside of oklch() is that you first have to beat everyone around you into submission #css #webdev
sirpepe.bsky.social
#React
elopers: "you can't expect mere mortal developers to deal with the complicated DOM API"

Also React
elopers, reading react.dev/reference/re...: "this is fine"

🤡

#webdev #javascript
useEffectEvent – React
The library for web and native user interfaces
react.dev
sirpepe.bsky.social
The only real downside of oklch() is that you first have to beat everyone around you into submission #css #webdev
sirpepe.bsky.social
Monsieur now has only three teeth left, but is tripping on some very fun painkillers #caturday
Ragdoll cat loafing on a blanket, looking slightly confused
sirpepe.bsky.social
Yep. The browser still absolutely owns tho.
sirpepe.bsky.social
Trapped in Lower Bavaria, send help
Phone connectivity status indicating mere traces of 2G
sirpepe.bsky.social
I'm sure it makes sense to her #cats
Ragdoll cat has wedged herself under a pillow
sirpepe.bsky.social
The plan was to just modularize language loading in Code.Movie's online playground. Now there is basically no pixel where it was before 🫠
sirpepe.bsky.social
Low-key hating the fact that #TypeScript does indeed type check the arguments to Array.prototype.includes(), Set.prototype.has() and the like.
const things = [1, "a", false];

// (╯°□°)╯︵ ┻━┻
if (things.includes(null)) {
}
sirpepe.bsky.social
Joke's on me: the conference has 4 AI tracks, one for Blockchain (!) and bunch of backend/culture stuff. Nothing for straight up JS 🤡
sirpepe.bsky.social
I am apparently going full joker for this next round of #webdev and #javascript conference CfPs.
Extreme Rules Lawyering with the ECMAScript Specifications

Nerds all over the galaxy agree: TECHNICALLY correct is the best kind of correct! So why not mine the ECMAScript specifications for some technically valid JavaScript programs that “work”, but only by exploiting a wide variety of obscure semantic loopholes on the way? This talk goes far beyond mere syntactical obfuscation and explores the absolute fringes of JavaScript—for fun and for very, very little profit. Let us summon forbidden objects, unearth unholy functions that are not meant to be developer-accessible, and abuse features that TC39 would REALLY like to sweep under the rug.

Anybody can follow “best practices” and write “readable code”, so how about learning something actually new and unique? This session will instantly turn you into a living and breathing JavaScript infohazard, uniquely able to conjure up valid JavaScript programs that even ChatGPT could not hallucinate.
Reposted by Peter Kröner
jcoglan.com
adding "genuinely concerned this is a cognitohazard" to my list of reasons for avoiding AI tools
Reposted by Peter Kröner
sirpepe.bsky.social
The quick and dirty #PWA that serves as my timer app for talks is 260 LOC JS (excluding the auto-generated service worker). This is simultaneously not much and quite a lot. But it would be SO MUCH MORE without the Temporal and Intl APIs! Truly game-changing additions to #JavaScript!
sirpepe.bsky.social
The quick and dirty #PWA that serves as my timer app for talks is 260 LOC JS (excluding the auto-generated service worker). This is simultaneously not much and quite a lot. But it would be SO MUCH MORE without the Temporal and Intl APIs! Truly game-changing additions to #JavaScript!