News for hackers. Stuff that matters.
Re:Web Browser Engineering by PaulDavisThe1st on Tuesday October 15, 2024 @11:56AM (#41849894)
Actually, almost every GUI toolkit's scheme for layout has issues, and none of them are perfect.

The ones that use absolute pixel positioning fail when using different resolution displays.

The ones that use box packing fail when you need to deal with different sized displays.

The ones that use constraint programming fail when you need to layout hundreds or thousands of widgets.

CSS-style layout has its own pros and cons, but there is no alternative to it that is clearly better under all circumstances. If you doing layout and want to be resolution-independent, function on everything from phones to giant displays and have thousands of things to layout, CSS is actually likely better than any alternative.

Re:Web Browser Engineering by peoplefromibiza on Wednesday October 16, 2024 @12:17PM (#41860899)
possibly, but videogames have been doing layout for ages without CSS and they can vary a lot from game to game while most desktop applications have basically the same 2-3 layouts: input and edit some text, fill in some form, display some data in a table, a tree or a chart
Re:Web Browser Engineering by psd1 on Wednesday October 16, 2024 @09:46PM (#41865670)
Games lay out one game.

Document readers lay out every possible document.

Re:Web Browser Engineering by peoplefromibiza on Thursday October 17, 2024 @03:41AM (#41867312)
> Document readers lay out every possible document.

you mean like vector graphic software, DTPs, word processors etc etc?

Flash did resolution independent graphics and layouts on the web back in the late '90s, we killed it - not without reasons - but we still haven't created a decent alternative to it

Re:Web Browser Engineering by PaulDavisThe1st on Thursday October 17, 2024 @10:16PM (#41875817)
DAWs (digital audio workstations)

Video editors.

Image editors.

Web browsers.

Circuit, interior and architectural design.

None of these are anything like your "most desktop applications".

Re:Web Browser Engineering by peoplefromibiza on Friday October 25, 2024 @03:00PM (#41948490)
Just to be clear: when you name niche desktop applications you are literally saying that they are not "most of them"

BTW all of those applications you mentioned use many of the same techniques video games use (for the same reason: custom layouts), existed long before the web and are doing just fine without CSS