Hacker Newsnew | past | comments | ask | show | jobs | submit | ediatedia's commentslogin

Ok, I'll bite. I've been coding for almost 25 years so have seen various things come and go, so hopefully have a bit of capital in the bank.

Don't get me wrong, a HTML5 radio button is a beautiful thing, and sometimes React is a hammer and everything is a nail.

However, I think something that OP doesn't mention super explicitly in their post is the codebase they are working on is probably a React codebase. React is a great abstraction for building UIs. I've built a ton of them and the complexity only needs to go above a certain degree until you need a way more descriptive way of explaining your UI based upon other state, instead of trying to wire a load of DOM elements together.

If you are already using the React ecosystem, for things like form validation (again, possible with HTML5 but as soon as the complexity cranks or you can't use the server - you probably need a library), then using something like Radix is a great choice, OP even mentions how although it's not technically a visible radio button that is shipped to the DOM, it acts like one for a11y reasons, and this is due in part because it's very, very easy to write inaccessible HTML. And ShadCN is pre-made components on top of that, and they all work pretty well together.

Nothing is perfect, but even in my "old man yells at cloud" era, I personally don't think this one is worth yelling at the cloud for.


As someone who has never really dived into React etc., my main question is "where is the line?"

I'm sure you'll agree that React is overkill for some applications and, for the sake of this discussion, I'll agree that it's beneficial for applications beyond a certain complexity.

But where exactly (or even, roughly) does that line lie? A basic CRUD app? Surely not. A calculator? I'm guessing "no". Bluesky? Maybe/probably.


Bluesky absolutely yes, something like React makes sense.

I think it depends on a few things but the two big ones in my mind are:

1) Interactivity. How rich do you need/want the interactivity to be? As this scales up the benefit of React also increases.

Of course you can get highly interactive vanilla HTML sites but it’s much easier to achieve with React.

2) Statefulness. The more UI state you have the more a tool like React helps you. Again, it’s not doing anything you cannot do with vanilla HTML/JS but the level of difficulty comparatively is night and day.

On top of that, React is widely adopted. The tooling is fantastic, the community is strong, the job prospects are very good, and if you’re hiring the talent pool for React is vast.


2 pieces of UI in different parts of the page that depend on the same data - that's the line (also matches the initial goal of React - sync FB chat widgets).


Yeah, this is either an oversight or unnecessarily immature. Either way, not good.


React has it's problems, but for me one of the most appealing things is doing away with this magic attribute sprinkling that is a maintenance nightmare and just going all in on JSX.


The author seems to wear their support of capitalism "on their sleeve", so acting in their self-interest is endemic. At the risk of sounding bitter, I imagine these problems aren't trendy enough to solve yet, or maybe they just had something akin to blinkers on en route to their hike.


I think there would be some appetite but I cannot imagine the short term chaos it would cause. Surely it would cost the country a fortune and also I could see insurance companies driving up the cost of premiums.


Oh no! What browser are you using?


Sorry I just got this in my other email address lol.


I think I was using Firefox, also tried with Brave.


Adam Wathan actually wrote about it:

https://adamwathan.me/tailwindcss-from-side-project-byproduc...

I think one of the most powerful things was making a course then giving it away - really goes far to boost your prominence as a developer and building those lists.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: