Tootfinder

Opt-in global Mastodon full text search. Join the index!

No exact results. Similar results found.
@matthiasott@mastodon.social
2024-04-03 17:48:14

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

@dr2chase@ohai.social
2024-02-07 01:19:20

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 …

@khalidabuhakmeh@mastodon.social
2024-03-04 18:20:28

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!

Inlay hints changing types
@cybeardjm@masto.ai
2024-02-20 14:49:21

Les types d’actifs (assets)
didiermary.fr/types-actifs-ass
Pour une synthèse de ce que sont les différents types d'actifs financiers, consultez cette partie de mon "Dictionnaire Crypto & Web3"

Dictionnaire Crypto & Web3
“Digital asset” is doublespeak for Ponzi scheme. Nobody used that term before crypto, and nobody will use it after. Everybody knows unregistered securities are digital, so “digital” is omitted.
@aral@mastodon.ar.al
2024-04-29 07:49:53

Realised last night that JavaScript Database (JSDB) doesn’t run the constructor on persisted custom objects (codeberg.org/small-tech/jsdb#c) when deserialising them because I didn’t know that you apparently have to define your constructor manual…

@inthehands@hachyderm.io
2024-02-25 01:06:04

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.

@fanf@mendeddrum.org
2024-04-25 13:42:03

2021 retro-link! github.com/austral/austral - austral: a systems language with linear types.

@migueldeicaza@mastodon.social
2024-04-15 13:24:55

Magnificent guide by @…
Swift for C Practitioners:
douggregor.net/posts/swift-for

@frankel@mastodon.top
2024-04-25 05:02:03

#TypeScript: Branded Types
prosopo.io/articles/typescript