330 likes | 562 Views
Agile Software Architecture. Cesario Ramos. Agile Architecture. Classic Architecture. Code focussed Do what is important now Evolves during the project Defers Implementation. Documentation focussed Do what is important in the long term Defined upfront Includes Implementation.
E N D
Agile Software Architecture Cesario Ramos
Agile Architecture Classic Architecture • Code focussed • Do what is important now • Evolves during the project • Defers Implementation • Documentation focussed • Do what is important in the long term • Defined upfront • Includes Implementation
Deliver Fast • Increase ROI. • Early validation of your business case. • Give customers what they want when they want it.
Defer Commitment • Reduce risk. • Decide based on most possible knowledge. • Keep yours and the customers options open.
Eliminate Waste • Support something that does not add value now. • Have the architecture slow you down
so we need architecture to... • Be the simplest solution to support the current functionality. • Change without increasing risk or waste. • Change economically. • Change without making the software worse. • Evolve in early and refine later iterations.
Comparing with engineering
Plan the work, work the plan • Based on concrete analysis using physics and mathematics. • Based on things you know and change slowly. • Plan, Do, Review.
Software Development Civil Engineering • Requirements • Design • Coding • Testing • Release • Analysis • Design • Construction • Inspection • Release Coding is NOT Construction
and then.... • When do we test our requirements? • When do we test our design? • What if we overdevelop it? • How do you handle changes? • Requirements • Architecture and Design • Coding • Testing • Release
High level steps. • Establish vision and high level requirements. • Perform Lightweight domain analysis. • Work on architectural components only when actually needed. • Consider ROI in the decision making process • Evolve the architecture during the project • Do not let quality decay. • Refactor to the Open Closed. • Validate and adapt.
Lean architecture using DCI • What the system IS • Captures what is stable • The domain classes • What the system DOES • User stories. • Business objects.
Open Closed Principle • A module should be open for extension and closed for modification
Refactoring • Refactoring as Fowler proposed • Improving the design of existing code. • Refactoring to be Open Closed. • For handling future requirements. • Provides Value by • Reducing Risk • Reducing Waste
Separation Of Concerns • Low Coupling • Minimal dependencies • Minimal side effects • High Cohesion • Single responsibility • One reason to change
Tests Drive Design • Forces you to look at your public API. • Forces you to think about cohesion. • Forces you to think about coupling. • Forces you to not produce redundancies.
Test Driven Development • Documents your intent • Investigates the nature of the code you are developing • Report on progress
Summary • Agile Architecture helps you reduce risk and waste. • OO/XP principles and practices make evolving architecture possible. • Particular approach depends upon knowledge of domain, technology and project size.
Agile Software Architecture Cesario Ramos