We now acknowledge that complete upfront requirements is an impossible mission. Agile approaches have emerged as a way to manage the creation of systems that can never be completely defined and are certain to change.
But what about architecture and design for these systems? How much is the right amount? How do you plan for emergent design? What is the architect's role on an agile project?
Topics include:
- Role of the agile architect
- Agile design
- Keeping change easy
- Reducing technical risks
- Capturing non-functional and technical requirements and constraints
- Dealing with technical debt
- Addressing architectural concerns within the Scrum framework
- Tests – They're not just for finding bugs
- Architecture anti-patterns
10. Empirical'vs'Defined'Processes'
Defined) Empirical)
Predict'the'Future'
Ini;al'informa;on'and'assump;ons'are'
valid'throughout'the'planning'horizon.'
'
Adapt'to'the'Future'
Frequent'inspec;on/adapta;on'rather'
than'predic;ve'planning'
'
Examples:''
assembly'line,'construc;on,'accoun;ng,'
orchestra'
Examples:''
sales,'marke;ng,'crea;ve'wri;ng,'band'
Plan' Do' P' D' P' D' P' D' P' D'
21. Stabiliza;on:'Plan'vs.'Reality'
Plan"
P D P D P D RC P D P D P D RC P D P D P D RC Release
Actual"
"
P D P D P D RC P D P D P D RC P D P D P D RC Stabilization"Release
*From'Scrum.org’s'
Professional'Scrum'Master'
cer;fica;on'course'
28. Design'PaNern'Structure'
Pattern Name: A descriptive and unique name that helps in identifying and referring to the pattern."
"
Intent: A description of the goal behind the pattern and the reason for using it."
"
Motivation (Forces): A scenario consisting of a problem and a context in which this pattern can be used."
"
Structure: A graphical representation of the pattern, such as Class diagrams and Interaction diagrams."
"
Consequences: A description of the results, side effects, and trade offs caused by using the pattern."
"
Implementation: A description of an implementation of the pattern; the solution part of the pattern."
"
Sample Code: An illustration of how the pattern can be used in a programming language"
"
Known Uses: Examples of real usages of the pattern."
"
Related Patterns: Other patterns that have some relationship with the pattern."
32. Bad'Smells'
The Bloaters
Long Method, Large Class, Data Clumps
The OO Abusers
Type Attribute, State Attribute, Indecent Exposure
The Dispensables
Lazy Class, Dead Code, Data Class
The Couplers
Feature Envy, Message Chains, Middleman
The Change Preventers
Divergent Change, Shotgun Surgery, Non-localized Logic
34. Refactoring'
X ➔ Design Bad
✓ Good
Design
Refactoring
to / towards / away from
Design
Patterns
Bad
Smells
35. Refactoring'
X ➔ Design Refactoring
✓ Good
to / towards / away from
Design
Patterns
Bad
Smells
Encapsulate Field!
Extract Method !
Generalize Type!
Pull Up!
Push Down!
Rename Method !
...!
Bad
Design
36. Agenda'
! Agile and Architecture
! Reducing Technical Risks
! Team Makeup & Roles
! Architecture Anti-Patterns
44. Agenda'
! Agile and Architecture
! Reducing Technical Risks
! Team Makeup & Roles
! Architecture Anti-Patterns
45. Logic'in'Wrong'Layer'
Think about what would need to change in other
layers if one was swapped out or modified.
Presentation
Controller Façade
Business
Integration
Persistence
S
h
a
r
e
d
46. No'Architectural'Vision'
! A single architecture vision should be well
defined and communicated across the team and
organization.
! The vision should map to business goals and
objectives.
! All decisions should be made with this vision in
mind.
47. Swiss'Army'Knife'
! Do not try to anticipate every possible use of the
system and over-design the interfaces - this will
lead to needless complexity.
! Do the simplest thing that works, within
the Architectural Vision.
48. Threading'
Do your homework!
✓ Typically not necessary
✓ Adds massive complexity
✓ Hard to maintain, test, and debug
✓ Rely on the application frameworks
threads
49. Caching'
Do your homework!
✓ Do you even need a cache?
✓ Can you keep everything in memory?
✓ Rely on persistence framework’s caching
50. Ivory'Tower'Architect'
! It is very hard to truly know the best
solutions for design problems if you are
not working (coding) on the project.
! It takes many iterations of a solution
before it finally works - so you can’t
suggest a solution then leave.
51. Custom'Frameworks'
! May seem like a good idea at first. But...
– Who will maintain it?
– Who will upgrade it when it’s depended upon libraries
are upgraded? Java version?
– How long will your new hires need to learn it? Who
will teach them?
! Look for an off-the-shelf solution first.
– You can hire/train people on it easier.
– It will be upgraded for you.