Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tuan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
What Is Mimetic Desire?
(lukeburgis.com)
3 points
by
tuan
5y ago
|
0 comments
92.
▲
Betting on the Market (1997)
(youtube.com)
1 points
by
tuan
5y ago
|
0 comments
93.
▲
by
tuan
5y ago
Yeah, as a Vietnamese, this title definitely feels offensive to me. Maybe this article is written with American audience in mind. In Vietnam we call the war American war btw. Depends on where you are from, the title could have used the term
94.
▲
by
tuan
5y ago
I guess now one can have markup, css, client side js, and server side js all in one file...
95.
▲
by
tuan
5y ago
>> load and render each component individually you can do that with Suspense. React doc calls that render-as-you-fetch pattern https://reactjs.org/docs/concurrent-mode-suspense.html#appro...
96.
▲
by
tuan
5y ago
So it sounds like the tradeoff here is that the generated bundle is more complicated/bigger. I'm not familiar with Svelt, but wondering about bundle size + debuggability.
97.
▲
by
tuan
5y ago
Another approach is to show the box further down the page (the part of the page that is not yet visible on the view port). Assuming that the request latency is low, the box will be fully loaded when user scrolls to it. I found combining bot
98.
▲
by
tuan
5y ago
>> add a loading state near the component that suspended, as you have to create an intermediate component and a loading component, splitting what should be a single concern into several I'm not following. Can you just wrap the c
99.
▲
by
tuan
5y ago
I don't think you need to hold id using useRef(). The cleanup callback holds the id from the same render, so it will clean up the correct interval.
100.
▲
by
tuan
5y ago
You still need to understand lifecycle of a component to understand how useEffect() works though...
101.
▲
by
tuan
5y ago
there's some social stuff e.g. Like button. The Personalized page also has a section for comments, but it does not seem like there's a way to comment on an article yet.
102.
▲
by
tuan
5y ago
Saigon then, Kabul now: https://www.youtube.com/watch?v=q6FZ6aFbNvY
103.
▲
by
tuan
5y ago
When I onboarded I got option to choose a Mac or thinkpad. IIRC a Mac is a recommended option for swe, but there’s nothing in the onboarding that says do not use windows machine
104.
▲
Going faster than the wind downwind
(youtube.com)
6 points
by
tuan
5y ago
|
1 comments
105.
▲
by
tuan
5y ago
Also check out this follow up: https://www.youtube.com/watch?v=yCsgoLc_fzI
106.
▲
by
tuan
5y ago
Vietnam GDP historical data: https://tradingeconomics.com/vietnam/gdp From https://www.worldbank.org/en/country/vietnam/overview : "Vietnam’s development over the past 30 years has b
107.
▲
NASA’s helicopter ingenuity will attempt the first flight on Mars
(smithsonianmag.com)
1 points
by
tuan
6y ago
|
0 comments
108.
▲
by
tuan
6y ago
You’re my number 0
109.
▲
by
tuan
6y ago
A follow up video from the reporter who was arrested https://www.youtube.com/watch?v=-gsXevAjNbw
110.
▲
by
tuan
6y ago
Related: I found this online tool to be very useful for debugging regex: https://www.debuggex.com/
111.
▲
Visual Studio Codespaces
(devblogs.microsoft.com)
3 points
by
tuan
6y ago
|
0 comments
112.
▲
by
tuan
6y ago
>> It increases genetic diversity in the pool of offspring. That diversity could then raise the fitness of future generations by making them stronger, faster, more resistant to parasites or otherwise more adaptable Probably off topic
113.
▲
Microsoft is giving parents 12 weeks’ paid parental leave
(fastcompany.com)
27 points
by
tuan
7y ago
|
11 comments
114.
▲
by
tuan
7y ago
I tried to switch to Firefox, but it randomly freezes after my mac wakes up from sleep, so after a month or so I had to go back to Chrome.
115.
▲
by
tuan
7y ago
hmm I didn't have to do #1 in the list when I was at Google, but I did 2,3,4 pretty much everyday. I guess this really depends on which team your coworker was in.
116.
▲
by
tuan
8y ago
in a project I worked on, we used tsc with msbuild to build our frontend.
117.
▲
Fewer international students heading to the US
(wsj.com)
1 points
by
tuan
8y ago
|
0 comments
118.
▲
by
tuan
9y ago
On Windows I use `;` to chain commands.
119.
▲
by
tuan
9y ago
Making Transaction mutable usually means its internal state is not 100% controlled by its implementation. The consumer of a Transaction object might be able to manipulate its state in an expected way (e.g. calling mutation methods in an une
120.
▲
by
tuan
9y ago
I feel like Microservice idea does not seem to translate well to front end. When thinking of microservices, one can think of collection of well encapsulated functions that are composed together. The keywords are function & encapsulation
More ›