Daily Shaarli

All links of one day in a single page.

August 23, 2025

McSpotlight: Start Here

cité dans le livre No Logo de Naomi Klein

Pattern Craft - Modern Background Patterns & Gradients Snippets
Printing Money

A way to visualize money flows. How much per hour!

Neal.fun
Intelligence artificielle : les économistes s’inquiètent d’un risque de bulle financière

Des trois acteurs en jeu, les investisseurs, les entreprises d’IA et les utilisateurs, les seuls à réaliser des profits sont les acteurs financiers dont les valorisations augmentent. C’est une situation de bulle typique : des plus-values ​​élevées et des profits faibles.

Go is still not good
grug.design
To be a better programmer, write little proofs in your head
feat: experimental `/_nitro/openapi.json` and `/_nitro/swagger` endpoints for dev mode by pi0 · Pull Request #1162 · nitrojs/nitro

The UnJS and nuxt team are always doing great things!

FFmpeg
Auchan annonce avoir été victime « d’un acte de cybermalveillance », des « centaines de milliers » de données de ses clients piratées

Les données piratées comprennent le « nom, prénom, adresses e-mail et postale, numéro de téléphone, numéro de carte de fidélité »

Avec les FAIs, toutes les données sont dans la nature maintenant.

L’enseigne nordiste avait déjà été victime d’une attaque similaire en novembre 2024.

Voiture électrique : pourquoi une telle désinformation dans la presse généraliste ?

Le marché de la voiture évolue. Ma prochaine voiture si nécessaire sera électrique.

Je constate depuis plusieurs années que des gens dévalorisent la voiture électrique, mais leurs arguments semblent peu réfléchis.

En comparaison, 93% des utilisateurs de voitures électriques sont satisfaits. https://www.avere-france.org/enquete-ipsos-avere-france-plus-de-9-utilisateurs-sur-10-de-vehicules-electriques-satisfaits/

(via https://lehollandaisvolant.net/?id=20250822185854)

Copie Publique
CSS Cascade Layers Vs. BEM Vs. Utility Classes: Specificity Control — Smashing Magazine

To keep the code maintainable, keep the css specificity as low as possible.

BEM falls short: class names can get really long; reusability might not be prioritized; and things must be named.

Another case is to use utility classes (atomic css) to avoid css specificity.

A new approach is with cascade layers.

Anyways, Cascade Layers (@layers) groups styles and declares what order the groups should be, regardless of the specificity scores of those rules.

Each has a sweet spot:

  • BEM for clear design system that needs to be consistent; team with different philosophies; styles are less likely to leak between components.
  • utility classes: build fast, like prototypes or MVPs and component based JS framework
  • cascade layers: legacy codebases where you need full specificity control; integrate third party libraries or styles from other sources; working on a large, complex application or projects with long-term maintenance

How they can work together?
The cascade layers can be seen as an orchestrator: one layer for components (BEM); one layer for utilities (utility classes)

Greg Morris - Slow IS Fast

Embracing slow means I’ve gone from hovering around three runs a week to at least five. Regularly hitting 60kms and still feeling like I could do more. By mixing hard work and snappy tempo runs with slow and steady, and doing it properly I am faster, healthier and more importantly happier than I have felt in years.

Semantic classes > BEM | Go Make Things

Instead of specifying Block or Element specific Modifiers, you create generic semantic classes that apply those repeatable styles to any element that needs them.

When I started creating Kelp, I went down the BEM path. I quickly switched to semantic CSS, and the file size decreased dramatically as a result.

After programming for years, I find creating a class system is better than BEM.

Absurd Trolley Problems
Strategies for Keeping CSS Specificity Low | CSS-Tricks

While the CSS specificity is low, everything else is kept simple.

Only up the specificity lightly, and note it; the minimum is another class, :where() or the HTML tag.

A single class ".override" can also be used; but "If you’re ever overriding an override, that’s a good place to stop and re-consider. "

A bunch of things I find myself repeatedly referring to in various discussions! - matklad
Materialized views are obviously useful – Sophie Alpert

A case in favor of materialized views: it avoids caches; off-by-one error and so on.

Developer's block

What are developer's blocks?

All these practices (documentation, tests, CI) are valuable, but sometimes they just mount up until you’re blocked.

Either you are new to the project and you just feel overwhelmed or you’ve been working on the project for a while, but you run out of stream and get stuck. it may be due to overwork or a lack of motivation.

How to unblock?

  1. Take time with learning. Sometimes, the docs or tests need to be read to get an idea of the externals. Eventually looking at the source code and building up a mental model of how it fall fits together. "If you think education is expensive, try ignorance"
  2. Realise when you're tired
  3. Work incrementally: implement it with the minimum effort. Circle back round to improve the tests, docs, etc...
  4. Write a prototype: Concern yourself only with the happy path. If you’re trying to learn about a dependency, it’s sometimes easier to write a quick prototype of using the dependency, possibly in an empty repository.
  5. Start with draft documentation: avoid premature docs polishing. Capture why you did things a particular way. Provide basic usage instructions.
  6. Release early, release often