3 ms·
Constraints are the right approach to layout. This should have happened years ago. The important concept here is defining layout like this: #elmA[top-left
by Animats 11y ago
Constraints are the right approach to layout. This should have happened years ago. The important concept here is defining layout like this:
#elmA[top-left] == "area"[top-left];
#elmB[bottom-right] == "area"[top-right];
The trouble with this is that it's expressed as a programmer's approach; everything is about variables, not geometry. Constraints should be input from a GUI, like Dreamweaver. To see what this looks like done right, try sketch mode in Autodesk Inventor, where you can draw lines, circles, and arcs and constrain them to each other in various ways. Designers would love it if they could do layout that way, and we could lay off a few thousand Javascript programmers.
- ambrop7 11y agoAs a non-designer, I disagree. I played around with FreeCAD a bit, and I was constantly wishing "just let me enter the damn formula" while messing with those graphical constraints. Or could be it's just implemented badly there...
- M4v3R 11y agoNewest XCode does this in the right way I think. It lets you do most of the stuff from the GUI (and detects conflicts), but you also have the power to enter constraints manually in the code.
- jongold 11y agoThis is coming. https://medium.com/@almonk/design-like-it-s-1999-48ce5f5be14 https://medium.com/@almonk/design-like-it-s-1999-48ce5f5be14 https://medium.com/bridge-collection/modern-design-tools-adaptive-layouts-e236070856e3 https://medium.com/bridge-collection/modern-design-tools-ada...
- Animats 11y agoVersion control for graphical objects is rare in the open source world, but it exists in the commercial world. Autodesk Drawing Compare, which is part of Autodesk Vault, is an example. For film and game work, there's Alienbrain. A game has many non-text assets - maps, motion capture data, 3D models - and they all get revised. The systems which can pull all that together can display, and difference, many graphical formats.
- nostrademons 11y agoXCode does it this way - constraints, but expressed graphically in Interface Builder. It's still a pain in the ass. I'd much rather work with Flexbox than figure out why my iOS layout isn't resizing properly. Even if you get your mental model right perfectly, there's still a large mouse-twitching problem with auto-layout in XCode where it's hard to select exactly which element you're lining up with.