yuchi
Joined 1,412 karma
Venice based lead of front-end engineering and UX analysis @ SMC (https://www.smc.it)
[ my public key: https://keybase.io/yuchi; my proof: https://keybase.io/yuchi/sigs/iHLqZwLH8F262yODwR0xQa6RSxGBb4-BmsSMyUkiHY0 ]
- 15 points
- 7 points
- 2 points
- Also have a read of this fabulous short web from 2009: https://www.teamten.com/lawrence/writings/coding-machines/
- Let’s say you have a rich text where you want to highlight all occurrences of some token or syntax. When you have tree data structures you cannot use regexps or a simple parsers, since the full text may be split in different nodes.
With attributes strings it’s trivial, you just need to move attributes accordingly and to normalize stuff at the end.
- The actual size may change a lot depending on the font, but there’s a nice Unicode symbol for that:
——— <redacted> ———
Update: apparently HN doesn’t like some characters…
Anyway these are the characters: https://unicode.org/charts/nameslist/n_2700.html
- 2700 Black Safety Scissors
- 2701 Upper Blade Scissors
- 2702 Black Scissors
- 2703 Lower Blade Scissors
- 2704 White Scissors
- Another interesting fact is the difference in quality of the armours exchanged. One was incredibly valuable (gold or bronze if I’m not mistaken) and the other one was relatively poor.
Xenia was such a powerful social norm that for a warrior, in the heat of battle, is perfectly fine to temporarily be nude, exchange your finest armour for a lower grade one, and still be happy about it.
- 3 points
- 35 points
When you actually design interfaces you discover that there are way more states to keep in mind when implementing asynchronous loading.
1. There’s an initial state, where fetching has not happened yet
2. There may be initial cached (stale or not) data
3. Once loaded the data could be revalidated / refreshed
So the assumption that you either are loading XOR have data XOR have an error does not hold. You could have data, an error from the last revalidation, and be loading (revalidating).