Live data from Hacker News

Ant Design – the second most popular React UI framework

github.com

61–67 of 67 posts

Re: Ant Design – the second most popular React UI framework

#61

How anyone finds this code maintainable is beyond me: https://github.com/ant-design/ant-design/blob/master/compone...

Compared to what? It's a complex component that doesn't get any simpler if you change UI platforms. And while complex, it's not hard to follow. Here's the source of DataTables: https://github.com/DataTables/DataTablesSrc ( https://datatables.net/ )

Compared to any major UI library out there. Take QT for example:

https://github.com/qt/qtbase/blob/5d1ded3359ee8bffa33a4b83d5...

That ANT Table is not complex. QT has tons of legacy and supports way more features, yet, code is easier to grasp and maintain. Also, C# and WinForms, if you don't like C++:

https://referencesource.microsoft.com/#System.Windows.Forms/...

Re: Ant Design – the second most popular React UI framework

#62

Back in 2018, I worked on projects where we used Ant Design. At the time it was one of the best choices out there for a quick project, as it had all the standard components with a relatively good design out of the box. Since all the easter egg fiasco / css bloat I've avoided using it. These days, there's just much better options such as shadcn/ui [1], chakra [2] or radix [3] which when paired with frameworks such as…

shadcn/ui is pretty terrible unless you already have a an entire design system you're planning on replacing the defaults with anyways. Radix Themes (not Primitives) has the WorkOS look without awful color choices and the whole "pretending not to be a component library" gimmick https://www.radix-ui.com/

> the whole "pretending not to be a component library" gimmick

Literally the first line says that it's a component library :)

Snark aside, I'm gonna defend Radix Themes. I agree that the configurations they show on their website aren't great (and also that they should pay more attention to pixel alignment), but they have the most consistent structure I've seen, with well-defined tokens, great composability and flexibility for overrides.

I've found that, with the parameters they provide, I can get a design that is close to what I would've done myself anyways. Eventually, I guess I'll look into adding some light overrides to add a bit more shadow and fix some of the rougher edges.

Re: Ant Design – the second most popular React UI framework

#63

Earlier quoted context omitted.

Compared to what? It's a complex component that doesn't get any simpler if you change UI platforms. And while complex, it's not hard to follow. Here's the source of DataTables: https://github.com/DataTables/DataTablesSrc ( https://datatables.net/ )

Compared to any major UI library out there. Take QT for example: https://github.com/qt/qtbase/blob/5d1ded3359ee8bffa33a4b83d5... That ANT Table is not complex. QT has tons of legacy and supports way more features, yet, code is easier to grasp and maintain. Also, C# and WinForms, if you don't like C++: https://referencesource.microsoft.com/#System.Windows.Forms/...

[deleted]

Re: Ant Design – the second most popular React UI framework

#64

Earlier quoted context omitted.

Compared to what? It's a complex component that doesn't get any simpler if you change UI platforms. And while complex, it's not hard to follow. Here's the source of DataTables: https://github.com/DataTables/DataTablesSrc ( https://datatables.net/ )

Compared to any major UI library out there. Take QT for example: https://github.com/qt/qtbase/blob/5d1ded3359ee8bffa33a4b83d5... That ANT Table is not complex. QT has tons of legacy and supports way more features, yet, code is easier to grasp and maintain. Also, C# and WinForms, if you don't like C++: https://referencesource.microsoft.com/#System.Windows.Forms/...

This just seems like a comparison of how familiar you are with any of the UI libraries. None of these are simple. You're linking me thousands of lines of code, 6000+ in the WinForms example.

Yet the Ant link is just 600 lines.

Re: Ant Design – the second most popular React UI framework

#65
post #44

Earlier quoted context omitted.

Was there some reason that Ant inherently require it working that way, as opposed to it being a mistake in the application code?

It's more general to spawn a portal per component because then you can show multiple popovers at a time, like popovers that are always visible or only go away if you click "Close". So it makes sense to start there for the naive solution.

Right but the dots aren't popovers. The dots trigger popovers. You should have one dot per dot and one popover per popover.

You could certainly make a popover per dot in any react library. It would just be bad to do so.

Re: Ant Design – the second most popular React UI framework

#66

Earlier quoted context omitted.

shadcn/ui is pretty terrible unless you already have a an entire design system you're planning on replacing the defaults with anyways. Radix Themes (not Primitives) has the WorkOS look without awful color choices and the whole "pretending not to be a component library" gimmick https://www.radix-ui.com/

> the whole "pretending not to be a component library" gimmick Literally the first line says that it's a component library :) Snark aside, I'm gonna defend Radix Themes. I agree that the configurations they show on their website aren't great (and also that they should pay more attention to pixel alignment), but they have the most consistent structure I've seen, with well-defined tokens, great composability and flexib…

https://ui.shadcn.com/docs

> This is NOT a component library. It's a collection of re-usable components that you can copy and paste into your apps.

And what are you defending Themes from, I'm recommending it?

Re: Ant Design – the second most popular React UI framework

#67

Earlier quoted context omitted.

> the whole "pretending not to be a component library" gimmick Literally the first line says that it's a component library :) Snark aside, I'm gonna defend Radix Themes. I agree that the configurations they show on their website aren't great (and also that they should pay more attention to pixel alignment), but they have the most consistent structure I've seen, with well-defined tokens, great composability and flexib…

https://ui.shadcn.com/docs > This is NOT a component library. It's a collection of re-usable components that you can copy and paste into your apps. And what are you defending Themes from, I'm recommending it?

... I must have misread the without in that sentence 15 times. My bad.

Thought you said that Radix is claiming not to be a component library with bad color choices.

Post reply on HN