Towards a Refactoring Benchmark - PowerPoint PPT Presentation

About This Presentation
Title:

Towards a Refactoring Benchmark

Description:

Towards a Refactoring Benchmark. Serge Demeyer. Lab on Reengineering (LORE) University of Antwerp ... (i.e. Which refactorings are good ? How do tools support ... – PowerPoint PPT presentation

Number of Views:10
Avg rating:3.0/5.0
Slides: 10
Provided by: serged3
Category:

less

Transcript and Presenter's Notes

Title: Towards a Refactoring Benchmark


1
Towards a Refactoring Benchmark
  • Serge Demeyer
  • Lab on Reengineering (LORE)
  • University of Antwerp
  • Presentation for the ELISA - Workshop
  • (September 2003, Amsterdam - The Netherlands)

2
Story 1
Test provider type
Test external attribute
Test self type
TransformSelf Type Checks
TransformClient Type Checks
Transform Conditionals into Registration
Test object state
Test null values
Factor OutStrategy
IntroduceNull Object
Factor OutState
3
Story 2
Boxes Classes Width methods added Height
methods overridden Color method extended
4
Story 3
Split B into X and B'
A
A'
/ Hierarchy nesting level increased
/ (delta_HNL(B') gt 0) and / Number of methods
decreased / ((delta_NOM(B') lt 0) / Number of
attributes decreased / or (delta_NOA(B') lt 0))
X t() u()
B t() u() v() w()
B' v() w()
5
Classification
Curative (i.e. Which refactorings are good ? How
do tools support refactoring ?)
Retrospective (i.e. Which Refactoringshave been
Applied ?)
Predictive (i.e. Where to applyWhich Refactoring
?)
6
Benchmark proposal
  • Case studies
  • Toy Example(LAN -Simulation)
  • Industrial System(VisualWorks Swing)
  • Public Domain(HotDraw ET)
  • Open-source (Mozilla)
  • Characteristics
  • Life Cycle(analysis, design, ...)
  • Evolution(scale, iterations, ...)
  • Domain(problem, solution, ...)

7
Case Study LAN Simulation
Add functionality
Refactor
8
Case Study LAN Simulation
  • Curative ?
  • Version 0.x is "better" than version 0.x-1 ?
  • Does tool P support 0.x ? 0.x1 ?
  • Predictive ?
  • Does technique Q predict 0.x ? 0.x1 ?
  • Retrospective ?
  • Does technique R dicover 0.x ? 0.x1 ?

9
Discussion
  • Does it makes sense to work out this LAN
    benchmark ?
  • Would you use it ? o yes o no
Write a Comment
User Comments (0)
About PowerShow.com