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

Agreed.

The correct answer (for desktop) is canonical grid based layout. (1)

I created DesignGridLayout, a manager for Java Swing. You add rows of widgets, the manager figures out optimal placement.

https://designgridlayout.java.net/grids.html

Every time I see mention of grids and CSS, I get a little bit excited. Then I see it's not based on canonical grids and I leave sad.

Maybe I should have "ported" DGL to HTML/CSS/JS, but I haven't figured out how (yet).

For mobile, I reserve judgement. I've heard good things about AutoLayout. But it'll be hard to replace my strategy of creating custom managers as needed.

(1) Except maybe for dynamic insertion and removal of controls. I'd have consider a few cases.



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

Search: