News for hackers. Stuff that matters.
Re:Closing a 30 pixel gap between native and web by szastamasta on Wednesday September 28, 2022 @01:09AM (#33004451)
I also spent quite some time building desktop and mobile apps (5, maybe 6 years) and also more than 10 years of building web apps and don’t really share this sentiment.

My feeling is exactly opposite. CSS is messy and hacky way to build layouts (the famous “how to center a div”, etc.) while with UI toolkits it tends to be much more straightforward and standardized.

(Edit: fixed a typo)

Re:Closing a 30 pixel gap between native and web by muspimerol on Wednesday September 28, 2022 @03:34AM (#33005199)
When is the last time you used CSS? "How to center a div" has not been an issue with CSS for many, many years. Flexbox and now CSS Grid have overwhelming adoption and most layouts can be achieved with a few lines of CSS.
Re:Closing a 30 pixel gap between native and web by lelanthran on Wednesday September 28, 2022 @04:04AM (#33005405)
> When is the last time you used CSS? "How to center a div" has not been an issue with CSS for many, many years. Flexbox and now CSS Grid have overwhelming adoption and most layouts can be achieved with a few lines of CSS.

The html-apps-as-a-local-app (like electron-based stuff) became popular prior to "how to centre a div" was answered.

IOW, they became popular in spite of having shitty layouts specifications.

Re:Closing a 30 pixel gap between native and web by austhrow743 on Wednesday September 28, 2022 @07:22AM (#33006688)
Flexbox predates electron let alone electron being popular.
Re:Closing a 30 pixel gap between native and web by hulitu on Friday September 30, 2022 @05:15AM (#33032712)
Firefox is not a good example of good (G)UI. It was at the beginning until they started copying Chrome.