Episode 18 – Component Case Study

Clean Code

Episode 18

This episode reviews the component principles.

  • Overview
  • Payroll Review
    • Controller use Builder to request data structure that they pass to interactor that they acquire from Factory. The interactor manipulate entity and database which create response data structure. The response data structure pass into Presenter which create view model data structure, which driven into view.
  • Ad Hoc Packaging
  • Cohesion
    • High level abstraction should not depend on low level concrete details
  • Coupling
    • No cycle
    • Concrete components depends on abstract components
    • Unstable components depends on stable components
  • Families and Metrics
    • Separating use cases and component that doesn’t belong together
  • References
    • Agile Software Development, Robert Martin
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s