←back to thread

331 points willm | 1 comments | | HN request time: 0s | source
Show context
traverseda ◴[] No.41216311[source]
My big complaint with textual is that it wants to be react. I can see why it would want to be react, that's a very popular framework that a lot of people are already familiar with, but I don't think it's actually a good way of doing user interfaces. But the basic reactive design is a well trod road, and basing your system design on something that's known to work is a great way to derisk the project. Sure, we'll draw some heavy inspiration from react.

Alright, so we're using some bastardization of CSS as well? That might be going a little bit too far. The react model already breaks the idea of CSS in a lot of ways, preferring standardized components. Sure, developers still use CSS to customize components, but I view that more as a side effect of how react evolved rather than as a justifiable architectural choice. But as long as you don't have to use CSS I suppose it's fine.

Last I tried it, you do have to use CSS. There are no good standard components, so you will be making your own, and instead of having components be one nice self encapsulated Python class the standard docs use things like list components and then style them with an external style sheet.

For those reasons textual just isn't for me yet. In python there should be one, and preferably only one, obvious way to do something. By mirroring react so closely they're also mirroring what I see as the JavaScript communities biggest vice.

replies(5): >>41216510 #>>41217186 #>>41218287 #>>41218552 #>>41218858 #
willm ◴[] No.41217186[source]
> Last I tried it, you do have to use CSS.

You don't have to use CSS (actually you never did). Every style can be set in code, and the docs have CSS + Python equivalent for every style.

> There are no good standard components

I guess its been a while since you checked https://textual.textualize.io/widget_gallery/

replies(1): >>41219199 #
1. traverseda ◴[] No.41219199[source]
Yeah, it does seem like things have changed a lot since I last used it, which I think was probably a few years ago. Time flies.