Quick tip: be careful when using the newer #CSS viewport-percentage length units like `svh`, `dvh`, and the like. They are well-supported since late 2022 and quite a few users might still be using older (Android) devices and browsers. So always make sure to test on a few real devices (thanks to my parents in law for their Galaxy Tab 4 😁) and provide fallbacks, e.g. with `vh`.
Suggestion for anyone who has ever coded a phone number parser.
If the person typing in the phone number types in their own parentheses, don't count that as a digit. it should work the same whether 1 234 567 8899 or (234)567-8899 or 2345678899 or 12345678899 (website knows we are in USA and the address is in USA so inferring the 1 or ignoring the 1 are both obvious things. And if it falls into an ambiguous bucket, ask for confirmation, e.g, for a date like 01/02/24 (=2024-01-02 …
Learning to use `lazy_static` in #Rust and found that #RustRover helps visualize what type you're dealing with when working with pointers and references. Check out the inlay hints. They're great!
Les types d’actifs (assets)
https://www.didiermary.fr/types-actifs-assets-crypto-web3/
Pour une synthèse de ce que sont les différents types d'actifs financiers, consultez cette partie de mon "Dictionnaire Crypto & Web3"
Realised last night that JavaScript Database (JSDB) doesn’t run the constructor on persisted custom objects (https://codeberg.org/small-tech/jsdb#custom-data-types) when deserialising them because I didn’t know that you apparently have to define your constructor manual…
What are programming language in widespread use today that:
1. have declared types, but
2. types are only checked at runtime, no static type checking?
I believe you can make Racket do this, and it’s an idiom with old Scheme roots. I think? And don’t some dependently typed languages resort to runtime checks when static proofs aren’t possible?…but I’m looking for no static types, runtime checks only.
2021 retro-link! https://github.com/austral/austral - austral: a systems language with linear types.