Decompose Conditional     Consolidate Conditional ExpressionConsolidate Duplicate Conditional Fragments                   ...
Decompose ConditionalComplicated condition              Simple Function                     Extract Method
Decompose Conditional                Same Level
Consolidate Conditional ExpressionConditions              Return Same Result                      Extract Method
Consolidate Conditional Expression
Consolidate Duplicate Conditional FragmentsSame Fragment of Code is in all Branch                 Move it Outside
Consolidate Duplicate Conditional Fragments
Thank you!
Upcoming SlideShare
Loading in …5
×

Decompose conditional

701 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
701
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Decompose conditional

  1. 1. Decompose Conditional Consolidate Conditional ExpressionConsolidate Duplicate Conditional Fragments charsyam@naver.com
  2. 2. Decompose ConditionalComplicated condition Simple Function Extract Method
  3. 3. Decompose Conditional Same Level
  4. 4. Consolidate Conditional ExpressionConditions Return Same Result Extract Method
  5. 5. Consolidate Conditional Expression
  6. 6. Consolidate Duplicate Conditional FragmentsSame Fragment of Code is in all Branch Move it Outside
  7. 7. Consolidate Duplicate Conditional Fragments
  8. 8. Thank you!

×