stephband

3.6K posts

stephband banner
stephband

stephband

@stephband

Bluesky: @stephen.band Mastodon: @[email protected] https://t.co/tbD0aJhdcO co-founder. Front-end developer. Musician.

Lausanne Katılım Aralık 2008
274 Takip Edilen503 Takipçiler
stephband
stephband@stephband·
@brave It would be nice if it had a feedback button "Your talking nonsense".
stephband tweet media
English
0
0
0
6
Brave
Brave@brave·
Since Brave's built-in AI assistant Leo launched in late 2023, it has evolved dramatically. But what’s next for our privacy-preserving AI? Let's talk about what we've accomplished with Leo so far and what we're planning to do in the future. 🧵
English
25
29
345
69.5K
stephband retweetledi
Champagne Joshi
Champagne Joshi@JoshWalkos·
Filmmaker Adam Curtis on AI: “They are actually taking our own past and haunting us with it.”
English
13
33
75
16.6K
stephband retweetledi
one dozen rats at a keyboard
one dozen rats at a keyboard@PanasonicDX4500·
starting a conspiracy that the katy perry who came back from space isn’t the same one who went up.
English
239
6K
87.6K
1.6M
stephband retweetledi
mrdoob
mrdoob@mrdoob·
🙏🙏🙏
GIF
QME
5
1
36
5.1K
stephband
stephband@stephband·
@sgt3v I spent a day with Claude yesterday working on WebAudio and I was stunned by both how much I learned and how much I got done. Had I set out to compile Rust to WASM and integrate with AudioWorkletProcessor alone, I'd still be shuffling chairs trying to understand the basics.
English
0
0
0
27
Sarge
Sarge@sgt3v·
(If you have Q's feel free to DM, you don't need to follow me as I usually shitpost and "vibe" on twitter so not much of value might come 😂)
English
15
1
73
14.4K
Sarge
Sarge@sgt3v·
Why are people "vibe coding" games with @threejs instead of using game engines like Unity or Unreal? I got a ton of questions and messages about this and wanted to write some of my thoughts in more detail.
English
207
226
3.9K
1.1M
stephband
stephband@stephband·
@alexhallhall @ZelenskyyUa Instead of withdrawing it, when it gets mentioned in future just get the king to say, "umm, did I invite you? I can't believe I said that. Next question."
English
1
2
12
268
stephband retweetledi
@sitnik_en@mastodon.social
@[email protected]@sitnikcode·
Thread with new updates in oklch.com, the OKLCH color picker with the best math to work with colors. What I love about this project is that everyone jokes that frontend is just “changing button colors,” yet we barely understand what color really is in frontend.
@sitnik_en@mastodon.social tweet media
English
1
10
30
4K
stephband
stephband@stephband·
@LeaVerou I want to vote for not adding 4 word attributes to the standard. Hyphenated or not, they are annoying to author. Meh to popovertargetaction. Keep html concise.
English
1
0
9
337
Lea Verou, PhD
Lea Verou, PhD@LeaVerou·
#webcomponents API design dilemma: consistency with the platform vs ergonomics, pick one, you can't have both. HTML uses concatenatedcase for attributes¹ which is *terrible* for readability². But if you choose to do something different in your components they will end up with a mix of both since native attributes still apply, which also sucks. What to do? ¹ #casing-rules" target="_blank" rel="nofollow noopener">w3.org/TR/design-prin… ² Especially as we start having 4 word attributes like shadowrootreferencetarget 🤮
English
11
2
6
4.7K
stephband
stephband@stephband·
Noooo @pixelmator, whhyyyy? Aperture was Apple's Pixelmator, and they proved they can't be trusted, killing it to try and get users to jump to Photos (and leaving us with 100s of unopenable documents). pixelmator.com/blog/2024/11/0…
English
1
0
0
41
stephband retweetledi
Peter Ricketts
Peter Ricketts@LordRickettsP·
Hello @Eurostar. I don’t recall you telling clients that after your merger with Thalys, trains from Brussels to London will be held if connected service is late. A train load of us were delayed 45 minutes this evening for a few connecting passengers. Is this the new normal?
English
6
2
18
4.6K
stephband retweetledi
Chubby♨️
Chubby♨️@kimmonismus·
Famous paintings reborn. As I said the other day, the living paintings from Harry Potter are already a reality. The only thing missing is a producer who sells paintings in which an AI brings live images to life. It's sure to be a big seller.
English
58
102
513
175K
stephband retweetledi
Brian Roemmele
Brian Roemmele@BrianRoemmele·
A Cow caught on a security cam opening the electric fence. The farmer installed it after he assumed someone was doing it. Now we are left with the explanation of why cows 40 miles away have just started doing the exact same thing?
English
2.2K
6.9K
58.3K
9.5M
stephband
stephband@stephband·
But I don't think this 'tax' should have been left to custom element authors to discover and workaround, either.
English
0
0
0
104
stephband
stephband@stephband·
"if you set properties in the meantime it won't trigger accessors" I have code in all my CE constructors that deletes and then reassigns own properties to handle exactly this. I'm annoyed I have to do this. I agree the consumer of a CE should not have to deal wi these problems.
Rich Harris@Rich_Harris

Not really. Firstly I reject the premise that pushing the burden onto users is desirable — if a tax has to be paid, it's better for frameworks to pay it. But beyond that, it's not just about the fact that WCs make the platform so much more complex and so much harder to learn. It directly affects users in subtle ways. For example if you want to clone some DOM to build a component you can just do `fragment.cloneNode(true)`, right? Not so fast — if the DOM contains a custom element, the clone won't be assigned the correct class until it's appended to the document, and if you set properties in the meantime it won't trigger accessors (they'll shadow the prototype instead, which is very bad news). It's a real head-scratcher of a bug. It turns out that if you use `document.importNode(fragment, true)` instead, it works correctly. Not that you'll casually learn that while reading MDN — this is the kind of knowledge that is only acquired with a side helping of battle scars. But there's a catch! importNode is roughly 30% slower than cloneNode in our testing. That's unacceptable overhead given that most people aren't using custom elements (and certainly not that often). So we opted to pay a different price — the compiler adds a flag to the generated code, and the flag tells the runtime which to use. That's extra code, and extra work (albeit a miniscule amount), that would be unnecessary if we didn't have to think about this nonsense. Having the bug? Tax. Figuring out the solution? Tax. Implementing the fix? Tax. Documenting the code for our future selves? Tax. Adding regression tests? Tax. Running those tests on every CI job? Shipping extra code? Tax. Doing more work in a hot code path? Tax. And that's just one example. There are others. The bottom line is that framework authors could ship sooner, and could ship leaner and more reliable code, were it not for this ill-designed primitive with its myriad edge cases.

English
1
1
2
6.1K
stephband
stephband@stephband·
@Rich_Harris @LeaVerou @dfabu Wait, I thought the :defined selector applied only to upgraded elements, is that not so? Aargh, that explains why it has failed me on occasion. :upgraded would be far more useful.
English
0
0
0
91
Rich Harris
Rich Harris@Rich_Harris·
@LeaVerou @dfabu They're defined, they're just not _upgraded_ until they're appended to the DOM. But even if they weren't, the querySelectorAll would involve traversal, which would be slower and more code than what we do today (a bitwise operation on a flag added by the compiler)
English
1
0
6
496
Lea Verou, PhD
Lea Verou, PhD@LeaVerou·
I wrote some thoughts on the web components debate. IMO WCs and frameworks currently have different value propositions. They are not competitors; there is space in our toolchains for both. So how about we stop fighting and go make awesome sh!t? 🚀 lea.verou.me/blog/2024/wcs-…
Lea Verou, PhD tweet media
English
8
24
153
23.3K
stephband retweetledi
Rich Harris
Rich Harris@Rich_Harris·
another thing about custom elements that tickles me is that you can just... call [dis]connectedCallback() methods whenever you like, there's no encapsulation. reminds me of structural expressionist buildings like the pompidou center, where the guts are on the outside
Rich Harris tweet media
English
9
4
85
32.1K
stephband retweetledi
rob delaney
rob delaney@robdelaney·
My nephew Tevin using the new vape I built
English
19
17
566
65K