MVVM ( C <-> VM <-> M)->->
- testable components
- fits for MVC
- works best with binding
Struts
a java web framework similar to MVC
ReactiveCocoa
works best with MVVM with sending Signal and binding mechanism
Dependancy Injection
Instead of taking all responsibility of a single class, let them to other classes.
Use interface or protocol to define what classes should do and outsiders are not needed to know the implementations and guarantee calling on the methods on interfaces or protocols
沒有留言:
張貼留言