Re:Do you worry about the quality of code?
by xackpot on Sunday October 27, 2013 @10:21PM
(#6624722)
Awesome. This is something I try to follow. I use the same concepts that you have listed here. Conforming to the MVC pattern makes it easier to develop. Since my team is using Parse, we don't have to worry about Data Objects and Web Services, but we do have Controllers, Data Managers and Utility functions in our app.
I checked out your github account for the HN app and it is a beautifully written one. Great work.
* Controllers
* Data Objects
* Utility UI functions (making shadows, or anything that can happen anywhere)
* Data Managers (sometimes Singletons)
* Web Services
If I start with this model in my head, the code is self organizing because I'm not writing data parsing in a controller because I KNOW with 99% certainty that I'm going to parse something later in another controller or something even higher is going to handle that data at some point in the future.
This kind of abstraction is how I do it currently, and I've only gotten here through experience, and I'm sure that I'll find even better ways as I continue to code into the future (I'm already thinking of base iOS project templates that contain that structure already).