• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Single Responsibility Principle @ AgileCamp Feb, 27 2010
 

Single Responsibility Principle @ AgileCamp Feb, 27 2010

on

  • 1,606 views

 

Statistics

Views

Total Views
1,606
Views on SlideShare
1,595
Embed Views
11

Actions

Likes
0
Downloads
3
Comments
0

3 Embeds 11

http://www.slideshare.net 7
http://www.linkedin.com 2
https://www.linkedin.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Single Responsibility Principle @ AgileCamp Feb, 27 2010 Single Responsibility Principle @ AgileCamp Feb, 27 2010 Presentation Transcript

    • SRP Andrea Francia
      • What is SRP?
      • Why you should apply SRP?
      • Why you shouldn’t apply SRP?
    • The Principle
      • Single Responsibility Principle:
      • “ A class should have only one reason to change”
      • from the PPP Book: “Agile Software Development Principle, Patterns, and Practice” by Robert C. Martin
    • Problems without SRP
      • Problems:
        • Linking of gui.lib in CalcApp
        • If a change in GraphApp forces a change in Rectangle we may be force to rebuild, retest and redeploy CalcApp.
    • Applying SRP
      • Is better? Depends
        • More Complex
        • Less Fragile … but in respect of what type of change?
    • Violation example: use of wxWidgets instead of wxBase
    • Violation example: bad use of wxWidgets
      • Solution: extract responsibiliy
    • Too much SRP
    • Bad use of JPA Entities
    • Thanks
      • Andrea Francia
        • [email_address]
        • http:// www.andreafrancia.it /
        • http:// blog.andreafrancia.it /