News for hackers. Stuff that matters.
Re:JetBrains Ring UI by Kuinox on Friday October 07, 2022 @04:05PM (#33126272)
Funny how this argument was opposed against libraries in the early day of programming.
Re:JetBrains Ring UI by jahewson on Friday October 07, 2022 @09:44PM (#33129071)
I think it’s an argument for small, composable libraries. Think Go’s std instead of Java’s Spring.
Re:JetBrains Ring UI by Kuinox on Saturday October 08, 2022 @01:49AM (#33130104)
UI components can be small, and customizable enough to do anything.

The HTML is an excellent exemple at that.

You are never "limited" by highly abstracted librairies since at any moment, you can write your fully customized one.

And no, a customized components is not immediately better.

Good Library UI components have, i18n, accessibility, and good mobile UX.

The comment "I can do a decent calendar in react in a few minutes" shows exactly this: it's infuriating to use on mobile.

Re:JetBrains Ring UI by kaba0 on Saturday October 08, 2022 @06:18AM (#33131168)
The web is exactly a bad argument, it composes terribly. You can make n*m divs for the days for a calendar widget, it won’t be recognized as a date selector. While swing, or even earlier GUI iterations realized that inheritance is a very sane model for GUI frameworks.
Re:JetBrains Ring UI by Kuinox on Saturday October 08, 2022 @07:23AM (#33131409)
You know you can inherit the HTML date picker right?

... right ?

Re:JetBrains Ring UI by ulimn on Saturday October 08, 2022 @09:18AM (#33132035)
I actually don't know what you mean. Can you please tell me?
Re:JetBrains Ring UI by Kuinox on Saturday October 08, 2022 @10:33AM (#33132601)
Webcomponents allow inheriting html built in elements.

https://developer.mozilla.org/en-US/docs/Web/Web_Components/...

> Customized built-in elements inherit from basic HTML elements.

Re:JetBrains Ring UI by ulimn on Saturday October 08, 2022 @12:29PM (#33133649)
Thanks. I always wanted to look into web components, sounds interesting.