KEMBAR78
Protocol oriented programming | PDF
Arif Akbarul Huda
Coding | Writing | Sharing
2013-now QISCUS & Univ. Amikom Yogykarta
Twitter : @omayib
Medium : www.medium.com/@omayib
The P.O.P implementation
Modular is Better
Functionality
Reliability
Usability Efficiency
Maintainability
0
5
10
The High Quality Software Criteria
(ISO 9126-1 software quality model)
*i was ignore the Portability factor
Maintainability
“Maintainability is impacted by code
readability or complexity as well as
modularization” ..
“Also the ability to verify (or test) a
system, i.e. testability, is one of the
subcharacteristics of maintainability. “
5 Principles
to meet maintainability criteria
Loose coupled is better
The Reality
With a simple case
Reality
Inside a UIViewController …
●
Managing data from local remote
●
Managing data from local cache
●
Managing TableView and its DataSource
●
Managing UIViewController‘s state
●
Managing progressViewHUD‘s state
●
Managing other...
Reality
you are breakfest with a spagetthi code
View
Controller
Model
XxProgressHUD.show()
XxProgressHUD.hide()XxProgressHUD.show()
Decentralized :
A Bad Practice
https://github.com/omayib/ModularIsBetter

Protocol oriented programming