The Agile Manifesto states
Responding to change over following a plan
This implies that we must design our systems to be malleable to change and allow for evolutionary design.
Becoming good at evolutionary systems design requires practice, and sadly,
programming education doesn’t teach this enough! Because of this, I ran a
workshop at $previousEmployer
to teach how you can arrive at a completely
different solution if building it up iteratively vs. having all the
requirements from the start.
The workshop started with a small presentation where I gave some Object-Oriented Design advice (SOLID principles, composition over inheritance), mentioned a few design patterns, and explained what CRC cards were.
The whole workshop only used pen and smallish (important!) index cards; The attendants were asked to split into groups of 2-3 people and design a hotel booking system using CRC cards only.
Wikipedia sums it up pretty well:
Using small cards minimizes the complexity of the design, reduces class responsibilities and keeps designers focused on the essentials of the classes without exploring implementation details. […]
In the first part of the workshop, I gave them all the requirements in one batch and asked them to design the system.
The second part consisted of four iterations. In the first iteration, I asked them to design a hotel booking system with just a subset of the requirements. In the second iteration, I added some more requirements on top of what had been given in iteration one. I asked how they would adjust their design. In the last phase, I gave them all the remaining requirements such that all requirements added up to the same list of requirements in the first part of the workshop.
We wrapped up the workshop by having a conversation about how not knowing the next requirements impacted their design. We did this by comparing the first solution with the final solution from the second part of the workshop.
The value of using CRC cards instead of class diagrams or actual code for this workshop should not be understated. The focus of the workshop was to focus on high-level design and not get bogged down by details. Based on experience, particularly less experienced engineers easily get distracted by details. Using CRC cards allowed the attendees to quickly iterate on different solutions without getting stuck on field naming, syntax, or implementation details.
Credits: Lots of kudos to my friend Mike Ciavarella who taught me a variation of this workshop at SRECon EMEA back in 2019!