Daily Shaarli

All links of one day in a single page.

January 17, 2023

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!

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
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 :)

Sous quel statut ? – Carnet de notes

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

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.

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
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.