mastouille.fr est l'un des nombreux serveurs Mastodon indépendants que vous pouvez utiliser pour participer au fédiverse.
Mastouille est une instance Mastodon durable, ouverte, et hébergée en France.

Administré par :

Statistiques du serveur :

575
comptes actifs

#js

3 messages3 participants0 message aujourd’hui

I like this quote. There is so much meaning in it.

“People are getting sick of frameworks. All the JavaScript frameworks are so… what do you call it, like [un]wieldy. It takes so much work to just maintain this code, and then it updates to a new version, you need to change everything. PHP just stays the same and works.”

thenewstack.io/developers-rail

The New Stack · Developers Rail Against JavaScript ‘Merchants of Complexity’When both Pieter Levels and Alex Russell convincingly argue against using complex JavaScript frameworks, maybe frontend devs should listen.
#php#js#javascript

Coming soon (likely this afternoon, I’m writing tests and docs and updating examples as we speak)…

This is the sort of thing you’ll be able to do with Markdown pages. Just pop any arbitrary JavaScript you want in the new script block in the front matter and then import and use components as well as plain old JavaScript tagged template variable interpolation (not shown in this example) inside your Markdown.

The screen has all the code (sans the end of the last line of CSS and the closing tags for the <style> and <div> in the Reactions component, which I couldn’t make fit without reducing the font size) for the example you see in the browser with functional buttons that persist their state to Kitten’s built-in default database.

When I say all the code, I mean all the code. There is no scaffolding. Those two files are the only two files in the project.

kitten.small-web.org

Je crois que la formation pour coder des sites web accessibles, ça m'a un peu matrixé la cervelle.
Quand je vois tout l'entourage pro qui cherche continuellement comment rendre les Workflow les plus opaques possible, les plus lourds et chiant, les plus technophile possible… Notre cercle, au taff, de zozos de l'accessibilité et du WEB, on cherchent à faire tout l'inverse, rendre tout HTML first, tout basique, tout très standard… On ralenti et re-standardise ! 🙃

#HTML#CSS#JS

What an ingenious clock component by Jon Kantner. Check the time in different cities around the world, with smooth animations and light/dark mode (the dark mode looks especially good). A really neat demo.

codepen.io/jkantner/pen/pvjNNVz

codepen.ioWorld Clock SliderA world clock widget based on an old [Dribbble shot](https://dribbble.com/shots/1960324-World-Clock-notification-center-widget-in-action) by Alexander ...
#html#css#js

#JS quiz time Part 2!

Without trying it out, what do you think the following will print?

async function foo () {
console.log(1);
let v = 2;
if (v instanceof Promise) await v;
console.log(2);
}
function bar() {
console.log('bar');
}

foo();
bar();

Part 1: front-end.social/@leaverou/114

Front-End SocialLea Verou, PhD (@leaverou@front-end.social)#JS quiz time! Without trying it out, what do you think the following will print? async function foo () { console.log(1); let v = 2; await v; console.log(2); } function bar() { console.log('bar'); } foo(); bar(); [ ] 1 bar 2 [ ] 1 2 bar [ ] No idea

#JS quiz time!

Without trying it out, what do you think the following will print?

async function foo () {
console.log(1);
let v = 2;
await v;
console.log(2);
}
function bar() {
console.log('bar');
}

foo();
bar();

Oh, great, the EPA's grand masterplan to save the environment: cut out the pesky "science" part entirely! Because who needs expert research when you can just guess? 🙄🔮 Now, back to enabling #JS like it's 1995. 🕹️
nytimes.com/2025/07/18/climate #EPA #science #environment #expertresearch #HackerNews #ngated

The New York Times · E.P.A. Says It Will Eliminate Its Scientific Research ArmPar Lisa Friedman

Software innovation might be freezing in place—and AI could be to blame. Theo Browne points out that Copilot and ChatGPT often return React-style code even for Solid or Elixir projects. Why? Because they’ve seen React a million times more. Python 3 took a decade to overtake Python 2. If that transition had to happen today, would our dependence on AI suggestions keep us from making the jump?

linkedin.com/posts/jonippolito

If I want to write a site with vanilla #HTML / #CSS / #JS using #Astro as my #SSG are there any doc sources, projects, general setups, or tips I should know / look to for good reference? Seems like most of the things I see are about incorporating all the various frameworks that I have no interest in. I want to build a fairly simple blog and personal site. With minimal client side js. But I also want the benefits of an SSG especially when it comes to writing blog posts. Do you use or have you used Astro for a similar workflow? How do you like to set everything up?

I think there is a Dunning–Kruger like effect whereby the complexity of rewriting an open source project from scratch is vastly underestimated the less you know about the scope of the work.

You could make 80% of #inkscape in a couple of months of javascripting. But this is 80% of Inkscape's surface. Not actual depth.

Rewrite it all in #Qt? #React? #JS? #Rust? These are ideas aren't bad. But they are vast projects that would cost millions of dollars.

Related to: mastodon.uno/@maxdid/114691504