What is really missing in this global #SuperElectionYear is a map of active and formerly prominent politicians per country with a Fedi presence (self-updating, preferably.)
I think, though, data is hard to come by (tried this 2 yrs ago for the US and EU for the DeadBirdSite, but stopped.)
@HistoPol@stefan@libraries@parks@lighthouses
Not for individual politicians or parties, but @govdirectory is aiming to get all public organizations (like government agencies and authorities) in the world and their contact data in one place, through Wikidata.
It's been almost a decade since I've done a live coding stream. This will be fun!
Today I'll be migrating my website from React to Lit, which is a lightweight framework built around web components. I have the scaffolding set up mostly, so now it's time to get this done.
Come watch. Ask questions in chat! You don't need to create an account, just a username is needed to participate.
I know he didn't explain his position in details, so a 1800-word article sounds a little unfair, but I think dry and sharp statements need adequate context and analysis.
@MaxArt2501@simevidas Sorry, re-reading this and realizing what you're asking. Payloads of that size are very common with React apps. Do they need that much? Of course not. But it would mean rebuilding them without React.
And back to my original point: a lot of that HTML doesn't and shouldn't require JS at all. JS is in fact the problem.
@cferdinandi@MaxArt2501@simevidas I think Massimo is generally making the point that some web sites require JS for core activities, not as a design choice, but out of technical necessity. (My own example: media player). Once you accept that JS is required on a site, you make different decisions about web component design. Designing WCs so there’s a noJS fallback - as you promote, Chris - is a valid choice, it’s just not the only sensible choice.
Since keydown only fires for targets that can be activeElement, the event target from caret navigating plain text is always <body>.
However you can identify which element contains the caret, by evaluating the range data, which you can also do from selectionchange events.
And get this -- Safari still fires those events, even though it doesn't support caret browsing ... because it actually does, it just doesn't show the caret!
@domhabersack that’s a neat little trick! I’m not too bothered by the message, but it’s good to know there’s a way to turn it off if that ever changes. 😊
Another leak in the JavaScript single-threaded facade (or a bug in Jest, really).
Asserting expect(...).toStrictEqual(...) fails with two structurally identical objects created by two different Node worker threads because their prototypes are not the same (though identical). Asserting expect(structuredClone(...)).toStrictEqual(structuredClone(...)) works.
Last time I looked, the docs were like "Elm for JavaScript developers" or at least "Elm for front-end developers", hence opaque to me. But the language has a lot of promise.
#Javascript experts, I need advice. I'm trying to extend a class in order to override a method or two. It defines everything in its constructor, and I can't work out how to use anything in the original class from my new one.
Could anyone suggest to me how syntactically I should minimally replace onKeyDown and handleKeyDown with my own versions, while still being able to use functions and properties from the base class? I'd really appreciate the guidance!
I am looking to #Connect with people who are interested in:
Coding
Web Development
Front End
Back end
React/Nextjs
Javascript/Typescript
Tailwind CSS
UI/UX
Open Source
Software Development