Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Beyond MVC, intruduction to Service Object

Basic intruduction to Service Object

  • Be the first to comment

  • Be the first to like this

Beyond MVC, intruduction to Service Object

  1. 1. BEYOND MVC Oskar Szrajer
  2. 2. MODEL-VIEW-CONTROLLER MVC was one of the seminal insights in the early development of graphical user interfaces, and one of the first approaches to describe and implement software constructs in terms of their responsibilities. Trygve Reenskaug introduced MVC into Smalltalk-76 while visiting Xerox Parc in the 1970s. In the 1980s, Jim Althoff and others implemented a version of MVC for the Smalltalk-80 class library.
  3. 3. THE CLEAN ARCHITECTURE Robert Martin (Uncle Bob)
  5. 5. 7 PATTERNS TO REFACTOR FAT ACTIVERECORD MODELS 1. Extract Value Objects 2. Extract Service Objects 3. Extract Form Objects 4. Extract Query Objects 5. Introduce View Objects 6. Extract Policy Objects 7. Extract Decorators
  6. 6. SERVICE OBJECT (Andrzej Krzywda)
  7. 7. SERVICE OBJECT From MVC to Service Object: 1. Fat model, skinny controller 2. Concerns 3. Observers and callbacks 4. Fat controller