Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nested is fine. Setting text size to be 50% of parent just rarely does what you want it to do. Well, to be precise, it does exactly what you want for the first week that you have designed it and have not started adding all sorts of other widgets to a site. Such that, inevitably, you just want to have large swaths of text that are at given sizes. You don't care how nested the thing is to get you there.

I remember learning the different Java Swing layout managers back in the day. Again, being nested was fine. That said, if you were doing a large layout, you were probably reaching for GridBagLayout. Back in 1999... (And I recall that SWT layouts were even simpler?)

I'm willing to concede that many of the ideas in CSS are good. At the least, benign. User stylesheets were just flat out a rake in field, though. And I stand by the claim that percentage sizes is largely a massive foot gun.

Edit: I should say that I find native interfaces took a massive nose dive in many ways when we abandoned so many interface builders. I have no idea how nested your typical MS Access form was or was not. I know that designing and wiring them up was far easier than what I typically see today.



I haven't thought about this video in years, but your mention brought me back! "Totally gridbag": https://www.youtube.com/watch?v=zkJR9lmjqQo


This one actually makes me curious on what "layouts" flash supported. I never wrote in it, but some folks made some amazing designs using it.


Don't get me wrong ... I don't think that trying to build apps with the complexity or layout demands of a native desktop app (particularly the creativity ones) using HTML+CS+*script makes much sense. The native toolkits are still a much better fit for this purpose.

But the native toolkits have learned from CSS in many ways, and that is just accelerating as we see what new wonders get cooked up in a web context that people used to say "you just can't do this in a browser with HTML+CSS".


I think I should have put "sucks" in quote at my opening salvo. CSS, I think is fine if you stick to the easy things. Which, fair that most things should stick to the easy things.

Where web development sucks is when we try and rube goldberg getting an icon where we want it, or anything sized the way we want it. It is akin to forcing yourself to play mouse trap every time you want to align something. (With some common alignments still just not supported? Or can we decimal align numbers easily finally?)


It isn't trivial to get that right with native toolkits either, particularly if you are screen-size and resolution aware.

Vertically aligning a set of decimal numbers with the separator the same place would be challenging in GTK and Qt and several others, unless you make some not well-supported assumptions and simplifications.

And reflow is generally being handled much better in most web apps than it is in native ones, if the latter actually allow it at all (more likely, they set a minimum window size that handles the expected layout just fine).

Also interesting to note that the the much lauded arrival of constraint-based layout across all apple GUI toolkits about 10 years ago (driven in large part by the needs of iOS) has not revolutionized layout APIs or algorithms in general.


I think aligning to decimal point just amuses the crap out of me because "receipt" is a very common document type that you would expect to see on the web. No?

At least in something like GTK and Qt you would be more than justified in just punting on the semantics of the receipt and formatting a fixed width set of numbers to call it a day? In HTML, doing that feels extra wrong. (But, indeed, you can do the same "fixed width" with non collapsed whitespace, even in HTML.)

And it isn't like this isn't a somewhat solved thing in long existing layout engines. Aligning to variables and such is very common in math texts. And largely not doable in HTML.

Reflow is one that always strikes me as largely misguided. No amount of reflow will make most websites look good on a gigantic monitor. Same as no amount of reflow will make most documents handle someone's name that is actually a novel. It just doesn't make sense, for many reasons. And yet we will put forth herculean efforts to maintain "reflow" based on content in so many places.


> Well, to be precise, it does exactly what you want for the first week that you have designed it and have not started adding all sorts of other widgets to a site. Such that, inevitably, you just want to have large swaths of text that are at given sizes. You don't care how nested the thing is to get you there.

Shared library components is where this could work - each individual application would be able to scale the component's size to what it needs.


Is certainly where folks thought it would work. I have never ever seen this work in a way that wasn't more work than makes sense. Happy to see some actual success cases, if you know of any.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: