Im not in web development. Reading this article makes me think: is it realy neccersary to use all those complex frameworks? Isn't html/css enough? People always say "every line not written can't be a bug" but moving those lines into a library was not the idea behind the words
The Overcomplexity of the Shadcn Radio Button
291–300 of 351 posts
Re: The Overcomplexity of the Shadcn Radio Button
#292Earlier quoted context omitted.
> Isn't html/css enough? No, obviously. If you are writing complex web applications with state, local processing of data and asynchronous interactions it's not enough. You need javascript. If your javascript is especially complex and you desire it to be declarative, you probably need a framework. Do you need, I don't know, Tomcat in Java? Probably yes for a complex application and no for a simple proof of concept. Do…
>If you are writing complex web applications with state, local processing of data and asynchronous interactions it's not enough. >Next objection usually is: do you need complex apps on the client? It's not even an objection, it's a question I ask and almost never hear a coherent answer to. The vast majority of web applications I use every day (online banking, github, forums, social media, admin interfaces of various…
Since the dawn of time, humans have sought to eliminate mushy laggy UIs, such as having to wait for a full page reload whenever you click a button. I don't like SPAs either, but dunno, I don't find it particularly hard to understand how we got here.
Re: The Overcomplexity of the Shadcn Radio Button
#293Did they ask the original authors of Radix why it's the way it is?
[1] https://en.wikipedia.org/wiki/G._K._Chesterton#Chesterton's_...
Re: The Overcomplexity of the Shadcn Radio Button
#294Earlier quoted context omitted.
https://www.mcmaster.com 2022 post about it. 1400 points. ~500 comments: https://news.ycombinator.com/item?id=32976978
I would recommend comparing to https://next-faster.vercel.app/ NextFaster feels faster than McMaster IMHO
[0] https://github.com/ethanniser/NextFaster?tab=readme-ov-file#...
Re: The Overcomplexity of the Shadcn Radio Button
#295Earlier quoted context omitted.
The parent comment is seemingly blaming React for the decisions of Shadcn for some reason. There’s nothing about React that requires you to overcomplicate your DOM (unlike many other UI frameworks).
The point I wanted to emphasize is that even if you do overcomplicate your DOM, the component abstraction is what allows you to fix it in one place . Don't like what's in your component — add `return `, bam! It's fixed across the entire app now.
Re: The Overcomplexity of the Shadcn Radio Button
#296Earlier quoted context omitted.
I work on a React based web app in my Day Job and have genuinely enjoyed it. That said, it always feels like so much boilerplate to get up and running for a greenfield project (and things like NextJS or even TanStack Start add a lot of things that might be overkill for a simple web app). For some vibe coded side projects with Claude, I’ve been working with just using handlebars templates with Express and it has been…
> and have genuinely enjoyed it. People who haven't work with other frameworks like svelte, Vue - normally say they are enjoying React.
For what it’s worth, I’ve used Vue and don’t like it (stuff like custom directives that are nonstandard html, not as explicit about event handling and data flow, etc).
I’ve seen a lot of buzz (particularly on HN) about Svelte but have lacked the motivation to try it.
Re: The Overcomplexity of the Shadcn Radio Button
#297Earlier quoted context omitted.
Can you give an example please? What kind of complexity are we talking about?
Any kind of nested markup: styled content, additional animation layers, etc.
I'd be happy to implement an HTML + CSS only solution and share it with you.
Thanks
Re: The Overcomplexity of the Shadcn Radio Button
#298I recently tried out https://daisyui.com/ (CSS only components, depends on tailwind) and so far I really like it. It also highlights how far browser have come with new features such as dialogs, which I always implemented with (a lot of) JavaScript in the past
This library doesn't appear to be accessible. Just looking at two random components: The Drawer ( https://daisyui.com/components/drawer/ ) doesn't trap focus inside itself (letting you tab to the page behind the drawer while it's open). The Accordion ( https://daisyui.com/components/accordion/ ) first example is using radio buttons as a hack to avoid Javascript, which would be very confusing to screen reader users (a…
I agree in many scenarios, but for the two you mentioned it seems like the and elements provide accessible solutions out of the box?
Re: The Overcomplexity of the Shadcn Radio Button
#299I normally share the sentiments of the article. But I am also curious, if the goal was: - Implement the radio as the designer sent in the figma file (e.g. something like the radix demo one they're commenting on: https://www.radix-ui.com/primitives/docs/components/radio-gr... ) - Make sure it looks the exact same across all browsers How doable is it with vanilla css? The example they gave was rendered to a black/white…
You can do pretty much any styling!
I did a basic example because that matches what Shadcn does (black/white circle) but you can customize it a lot more.
Re: The Overcomplexity of the Shadcn Radio Button
#300Did they ask the original authors of Radix why it's the way it is?
How would you suggest I reach out?