from iteration 1 to iteration 2 l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
From Iteration-1 to Iteration-2 PowerPoint Presentation
Download Presentation
From Iteration-1 to Iteration-2

Loading in 2 Seconds...

play fullscreen
1 / 10

From Iteration-1 to Iteration-2 - PowerPoint PPT Presentation


  • 155 Views
  • Uploaded on

From Iteration-1 to Iteration-2. (Further analysis and Refactoring) Larman, chapters 23 and 24 Glenn D. Blank, CSE432. Where are we with the projects? . End of iteration-1 (see Larman, p. 402):

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

From Iteration-1 to Iteration-2


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
from iteration 1 to iteration 2

From Iteration-1 to Iteration-2

(Further analysis and Refactoring)

Larman, chapters 23 and 24

Glenn D. Blank, CSE432

where are we with the projects
Where are we with the projects?

End of iteration-1 (see Larman, p. 402):

  • For a selected, high risk use case scenario, SSD, domain class diagrams and operation contracts (ADTs) were developed
  • Software implemented and tested (unit, acceptance, usability)
  • Customers have evaluated the partial system
  • Are you there yet?
planning iteration 2
Planning Iteration-2
  • Decide what to work on next, resolve questions, identify major tasks:
    • Reverse engineer from Iteration 1 source code to new class and interaction diagrams: how and why?
    • Usability analysis for the user interface under way
    • Database modeling and implementation under way
  • Another requirements workshop occurs:
    • Write more use cases in fully dressed format
    • Decide which use case(s) will be analyzed, designed, implemented and tested in second iteration
    • How and why should customer be involved in this workshop?
nextgen pos iteration 2
NextGen POS Iteration-2

Iteration-2 will handle additional requirements:

  • Support for third-party external services (i.e., different tax collectors)
  • Complex pricing rules
  • GUI window refreshes when sale total changes

Constraint: only consider these requirements in context of Process Sale use case

monopoly iteration 2
Monopoly Iteration-2
  • Expand basic players moving around board scenario to handle some special square rules:
    • Each player starts with $1500
    • When player lands of Go, player receives $200
    • When player lands on Go-To-Jail, move to Jail
    • When player lands on Income-Tax, player pays minimum of $200 or 10% of worth
new class diagram for monopoly
New class diagram for Monopoly
  • What design pattern has been incorporated?
  • Why is polymorphism a good idea here?
    • Subclasses (of square) have additional attributes (state)
    • Subclasses have additional operations
refactoring
Refactoring
  • Refactoring changing a software system by improving its internal structure without changing its external behavior
    • I.e., restructure code in a disciplined way
    • Make code easier to understand and cheaper to modify
    • Counteracts entropy of software by promoting more order
    • Identify heavily used or time consuming code
  • Refactoring leads to design patterns: why?
    • Smalltalk community used refactoring to develop the Model-View-Controller and other frameworks
when to refractor
When to Refractor?
  • When you do a Code Review or Walkthrough
    • I.e., in subsequent iterations (polymorphism in Monopoly)
  • When you add a function
    • Helps you to understand the code you are modifying
    • Sometimes existing design does not allow you to easily add the feature
  • When you need to fix a bug
    • A bug report is a sign code needs refactoring: Why?
    • Code was not clear enough to see the bug in the first place
refactoring and testing
Refactoring and testing
  • Why does test-driven programming support refactoring?
  • Code to be refactored should already have tests that we can recheck to assure new design doesn’t break anything!
  • Begin refactoring by designing a solid test set for anything new in code under analysis