4 ms·
Couldn't agree more, if you regularly have 400 line classes you're doing it wrong.
by fleitz 11y ago
Couldn't agree more, if you regularly have 400 line classes you're doing it wrong.
- girvo 11y agoThe authors point, is that most people in the native app world are doing it wrong. And in my experience, he's right.
- TheOtherHobbes 11y agoSome of the specialised iOS/OS X view controllers - e.g. UIImagePickerController - probably have a lot more than 400 lines. Other classes, like NSLayoutManager, look a lot like most of a view controller. But they're not officially a subclass of UIViewController, because they don't link directly to a view - even though they could have been designed to. Apple makes a big deal of MVC, but I sometimes wonder if anyone knows what MVC really is - except possibly a design pattern for generating disagreements about MVC.