Your SlideShare is downloading. ×
0
Code Metrics & Design Patterns Measuring the effects of Design Patterns David Kemp Melbourne Patterns, March 2007
Code Metrics & Design Patterns <ul><li>What are code metrics? </li></ul><ul><li>Example metrics. </li></ul><ul><li>Limitat...
Code Metrics <ul><li>Measuring software: </li></ul><ul><li>Size </li></ul><ul><li>Complexity </li></ul><ul><li>Coupling an...
Examples <ul><li>Fanout </li></ul><ul><li>% Code duplication </li></ul><ul><li>… </li></ul>
Limitations <ul><li>Not all aspects of design are measurable </li></ul><ul><li>Opinions differ on “good design” </li></ul>...
Code Metrics & Design Patterns <ul><li>Examples taken from: </li></ul><ul><li>Brian Huston, </li></ul><ul><li>The effects ...
Mediator
Bridge
Visitor
Stack Before Refactoring
Stack After Refactoring
References & Resources <ul><li>Books & Articles: </li></ul><ul><li>Brian Huston, The effects of design pattern application...
Upcoming SlideShare
Loading in...5
×

Measuring the Effects of Design Patterns by David Kemp

1,160

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,160
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Transcript of "Measuring the Effects of Design Patterns by David Kemp"

  1. 1. Code Metrics & Design Patterns Measuring the effects of Design Patterns David Kemp Melbourne Patterns, March 2007
  2. 2. Code Metrics & Design Patterns <ul><li>What are code metrics? </li></ul><ul><li>Example metrics. </li></ul><ul><li>Limitations. </li></ul><ul><li>Examples of measuring before & after refactoring to a pattern. </li></ul><ul><li>Metrics tools. </li></ul><ul><li>References </li></ul>
  3. 3. Code Metrics <ul><li>Measuring software: </li></ul><ul><li>Size </li></ul><ul><li>Complexity </li></ul><ul><li>Coupling and cohesion </li></ul><ul><li>(Not to be confused with project metrics) </li></ul>
  4. 4. Examples <ul><li>Fanout </li></ul><ul><li>% Code duplication </li></ul><ul><li>… </li></ul>
  5. 5. Limitations <ul><li>Not all aspects of design are measurable </li></ul><ul><li>Opinions differ on “good design” </li></ul><ul><li>Unintended effects of measuring </li></ul>
  6. 6. Code Metrics & Design Patterns <ul><li>Examples taken from: </li></ul><ul><li>Brian Huston, </li></ul><ul><li>The effects of design pattern application </li></ul><ul><li>on metric scores. </li></ul><ul><li>The Journal of Systems and Software, 2001. </li></ul>
  7. 7. Mediator
  8. 8. Bridge
  9. 9. Visitor
  10. 10. Stack Before Refactoring
  11. 11. Stack After Refactoring
  12. 12. References & Resources <ul><li>Books & Articles: </li></ul><ul><li>Brian Huston, The effects of design pattern application on metric scores. The Journal of Systems and Software, 2001. </li></ul><ul><li>Michele Lanza, Radu Marinescu, Object-Oriented Metrics in Practice </li></ul><ul><li>Tools: </li></ul><ul><li>Eclipse Metrics (http://www.eclipseplugincentral.com/) </li></ul><ul><li>Complexian (http://www.martyandrews.net/resources/complexian.html) </li></ul><ul><li>Simian (http://www.redhillconsulting.com.au/products/simian/) </li></ul><ul><li>IPlasma (http://loose.upt.ro/iplasma/). </li></ul><ul><li>JHawk (http://www.virtualmachinery.com/jhawkprod.htm) </li></ul><ul><li>Checkstyle (http://checkstyle.sourceforge.net/) </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×