• Like
Beyond MVC, intruduction to Service Object
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Beyond MVC, intruduction to Service Object

  • 84 views
Published

Basic intruduction to Service Object

Basic intruduction to Service Object

Published in Software
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
84
On SlideShare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. BEYOND MVC Oskar Szrajer
  • 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. THE CLEAN ARCHITECTURE Robert Martin (Uncle Bob) http://blog.8thlight.com/uncle-bob/2012/08/13/the-clean-architecture.html
  • 4. HEXAGONAL ARCHITECTURE (A.K.A. PORTS AND ADAPTERS) Alistair Cockburn http://alistair.cockburn.us/Hexagonal+architecture
  • 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 http://blog.codeclimate.com/blog/2012/10/17/7-ways-to-decompose-fat-activerecord-models/
  • 6. SERVICE OBJECT https://t.co/tj2dBYT8f3 (Andrzej Krzywda)
  • 7. SERVICE OBJECT From MVC to Service Object: 1. Fat model, skinny controller 2. Concerns 3. Observers and callbacks 4. Fat controller http://stevelorek.com/service-objects.html