HN user

phponpcp

2 karma
Posts3
Comments33
View on HN
1MB Club 6 years ago

You do for full width retina images on 1440p+ monitors.

Tailwind UI 6 years ago

This is so much easier to parse too. If you need more rigidity, add BEM on top then you're good to go.

Tailwind UI 6 years ago

"but I'm not willing to install and use npm and several hundred dependencies"

Good luck being a employable lol

The point that they didn't raise is that scrollbars effect the size and position of things in the browser. Try setting 100vw on an element when you have obtrusive scrollbars, the result will be a page which now has horizontal scrolling, leading to terrible UX.

Angular v8.0 7 years ago

It's all about the use case. If you're on an ecommerce website and click between category and PDP pages 5-10 times browsing, a SPA is going to make that transaction an order of magnitude faster. Since you're only loading the smallest possible payload (JSON) that contains only the things that have changed, it is optimized in a way that is never going to be achievable with server-side rendering.

At least that's why I opted to push for a SPA.

That doesn't scale after awhile. Generally the next step is putting your business logic in HOCs or Redux thunks or sagas. Now it can be dropped in hooks too.

Yeah I dont know about that. If you've ever had to deal with optimizing event delegation and updating the DOM without causing massive repaints you'd change your tune.

Benchmarking on low-end devices to prove your point is situational at best in my opinion. For example if you work at a luxury ecommerce brand, you can assume that most users who actually are going to buy something are going to be using a flagship model device.

React Router v5 7 years ago

Lol now that you mention this, it makes the React community make way more sense to me.