News for hackers. Stuff that matters.
Re:Much ado about iOS app architecture by Apocryphon on Wednesday November 08, 2017 @09:46PM (#15659393)
So, just how did Square come up with this design pattern?

https://medium.com/square-corner-blog/ziggurat-ios-app-archi...

Re:Much ado about iOS app architecture by LeoNatan25 on Thursday November 09, 2017 @02:40AM (#15660596)
> Problems With MVC

> Goes on to list non-MVC problems

How many times have we seen this sort of nonsense? Facebook tried to push their observer pattern Redux on the basis that MVC is bad, and the presenter displayed something that was not MVC. The article of this topic mentions exactly this issue—I guess people this day and age do not know what MVC is.

Re:Much ado about iOS app architecture by virmundi on Wednesday November 08, 2017 @09:54PM (#15659434)
Why not just use a message bus? Push new data into bus. Things listen for that. Push reply on bus. Things listen for that. Update as necessary.
Re:Much ado about iOS app architecture by astrange on Wednesday November 08, 2017 @11:22PM (#15659826)
We call that NSNotificationCenter around here.
Re:Much ado about iOS app architecture by zoul on Thursday November 09, 2017 @02:03AM (#15660453)
Except you can’t pull a well-typed object out of the notification. And have to use a string constant to subscribe. And if you happen to want to filter the notification stream or even gasp map over it, you’re on your own. The amount of boilerplate and subtle bugs around NSNotificationCenter is really not nice.
Re:Much ado about iOS app architecture by thopkinson on Thursday November 09, 2017 @01:01PM (#15664409)
Ugh. Kill me now.
Re:Much ado about iOS app architecture by sctb on Friday November 10, 2017 @05:21PM (#15673565)
Please stop posting unsubstantively like this here.

https://news.ycombinator.com/newsguidelines.html