3 ms·
I love autolayout. I've never felt it's been so easy to learn how to lay stuff out. InterfaceBuilder felt so confusing and arbitrary and like having to learn an
by PittleyDunkin 2y ago
I love autolayout. I've never felt it's been so easy to learn how to lay stuff out. InterfaceBuilder felt so confusing and arbitrary and like having to learn an entirely new language just to get basic behavior working correctly. Plus, it didn't compile to code but to a "nib" file you had to work with in abstruse and unintuitive ways. At least I can debug code; how the hell can i debug a nib? Most of the exposed functionality was difficult to google and assumed you knew what all the obscure icons (like springs and arrows and lines) meant. Very confusing and frustrating.
Meanwhile autolayout was very intuitive. Define your variables, define your constraints, and it just magically works.
- ChrisMarshallNY 2y agoI generally use storyboards, but I do need to occasionally do programmatic stuff. That's a pain, but I can make it work.
- saagarjha 2y agoAre you still using them? It seems like Apple is basically killing them…?
- ChrisMarshallNY 2y agoYeah. The Interface Builder/Storyboard Editor is a slow-ass bug farm, but it works. They are still maintaining and improving it. Apple may be pushing SwiftUI, but they aren’t stupid enough to kill off UIKit/AppKit. I’ll lay odds that most AAA programs are still ObjC.
- Klonoar 2y agoI sound like a maniac whenever I express my desire for Autolayout over HTML/CSS. I will in no way deny the sheer power the latter/reach/etc has and I can see why people like it. Autolayout, while tricky to get at first, pretty much "just works" when I write it nowadays... and the older I get, the more annoying I find the cascade in CSS.