Why Design Matters
Any code can work once. The question that separates junior from senior is whether it can still be changed a year later. Software design is about writing code that stays soft โ easy to change.
You can build things now - that's a real milestone. The next level of skill isn't making code work (you can do that); it's making code that stays easy to change as it grows and as requirements shift. That's software design, and it's what separates a junior developer from a senior one. Badly-designed code works right up until you need to change it, then fights you every step. This session is about why structure matters.
Software is meant to be soft
The 'soft' in software means changeable - and change is constant. Requirements shift, features get added, bugs get fixed. Good design keeps code changeable; bad design lets it harden into something rigid and brittle.
The symptoms of poor design
You can recognise poorly-designed code by how it feels to work with - and those feelings are signals worth heeding.
| Symptom | What it means |
|---|---|
| 'I'm scared to change this' | Too tangled - changes ripple unpredictably |
| One change breaks distant things | Poor separation - things are too coupled |
| Can't find where to make a change | No clear structure or responsibilities |
| Copy-pasted logic everywhere | Missing abstraction - fix it in 10 places |
None of these are about the code failing to run - it runs fine. They're about the code being hard to <i>change</i>, which is where most of a developer's time actually goes. Learning to notice these symptoms, and the design ideas that prevent them, is the heart of this course.
Design for the long life of code
- Making code work is the baseline; keeping it easy to change is the real skill.
- Software lives for years, changed many times - design decides how cheap change stays.
- Poor design has symptoms - fear of changing, ripple effects, no clear place for things.
- Good design keeps code soft - a change is local, confident, and safe.
๐ฏ Key takeaways
- Making code work is the baseline; making it stay easy to change is what separates junior from senior developers.
- Software lives for years and is changed many times - design determines how cheap those changes stay.
- Poor design shows in feelings: fear of changing code, changes rippling to distant places, no clear place for things.
- Good design keeps code 'soft' - changeable - so a change is local, confident and safe rather than terrifying.
Frequently asked
I can already build working things. Isn't caring about 'design' premature or over-thinking?
It's a fair worry, and the answer is nuanced: you shouldn't over-engineer or obsess over design for tiny throwaway scripts, but caring about design becomes genuinely important the moment you build anything you'll keep and change - which is most real software. Here's the key insight that reframes it: making code work is only the first, easiest part of its life; the far larger cost and effort of software comes from changing it over time - adding features, fixing bugs, adapting to new requirements - and how you designed it determines whether those changes are cheap and safe or expensive and risky. Working-but-badly-designed code is a trap: it functions today, so it feels done, but the first time you need to modify it, poor design makes you pay - you're afraid to touch it, one change breaks something unrelated, you can't find where things live, and simple modifications become slow and bug-prone. So design isn't over-thinking; it's thinking about the part of software's life that actually dominates - its ongoing change - rather than only the moment it first works. That said, the caution against premature design is real: you shouldn't build elaborate abstractions and patterns for a small script, speculatively design for requirements you don't have, or let 'good design' become gold-plating that stops you shipping. The skill is proportion - simple things stay simple, and design effort grows with the size, longevity, and change-rate of what you're building. For a one-off script, working is enough. For an app you'll grow, a project others will touch, or anything that'll live and change, design is what keeps it maintainable and saves you from the tangle. And the good news is that good design at the level you need it isn't heavy - it's mostly sensible habits (separating concerns, not duplicating logic, clear structure, the right simple patterns) that this course teaches, applied with judgement. So don't over-design toys, but do learn design and apply it to real, lasting work - because for anything you'll change, design isn't premature, it's the difference between code that stays a pleasure and code that becomes a burden. You've reached the point where 'it works' is no longer the frontier; 'it stays easy to change' is, and that's exactly what design gives you.
How do I know if my code is well-designed or badly-designed?
The most reliable signal is how it feels to change your code, because design is fundamentally about changeability - and those feelings are honest indicators worth learning to read. Ask yourself, when you go to modify your code: Do I know where to make the change, or do I have to hunt around? Am I confident the change is contained, or afraid it'll break something elsewhere? When I do change one thing, do unrelated things break unexpectedly? Do I find myself changing the same logic in many places because it's copy-pasted? Well-designed code answers these reassuringly - there's an obvious place for each change, changes stay local and predictable, and shared logic lives in one place. Badly-designed code answers them painfully - you're scared to touch it, changes ripple to distant parts, you can't find where things belong, and you're editing the same idea in ten scattered spots. Crucially, these signals aren't about whether the code runs (badly-designed code runs fine); they're about whether it's pleasant and safe to work with, which is where design shows. Beyond the feel of changing it, some concrete smells suggest design problems: functions or files that are very long and do many unrelated things (poor separation of concerns); the same code duplicated in multiple places (missing abstraction); parts of the code that are tightly wired to many other parts, so you can't touch one without understanding all of them (too much coupling); unclear responsibilities where it's hard to say what a piece of code is 'for'; and difficulty testing a piece in isolation (often a sign it's too entangled). Conversely, signs of good design include: clear, well-named pieces each with an obvious single job; the ability to understand and change one part without holding the whole program in your head; shared logic in one authoritative place; and components that are loosely connected so you can modify or replace one without disturbing others. You develop the judgement to recognise these through experience - building things, feeling the pain of poor design when changes fight you, and noticing the relief of good design when they don't - and this course names the ideas and patterns so you can spot and apply them deliberately. A practical habit: periodically, or when something feels hard to change, step back and ask 'why was that change harder than it should be?' - the answer usually points at a design issue (too coupled, duplicated, unclear structure) that you can then improve. Over time you'll internalise the sense of well-structured code. For now, the simplest test is the changeability one: code you can change easily, locally, and confidently is well-designed; code you're afraid to change and that breaks in surprising ways when you do is badly-designed - regardless of whether it currently works. Learn to feel that difference, and you're learning design.
Related lessons
Separation of Concerns
The most important design idea of all: keep different responsibilities in different placesโฆ
Software Design & ArchitectureDesigning for Change (Without Over-Engineering)
Good design prepares for change โ but over-preparing for changes that never come is its owโฆ
Intermediate PythonCleaner Code: Pythonic Idioms
Python rewards a certain style โ comprehensions, unpacking, good names and small readable โฆ