Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tuan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
tuan
2y ago
Is it possible to build useActionState hook based on existing built-in hooks ? If yes, why does that hook have to be built in ?
32.
▲
by
tuan
2y ago
I wish they rename "use" API to something else other than the common prefix for hooks. I imagine someone new to React hooks might be confused when they see that `use` can be called conditionally, while hooks can't.
33.
▲
by
tuan
2y ago
The UX mitigations section is interesting. The shifting of the layout after the first render is mitigated by CSS animations. That works when you have a "sparse" design like what they currently have. For sites with high density suc
34.
▲
by
tuan
2y ago
> Separating them into different calls will introduce some additional complexity, but in the long run it will make your applications much more scalable and maintainable. I agree with the scalability benefits, but not sure about maintaina
35.
▲
by
tuan
2y ago
This could be similar to why many people value handmade products more than mass produced products.
36.
▲
by
tuan
2y ago
> Do you see similar distortions at 180 or 175cm in countries where the metric system is used? No idea, but Vietnamese avg height is 168 cm :D I cannot find any sources published by our gov that has height distribution info.
37.
▲
by
tuan
2y ago
Interesting. I didn't know that. Do you do the conversion in your head, like 2 blocks = 160*2 meters, when someone use blocks in a conversation ? Just curious. also ... LOOK everyone I found an American who uses metric system as first
38.
▲
by
tuan
2y ago
this reminds me of issue I had when I heard American on TV or movies use number of blocks to describe a distance, for example: "my house is three blocks away from here". I thought block is a unit, just like meter or kilometer. I&#
39.
▲
by
tuan
2y ago
> GraphQL is very good for places where frontend and backend developers are isolated from each other (separate teams) What do you mean by "backend developer" ? The one who creates the GraphQL endpoints for UI to consume ?
40.
▲
by
tuan
2y ago
>> Some commentaries are heavily biased and borderline conspiratorial. yeah, just want to echo what NhanH said above. Please factcheck or ask for citations. Some comments are borderline conspiracies.
41.
▲
by
tuan
3y ago
Fb is down but YT is still up for me.
42.
▲
App connects drivers with lawyers to de-escalate police interactions
(pbs.org)
1 points
by
tuan
3y ago
|
0 comments
43.
▲
by
tuan
3y ago
Since v1.0+ of this extension I have been constantly having issues with neovim's and VSCode's buffers got out of sync. I cannot reliably reproduce the issues however. There are a few similar reports, e.g. https://github
44.
▲
by
tuan
3y ago
A few years ago when I just moved to my neighborhood, I got a paper mail from nextdoor. It's a welcome mail and has real people name on it. The mail says something like "John Smith, your neighbor, would like to invite you to join
45.
▲
by
tuan
3y ago
There seems to be many ways to interpret what meditation means across cultures. To me, born and raised in SE Asia, niksen as described in the article is not the same as meditation. There are significant overlaps however. For example: sittin
46.
▲
by
tuan
3y ago
> Adding a view library is helpful, but with it these days comes state management, routing, graphql, SSR, hot reloading, CSS-in-JS, and just mountains and mountains of related things just to get your app running. It feels like the autho
47.
▲
by
tuan
3y ago
I'm so glad that they've changed the name :) Bard is really difficult for me, a non-native English speaker, to pronounce correctly. I think most people from my country (Vietnam) pronounce Bard as "bahd". Gemini on the ot
48.
▲
by
tuan
3y ago
> "impact" is almost always measured by what features you shipped rather than considering the impact your code had on the long-term maintainability of the codebase A new feature = an increment in major version of your product,
49.
▲
by
tuan
3y ago
> It's really satisfying to hammer out some props and see a component come to life, especially when you've got hot module replacement working. Can you just use inline style in this case ?
50.
▲
by
tuan
3y ago
Hmm I don't know if the ordinance is the main factor that leads to the decline in demand or just everything is getting too expensive nowadays. In my own experience living in the area, we've stopped ordering food since a few years
51.
▲
by
tuan
3y ago
This reminds me of one of my childhood's favorite activities in Vietnam: catching water bugs late afternoons. I think they are https://en.wikipedia.org/wiki/Lethocerus_indicus , but I might be wrong. That was in th
52.
▲
by
tuan
3y ago
I see. I forgot about server side rendering scenario. Thanks!
53.
▲
by
tuan
3y ago
I'm wondering why these frameworks keep using HTML as a "communication language" between server and client ? I meant server sends a HTML fragment to client for it to parse and update the current DOM. It makes sense for tradit
54.
▲
by
tuan
3y ago
That’s uppercase L and H to move to bottom or top of the screen
55.
▲
by
tuan
3y ago
It does https://docs.zed.dev/general/vim . The support seems limited however, for example 'L' or 'H' movement does not seem to be supported.
56.
▲
If Your Goal Is Success, Don't Consult These Gurus (1996)
(fastcompany.com)
1 points
by
tuan
3y ago
|
0 comments
57.
▲
by
tuan
3y ago
yeah, I saw the same thing in Safari. It's "fixed" after I click on the X button close card, and click the card to reopen.
58.
▲
Beets: The music geek's media organizer
(beets.io)
4 points
by
tuan
3y ago
|
0 comments
59.
▲
by
tuan
3y ago
Hmm I installed invidious yesterday and was able to watch 1080p. Maybe you need to update to the latest.
60.
▲
Brian Cox explains why time travels in one direction – BBC [video]
(youtube.com)
8 points
by
tuan
3y ago
|
2 comments
More ›