4 ms·
So, just how did Square come up with this design pattern? https://medium.com/square-corner-blog/ziggurat-ios-app-architecture-b54b3f7132f0 https://medium.com/s
by Apocryphon 9y ago
So, just how did Square come up with this design pattern?
https://medium.com/square-corner-blog/ziggurat-ios-app-architecture-b54b3f7132f0 https://medium.com/square-corner-blog/ziggurat-ios-app-archi...
- virmundi 9y agoWhy 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.
- astrange 9y agoWe call that NSNotificationCenter around here.
- zoul 9y agoExcept 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.
- thopkinson 9y agoUgh. Kill me now.
- sctb 9y agoPlease stop posting unsubstantively like this here. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- LeoNatan25 9y ago> 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.