Readit News logoReadit News
yuchi commented on Surface Tension of Software   iamstelios.com/blog/surfa... · Posted by u/i8s
yuchi · 7 days ago
While the reasoning holds generally, that specific example is wrong. The type the author presents is not the “User Profile” but a “User Profile Load Resource” (or something in those terms).

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

yuchi commented on <template>: The Content Template element   developer.mozilla.org/en-... · Posted by u/palmfacehn
alserio · 4 months ago
I was wondering, are template elements a good place to store json data in the page to be consumed by js?
yuchi · 4 months ago
As good as a script element with type application/json.
yuchi commented on End of an Era   erasmatazz.com/personal/s... · Posted by u/marcusestes
anyfoo · 6 months ago
Ah, okay. Maybe it’s more obvious in context, or maybe my hyperbole detector is broken.
yuchi · 6 months ago
Just as a small note I did not get that too.
yuchi commented on Show HN: Real-Time Gaussian Splatting   github.com/axbycc/LiveSpl... · Posted by u/markisus
yuchi · 7 months ago
The output looks terribly similar to what sci-fi movies envisioned as 3D reconstruction of scenes. It is absolutely awesome. Now, if we could project them in 3D… :)
yuchi commented on Nine – seemingly impossible C64 demo   linusakesson.net/scene/ni... · Posted by u/appleorchard46
yuchi · a year ago
Posted it few days ago but didn’t get any traction. All Linus’ work on retro computing is fenomenal. Please have a look at its channel, a lot of awesome content there.
yuchi commented on JavaScript Temporal is coming   developer.mozilla.org/en-... · Posted by u/SigmundurM
liontwist · a year ago
The vast majority of websites should be calculating dates in a server and merely presenting them to clients.

I have wondered why there isn’t a span style element which takes a UTC timestamp and presents it to the user in their preferred time zone. I even wonder if it could be done in private way so that JS cannot even access the value (made more difficult by layout and size).

Similarly a form element for date times could simply return the UTC from the local choice.

I am just wondering out loud and not an expert.

yuchi · a year ago
A lot of calculations may happen on the client. And the server may be written in JavaScript.
yuchi commented on JavaScript Temporal is coming   developer.mozilla.org/en-... · Posted by u/SigmundurM
OptionOfT · a year ago
Very sad that .Now is not a function call. It shouldn't be a property.

Evaluating .Now multiple times in a loop will yield different values, which is unexpected.

C# did the same and it shouldn't have been:

https://ericlippert.com/2014/05/19/when-should-i-write-a-pro...

yuchi · a year ago
I think you got it wrong. Now is a namespace for functions that retrieve the actual values, such as Now.instant()
yuchi commented on Coding Machines (short story, 2009)   teamten.com/lawrence/writ... · Posted by u/yuchi
yuchi · a year ago
Since the dissertation by Ken Thompson about compiler trustability was quoted today, I thought it would be a good idea to bring this short novel back from the archive. Loved it years ago and still is very enjoyable.

u/yuchi

KarmaCake day1412April 2, 2012
About
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 ]

View Original