๐Ÿ›๏ธ
๐Ÿ›๏ธ Software Design & Architecture ยท ARCH-101 ยท Session 6 of 6

Designing for Change (Without Over-Engineering)

Good design prepares for change โ€” but over-preparing for changes that never come is its own trap. The real skill is the balance: enough structure to stay flexible, not so much that you drown in it.

โฑ 9 min read๐Ÿ“… Updated 2026-08-06๐Ÿ“Š Tables, charts & examples

Everything in this course points one way: design so your software can change. But there's a crucial counter-truth - you can over-design, building elaborate flexibility for changes that never come, drowning simple problems in patterns and abstraction. The mark of a truly good designer isn't applying every pattern; it's judgement - enough structure to stay flexible, not so much that you're lost in it. This final session is about that balance, the wisdom that ties design together.

The two failure modes

Design goes wrong in two opposite directions - too little structure, and too much. Both hurt.

Under-design (too little)Over-design (too much)
Tangled, rigid, scary to changeDrowning in layers and patterns
No separation, everything coupledAbstraction for needs that never came
Changes ripple everywhereSimple change = navigate 10 files
Fixed by adding structureFixed by removing structure

Under-design is the tangle we've been fighting. But over-design is just as real: speculative flexibility, patterns applied for their own sake, abstraction layers 'in case we need them' - all adding complexity that makes the code harder, not easier, to work with. The goal isn't maximum design; it's <i>appropriate</i> design.

The judgement: simple until proven otherwise

The guiding wisdom is to keep things simple and add structure only when a real need demonstrates it - not in speculation about imagined futures.

๐ŸŽฏ
Solve the problem you have, not the one you imagine you might have. Two famous principles capture it: YAGNI ('You Aren't Gonna Need It') - don't build flexibility for requirements that don't exist yet - and 'do the simplest thing that could possibly work'. Start simple. When a real need for flexibility appears (you're actually adding the third variation, the change actually keeps happening), then introduce the structure to handle it, guided by the real pattern you're seeing. This way your design is shaped by actual needs, not guesses - and you avoid both the tangle of no design and the maze of too much. Refactor toward patterns when reality calls for them, don't reach for them speculatively.

Design is judgement, not rules

Ultimately, design is a craft of judgement you build through experience - knowing which principle or pattern fits this situation, and when none does.

The mature designer's habits
Start simpleAdd structure when reality demands it
Know the patternsBut apply them only where they fit
Refactor continuouslyImprove design as understanding grows
Optimise for changeBut don't over-build for imagined change

You now have the core ideas - separation of concerns, state machines, events, composition, reversibility - and, just as importantly, the wisdom to apply them in proportion. That balance is the real craft of a senior developer: not knowing the most patterns, but knowing which to use, when, and when to keep it simple. Keep building, keep refactoring, and your design judgement will grow with every project.

The craft of good design

  • Two failure modes: under-design (tangle) and over-design (needless complexity).
  • YAGNI - don't build flexibility for needs that don't exist yet.
  • Simple until proven otherwise - add structure when a real need shows itself.
  • Design is judgement - know the patterns, apply them in proportion, refactor as you learn.

๐ŸŽฏ Key takeaways

  • Good design prepares for change - but over-designing for changes that never come is its own trap.
  • The two failure modes are under-design (tangled, rigid) and over-design (drowning in needless patterns and layers).
  • YAGNI and 'the simplest thing that could work': start simple, add structure only when a real need demonstrates it.
  • Design is judgement, not rules - know the patterns, apply them in proportion, and refactor as your understanding grows.

Frequently asked

How do I know when to add structure/a pattern versus keeping it simple?

The reliable guide is to let real, demonstrated need drive structure rather than speculation - add a pattern or abstraction when you're actually facing the problem it solves, not when you imagine you might someday. Concretely: start with the simplest thing that works for your current, actual requirements, and resist adding flexibility, layers, or patterns for hypothetical future needs (that's what YAGNI - 'You Aren't Gonna Need It' - warns against, because imagined future requirements often never materialise or arrive differently than guessed, leaving you with complexity that served no purpose). Then, watch for real signals that structure is now warranted. A powerful one is the rule of three: the first time you need something, just do it directly; the second time you do something similar, note the duplication but maybe tolerate it; by the third time you're repeating a pattern, that's real evidence it's worth abstracting - now you have concrete examples showing the actual shape of the variation, so you can build the right abstraction rather than guessing. Other real signals: a change keeps happening repeatedly (so making that kind of change easier is genuinely valuable); the code is actually getting hard to work with in a specific way (tangled, duplicated, hard to test) - fix the real pain, not an imagined one; you're genuinely adding the third variation of something (so a structure to handle variations now pays off). In each case, the trigger is something real and present - actual duplication, actual repeated change, actual difficulty - not a prediction. The mindset is 'refactor toward patterns when reality reveals the need', meaning you let the design emerge and improve in response to what your code actually turns out to require, rather than imposing elaborate structure upfront. This keeps you between the two failure modes: you avoid under-design because you do add structure when real needs appear, and you avoid over-design because you don't add it speculatively. Practically, when you're tempted to add a pattern or abstraction, ask: 'Am I solving a problem I actually have right now, or one I'm imagining I might have?' If it's a real, present problem (this code is genuinely painful to change, this duplication is real and repeated), add the structure. If it's speculative ('this might need to be configurable someday', 'we could need to support other databases eventually'), resist - keep it simple, and add the flexibility if and when that someday actually arrives, at which point you'll understand the real requirement far better than you do now guessing. Also favour structure that's easy to add later over structure that's hard to remove: keeping things simple leaves you flexible to add what's needed when needs clarify, whereas premature complex abstractions are costly to unwind. Experience sharpens this judgement - you'll get a feel for which needs are real and imminent versus speculative - but the durable rule is: simple by default, add structure in response to demonstrated need (duplication, repeated change, actual pain, the third instance), not in anticipation of imagined futures. That keeps your design driven by reality, appropriately structured for what you actually face, and free of both tangle and needless complexity.

If I should keep things simple, why learn all these patterns at all?

Because knowing the patterns is exactly what lets you keep things appropriately simple and recognise when simplicity is no longer serving you - the patterns aren't things to apply everywhere, they're tools you reach for when a real problem matches them, and you can only make that judgement well if you know them. Here's the resolution of the apparent tension: 'keep it simple' doesn't mean 'stay ignorant of design' or 'never add structure'; it means 'don't add unnecessary complexity, and add structure only when warranted'. To do that well, you need to know the patterns for two reasons. First, so you can recognise when a situation genuinely calls for one: when you're drowning in boolean flags and scattered status checks, knowing about state machines lets you see 'ah, this should be a state machine' and reach for the right tool - without that knowledge, you'd struggle on with the tangle, not realising there's a clean solution. The patterns are the vocabulary for recognising recurring design problems and their proven solutions, so knowing them means you can spot 'this is that kind of problem' and apply the fitting structure when reality demands it. Second, knowing patterns helps you keep things simple correctly, because you understand what good structure looks like and can apply just enough - you're making informed choices about when simplicity suffices and when a bit of structure genuinely helps, rather than either blindly complicating everything or stubbornly under-structuring things that need it. Someone who doesn't know the patterns can't judge well: they might avoid all structure (and end up with tangle) or, having heard patterns are 'good', apply them cargo-cult style everywhere (over-engineering) - both from lacking the understanding to judge. Knowing the patterns and their trade-offs is what enables the judgement to use them in proportion, which is the actual skill. Think of it like a craftsperson knowing many tools: they don't use every tool on every job - most jobs need just a few simple tools - but knowing the full toolkit means that when a job needs a specialised tool, they recognise it and have it ready, and they also know when the simple tool is the right one. A carpenter who only knows a hammer treats everything as a nail; one who knows many tools uses the hammer when it fits and the right specialised tool when that fits, and knows when the simplest approach suffices. So learning the patterns isn't in tension with keeping things simple - it's what makes 'keep it simple, add structure when needed' possible to do well, because you can only recognise 'when needed' and choose the right structure if you know what's available. The goal isn't to apply the patterns; it's to have them in your toolkit so that when a real problem matches one, you recognise it and use it appropriately, and otherwise you keep things simple with the confidence of knowing you're not missing a better structure. Knowledge of patterns plus the judgement to apply them sparingly and fittingly is exactly what separates good design from both under- and over-engineering. Learn them so you can wield them wisely - including wisely choosing not to use them most of the time.

๐ŸŽ“ Final session complete

You've finished the Software Design & Architecture sessions

Now lock it in with the coursework.

Do the assignments โ†’

Related lessons

More in this course

Course home → · Browse all courses →