Weekly Shaarli

All links of one week in a single page.

Week 03 (January 16, 2023)

svitejs

A organization about useful vite projects. It does not seems very maintained though.

Transparence financière : la France suspend discrètement son registre des bénéficiaires effectifs de sociétés

Cette plate-forme, ouverte en avril 2021, permettait à tout citoyen de connaître facilement l’identité des propriétaires des sociétés françaises. Réclamé de longue date par les organisations de la société civile, cet outil était très largement considéré comme une avancée majeure en matière de transparence financière et de lutte contre la fraude et le blanchiment.

Une référence à l’arrêt du 22 novembre 2022 de la Cour de justice de l’Union européenne (CJUE), qui a déclaré illégal l’accès du grand public aux registres européens de bénéficiaires effectifs, au nom du respect de la vie privée.

La plateforme en question: https://data.inpi.fr/
(maintenant accessible, je ne connais en revanche pas la quantité et la qualité des données)

antfu/vite-plugin-inspect: Inspect the intermediate state of Vite plugins
vite-plugin-list-directory-contents - npm

Clicking any .html files will be compiled by vite (vited?). So, rather than manually type in the paths to all your inputs, this will list all your files so you can click them with ease. Like the good 'ol Index Of / days.

A simple plugin :)

I will check vue plugin system sometime, because it seems powerful in order to improve DX.

Perflink | JS Benchmarks

Benchmarking javascript snippets :)

Minimal Dark Mode Styling – Eric’s Archived Thoughts
@media (prefers-color-scheme: dark) {
    html body {filter: invert(1);}
    /* the following really should be managed by a cascade layer */
    .some-container-items-or-images {
      box-shadow: 0.25em 0.25em 0.67em #FFF8;
    }
}

From Lary Hudson

you should also set “color-scheme: dark” so that scrollbars change to a dark tint as well.

sql.js

And the related project to use SQLite in memory of a frontend app.

The database file is loaded from a server or a local file... which can be convenient for offline databases!

If the database is available online, it is still ok if it is small and the SQLite file can be downloaded :)

Social Media Style Number Formatting in JS - YouTube

Numbers:
const formatter = Intl.NumberFormat(LOCALE, { notation: 'compact' })

Currency:

Intl.NumberFormat(LOCALE, {
  notation: 'compact',
  style: 'currency',
  currency: 'ZWD'
})
Design Systems: Useful Examples and Resources — Smashing Magazine
Buttons that Spark Joy - Frontend Horse
  • Confetti canon
  • Bookmark Button: transitions between SVGs. The MorphSVG plugin comes in to allow different amount of points. It does the heavy lifting so you can smoothly transition between any SVG Shapes.
Thinking Outside the Box with CSS Grid - Frontend Horse

3 examples to build CSS Grid patterns

Nathan Barry on Twitter: "10 years ago, I started my first SaaS company. In that time, I’ve grown it to $33.4 million in annual recurring revenue. Here are 10 lessons I’ve learned over the last decade: https://t.co/MBSFv1Pz3Q" / Twitter
  1. It takes longer than you think
  2. Go all-in sooner (part-time is helpful to test an idea).
  3. Make direct sales (don't think about scaling).
  4. Choose a niche.
  5. Focus on product quality, and talk to your customers.
  6. Build a culture of execution.
  7. Don't underestimate deliverability and fraud.
  8. Meet customers and partners in person.
  9. Use workshops to create urgency.
  10. Move from a cost center to a revenue center.
Sacha André on Twitter: "Je suis fatigué des gens qui ralent sur la SNCF. Vraiment vous vous rendez pas compte de ce que subit cette boîte. Avant fier service public, maintenant entreprise en décrépitude, si vous n'avez pas vos train remerciez Sarko Hollande et Macron. Ne méprisez pas les travailleurs" / Twitter

Pourquoi est-il pertinent d'arrêter de se concentrer sur les travailleurs, mais sur les décisions prises (changement de politique, etc...).

Creating 3D Illustrations with CSS - Frontend Horse
  • using transform-style: preserve-3d; on all elements
  • make cubes
  • add animations
  • one source of light and 3 shades:
    • Light: Direct light
    • Medium: Indirect light
    • Dark: No light

#idea #project we could build a library for this with SCSS. One to build objects, another that is a collection of items.

History of Web Browser Engines from 1990 until today
Building data-centric apps with a reactive relational database

The deficiencies of SQL to use it as frontend databases:

  1. Standard SQL doesn’t support nesting
  2. SQL syntax is verbose and non-uniform.
  3. SQL’s scalar expression language is weird and limited
  4. SQL doesn't have good tools for metaprogramming and changing the shape of a query at runtime
Consommer moins de viande · Boris Schapira

Par contre, pour convaincre d’autres citoyen·nes d’essayer, il faut avoir des arguments : des alternatives, des recettes, un discours construit sur la nécessité de consommer moins de viande, des idées pour y arriver et une autorité qui s’acquiert, en partie, par l’exemple.

Mangez moins de viande n’est pas une attaque envers les un·es, les autres, les traditions ou les valeurs du groupe. Vous pouvez manger moins de viande et déguster un chapon à Noël. Manger moins de viande et apprécier celle que vous achetez. L’objectif, c’est d’en consommer moins. C’est un impératif de survie.

Millennials are shattering the oldest rule in politics | Financial Times

Unlike previous generations, British and American Millenials (aged 26-41) do not become more conservative as they age - on the contrary
Similar patterns are evident in Britain, where millennials are more economically leftwing than Gen-Xers and boomers were at the same age

Also

UK millennials and their “Gen Z” younger cousins will probably cast more votes than boomers in the next general election.

So... we will see :)

BB27000 on Twitter: "J'ai simplifié pour que tout le monde comprenne. https://t.co/aY6ciidxT9" / Twitter

Un schéma de l'organisation de la SNCF (simplifiée).

Avant VS après. Le schéma est inspirée de celui d'EDF, représentant son ouverture à la concurrence et ce que cela représente comme complexité.

antfu/vitesse: 🏕 Opinionated Vite + Vue Starter Template

A ready to go starter project with ... everything. A lite version exist for a smaller scope.

unocss/unocss: The instant on-demand atomic CSS engine.

Better than writing you own utility classes because this tool will generate only the one needed :)

Another great tools initiated by Antfu

UnoCSS is an atomic-CSS engine instead of a framework. Everything is designed with flexibility and performance in mind. There are no core utilities in UnoCSS, all functionalities are provided via presets.

Developer Roadmaps - roadmap.sh

roadmap.sh is a community effort to create roadmaps, guides and other educational content to help guide the developers in picking up the path and guide their learnings.

Twitter a coupé l'accès aux applications tierces
Les milliardaires n’en finissent plus de s’enrichir
Anna’s Archive

A search engine for books.

EDIT 2023-08-25: it stores their books now, and it is the biggest library of the world!

sql.js demo: Online SQL interpreter

#idea #project: make a better UI :)

Your frontend needs a database - YouTube

Good points! I have use cases where a frontend database approach will work perfectly!

Sous quel statut ? – Carnet de notes

SASU, Portage salarial, Micro-entreprise, SASU pour en tirer un SMIC + dividences, EIRL ou EURL.

Chris's Wiki :: blog/programming/RustIsInevitable

A bit of thought about Rust that will replace C/C++ little by little. and how Rust will be (and is) wider used than Zig because of its safety.

Ils sont les encyclopédistes de Wikipédia -
  1. 5 000 bénévoles très impliqués
  2. Loisir de passionnés, partage et plaisir
  3. Les éditions sont surveillées par des "patrouilleurs"
  4. Après une croissance énorme en 2006-2007, l'encyclopédie croît lentement mais sûrement. Il s'agit surtout d'améliorer la qualité des articles.
Photos de salariés japonais pendant leurs semaines de travail de 60 heures