Latest / CyberSecurity Summary / Design It!: From Programmer to Software Architect (The Pragmatic Programmers)
Transcript
- 0:00Speaker 1: You know, I feel like it's pretty much a universal
- 0:02Speaker 1: truth of the digital age that well, we all just
- 0:05Speaker 1: want to build things quickly.
- 0:06Speaker 2: Oh absolutely right, Like.
- 0:07Speaker 1: You get this great idea, you sit down at your
- 0:09Speaker 1: keyboard and you just want to immediately start writing code.
- 0:13Speaker 1: It feels productive, it feels like you're, you know, actually
- 0:16Speaker 1: making a thing.
- 0:17Speaker 2: Yeah, the momentum is intoxicating. But jumping straight into a
- 0:22Speaker 2: code editor like that, it's a lot like deciding to
- 0:25Speaker 2: build a skyscraper and starting by just pouring a massive
- 0:30Speaker 2: truckload of concrete into a random field.
- 0:33Speaker 1: Yeah exactly. I mean you might end up with a wall,
- 0:35Speaker 1: but you're probably just going to sink into a swamp.
- 0:37Speaker 2: Right. It's a disaster waiting to happen.
- 0:39Speaker 1: And that's why we're doing this deep dive today, because
- 0:41Speaker 1: whether you are a junior programmer trying to level up,
- 0:44Speaker 1: or maybe a team lead managing some huge project, or
- 0:47Speaker 1: someone who's insanely curious about how these massive digital systems
- 0:51Speaker 1: are built without you know, collapsing in on themselves. Understanding
- 0:55Speaker 1: software architecture is the ultimate shortcut.
- 0:57Speaker 2: It really is. It saves you from so much which
- 1:00Speaker 2: disastrous expensive rework down the.
- 1:02Speaker 1: Line exactly, So today we are diving into Michael Keeling's
- 1:06Speaker 1: book Design It from Programmer to software architect, and our
- 1:11Speaker 1: mission here is to figure out how to evolve from
- 1:14Speaker 1: just writing code to truly designing software.
- 1:17Speaker 2: Systems and spoiler alert for everyone listening, it involves a
- 1:21Speaker 2: lot less typing and well, a whole lot more talking
- 1:25Speaker 2: to humans.
- 1:25Speaker 1: Yes, okay, let's unpack this. Yes, because I think there's
- 1:28Speaker 1: this very stubborn myth in the tech world of the
- 1:32Speaker 1: Ivory Tower architect.
- 1:34Speaker 2: Oh yeah, the solitary wizard in the glass.
- 1:36Speaker 1: Office, right, drawing these highly complex boxes and lines on
- 1:39Speaker 1: a whiteboard, and then they just slide those diagrams under
- 1:42Speaker 1: the door for the lowly developers to actually build. But
- 1:45Speaker 1: Keeling completely dismantles that, doesn't he.
- 1:47Speaker 2: He completely tears it down. I mean, it's a fundamental
- 1:49Speaker 2: shift in perspective. When you're a programmer, your primary audience
- 1:53Speaker 2: is the compiler. Your job is to give highly specific
- 1:56Speaker 2: instructions to a machine.
- 1:57Speaker 1: Right, it's you and the computer.
- 1:59Speaker 2: Exactly. When you step into the role of a software architect,
- 2:02Speaker 2: your primary audience suddenly becomes people. The technology is almost
- 2:06Speaker 2: secondary to the sociology.
- 2:07Speaker 1: I love that. So architecture isn't like being that wizard
- 2:10Speaker 1: casting spells. It's more like being a city planner.
- 2:14Speaker 2: That's a great way to look at it.
- 2:15Speaker 1: Because you can design the coolest, most technologically advanced skyscraper
- 2:18Speaker 1: in the world, but if it doesn't connect to the
- 2:22Speaker 1: roads people actually drive on, or have plumbing that connects
- 2:25Speaker 1: to the city grid, it's totally useless.
- 2:27Speaker 2: Right, if you get the human element wrong, I don't
- 2:29Speaker 2: care how elegant your code is, it just won't save you.
- 2:32Speaker 2: Architecture is about understanding the humans using the system, the
- 2:36Speaker 2: humans paying for it, and the humans building it.
- 2:39Speaker 1: So how does an architect actually balance what the code
- 2:42Speaker 1: needs with what all these different humans need? Because that
- 2:44Speaker 1: sounds exhausting.
- 2:46Speaker 2: What's fascinating here is that the human element doesn't just
- 2:49Speaker 2: influence the code, it actively dictates it. Keeling brings in
- 2:53Speaker 2: the heart principles of design thinking to navigate all this.
- 2:57Speaker 1: Okay, heart, that's an acronym, right, let's break those down.
- 3:00Speaker 2: Yeah, So hart HG is the human rule. It just
- 3:03Speaker 2: reminds us that all design is a social activity. You're
- 3:06Speaker 2: designing four people with people?
- 3:08Speaker 1: Makes sense? What about the A.
- 3:09Speaker 2: That's the ambiguity rule? This one is tough For engineers,
- 3:13Speaker 2: it's about preserving ambiguity early on, to keep your options open, like,
- 3:17Speaker 2: don't lock into a solution before you fully understand.
- 3:19Speaker 1: The problem, right, don't jump to the code editor exactly.
- 3:23Speaker 2: Then there's R for the redesign rule. This acknowledges that
- 3:27Speaker 2: all design is essentially redesigning known patterns. We really aren't
- 3:31Speaker 2: reinventing the wheel every time. And the t T is
- 3:34Speaker 2: the tangibility rule making abstract ideas real. So drawing sketches
- 3:39Speaker 2: are building models so people can actually point at them
- 3:41Speaker 2: and talk about them. The good architect is really a
- 3:44Speaker 2: mentor and a collaborator, not a dictator.
- 3:47Speaker 1: So they're constantly just trying to understand what the stakeholders
- 3:49Speaker 1: actually want in the real world.
- 3:51Speaker 2: Yes, exactly, through tools like empathy mapping and stakeholder maps.
- 3:55Speaker 2: Keeling uses a great case study in the book called
- 3:57Speaker 2: Project Lionheart. Oh right with the Yeah, you have the
- 4:00Speaker 2: mayor of the city, a guy named Jean Claude van
- 4:02Speaker 2: Dam and no relation to.
- 4:04Speaker 1: The actor, which is a shame honestly true.
- 4:07Speaker 2: But anyway, he wants to modernize the city's Office of
- 4:10Speaker 2: Management and Budget. His goal cut procurement costs by thirty percent.
- 4:17Speaker 1: Okay, Chris, standard executive.
- 4:18Speaker 2: Goal, right, But then you look at the actual end users,
- 4:21Speaker 2: the people doing the work in that office. Their primary
- 4:24Speaker 2: pain point is that it takes them six weeks to
- 4:27Speaker 2: publish a single a riding request for proposal.
- 4:31Speaker 1: Oh wow, so those are totally conflicting motivation completely. I mean,
- 4:34Speaker 1: the mayor wants a cheap a process, but the users
- 4:37Speaker 1: desperately want a faster process. If you only listen to
- 4:40Speaker 1: the mayor, you build a cheap system that is slow
- 4:43Speaker 1: and miserable to use.
- 4:44Speaker 2: And if you only listen to the users, you build
- 4:46Speaker 2: a lightning fast system that completely bankrupts the city.
- 4:49Speaker 1: Right, And that tension right there is exactly why empathy
- 4:52Speaker 1: mapping is so critical. You have to map out those
- 4:54Speaker 1: conflicting needs because they directly shape the technical constraints of
- 4:58Speaker 1: the system you're about to build.
- 4:59Speaker 2: Exactly. You can't code your way out of a fundamentally
- 5:02Speaker 2: human disagreement.
- 5:03Speaker 1: But wait, if human needs are this complex and they're
- 5:06Speaker 1: constantly conflicting, how do we ever decide when to stop
- 5:10Speaker 1: talking and start typing? Because you know, developers, we get
- 5:14Speaker 1: very antsy, oh very antsy, Like if we try to
- 5:16Speaker 1: perfectly map every single human emotion to a piece of code.
- 5:19Speaker 1: We're going to be planning until the heat death of
- 5:21Speaker 1: the universe.
- 5:22Speaker 2: Yeah, and that brings us to a really important concept
- 5:25Speaker 2: called bounded rationality. It was coined by a guy named
- 5:28Speaker 2: Herbert Simon.
- 5:29Speaker 1: Bounded rationality. What does that mean? In this context?
- 5:31Speaker 2: It's basically the realization that humans have hard limits. We
- 5:35Speaker 2: have limits in time, money, cognitive capacity, and just available knowledge.
- 5:41Speaker 2: Because of bounded rationality, it is mathematically impossible to find
- 5:45Speaker 2: the single optimal design for a complex software system.
- 5:49Speaker 1: Okay, so perfection is a literal.
- 5:51Speaker 2: Myth, a literal mathematical impossibility. So instead of chasing this
- 5:54Speaker 2: perfect optimal design, architects look for a design that satisfies, satisfices.
- 5:59Speaker 1: I love that one.
- 6:00Speaker 2: It's great, right, It's a portmanteau of satisfactory and sufficient.
- 6:03Speaker 2: You look for a design that is good enough to
- 6:06Speaker 2: solve the primary problems and reduce your major risks, and
- 6:10Speaker 2: then you just move on.
- 6:11Speaker 1: Okay, here's where it gets really interesting to me, because
- 6:13Speaker 1: I want to push back on behalf of all the
- 6:15Speaker 1: impatient developers listening right now, go for There is this
- 6:18Speaker 1: famous saying in agile software development, Right, a month of
- 6:23Speaker 1: coding can save an hour.
- 6:25Speaker 2: Of architecting, right. The classic joke.
- 6:28Speaker 1: Yeah, the joke being that if you just start building,
- 6:30Speaker 1: you'll figure it out as you go. So why don't
- 6:32Speaker 1: we just build things quickly, get it in front of users,
- 6:35Speaker 1: and fix it later when we actually know what the
- 6:37Speaker 1: real world problems are.
- 6:38Speaker 2: It is very tempting philosophy, especially in start of culture. Yeah,
- 6:42Speaker 2: but the data just completely destroys it. Keeling brings in
- 6:47Speaker 2: this research from Barry Bahem on the sweet spot of
- 6:50Speaker 2: design time, and the numbers are just staggering.
- 6:52Speaker 1: Lay the numbers on me.
- 6:53Speaker 2: Okay, imagine you have one hundred day schedule for a
- 6:56Speaker 2: medium to large project. Let's say it's about one hundred
- 6:59Speaker 2: thousand lines.
- 7:00Speaker 1: Okay, one hundred days pretty standard.
- 7:02Speaker 2: If you spend just five percent of your time, so
- 7:06Speaker 2: five days on architecture, you will end up increasing your
- 7:09Speaker 2: total schedule by forty three percent.
- 7:11Speaker 1: Wait, forty three percent.
- 7:12Speaker 2: Yes, due to massive expensive rework. You build the wrong thing,
- 7:18Speaker 2: you realize it doesn't scale, you have to tear it down,
- 7:20Speaker 2: you break other things in the process, and you basically
- 7:23Speaker 2: start over.
- 7:24Speaker 1: Oh my god. So trying to save time by rushing
- 7:26Speaker 1: the design phase actually adds almost half the project time
- 7:30Speaker 1: back on in penalties.
- 7:31Speaker 2: That is brutal, it really is. But it gets better
- 7:34Speaker 2: if you increase your upfront architecture time to seventeen percent,
- 7:37Speaker 2: so seventeen days out of the one hundred, the total
- 7:40Speaker 2: schedule increase drops to thirty eight percent.
- 7:42Speaker 1: Okay, think about that math for a second. You spend
- 7:44Speaker 1: more time planning upfront, but your overall delivery time goes
- 7:48Speaker 1: down because you aren't doing all that rework exactly.
- 7:50Speaker 2: It saves you time in the long run.
- 7:52Speaker 1: But you can't just plan forever, right, because, like we said,
- 7:55Speaker 1: bounded rationality correct.
- 7:57Speaker 2: Boem's data also shows that if you spend thirty three
- 8:00Speaker 2: percent of your time on architecture, you hit severe diminishing returns.
- 8:04Speaker 2: The schedule inflates again because of analysis paralysis.
- 8:08Speaker 1: Right, you're just staring at a whiteboard making no progress.
- 8:10Speaker 2: Yeah, so there's a mathematical sweet spot and it's usually
- 8:13Speaker 2: around fifteen to twenty percent of the project time.
- 8:16Speaker 1: Okay, I buy the sweet spot, but seventeen days is
- 8:19Speaker 1: still a long time to just stare at a whiteboard.
- 8:22Speaker 1: How does an architect know what to actually focus on
- 8:25Speaker 1: during that time so they aren't just you know, spinning
- 8:27Speaker 1: their Reels.
- 8:28Speaker 2: Well, you focus on risk. Risk driven architecture is how
- 8:32Speaker 2: you decide when to stop designing. Keeling offers this brilliant,
- 8:36Speaker 2: simple framework for identifying engineering risks.
- 8:39Speaker 1: How does it work?
- 8:40Speaker 2: It uses a condition might consequence format. So, for example,
- 8:44Speaker 2: here's one from the book. Condition a new burrito restaurant
- 8:48Speaker 2: opened across the street. Consequence the team might get sick
- 8:52Speaker 2: eating too many burritos.
- 8:53Speaker 1: That is a highly realistic engineering risk, absolutely.
- 8:57Speaker 2: But notice how specific it is. It's not just I
- 9:00Speaker 2: have a bad feeling about lunch. By identifying the specific
- 9:03Speaker 2: condition and the potential consequence, an architect can actually mitigate
- 9:07Speaker 2: it right, Like.
- 9:07Speaker 1: Maybe you cater lunch on release days so the team
- 9:09Speaker 1: doesn't go eat the risky burritos.
- 9:11Speaker 2: Up exactly in software, Once the major architectural risks are
- 9:16Speaker 2: reduced to an acceptable level, you stop actively designing. You
- 9:19Speaker 2: shift to what he calls passive design.
- 9:22Speaker 1: Passive design meaning what they just sit back and.
- 9:25Speaker 2: Watch kind of. The team starts writing code and the
- 9:28Speaker 2: architect simply monitors the system to ensure the original assumptions
- 9:32Speaker 2: hold up.
- 9:33Speaker 1: Okay, so we use risk to figure out when to
- 9:36Speaker 1: stop designing. But that naturally leads to the question of
- 9:39Speaker 1: what we are actually measuring those risks against, which means
- 9:42Speaker 1: we need to talk about asrs.
- 9:44Speaker 2: Ah. Yes, architecturally significant requirement.
- 9:47Speaker 1: Right, so what exactly makes a requirement architecturally significant?
- 9:51Speaker 2: Asrs are the foundation. These are the requirements that will
- 9:55Speaker 2: literally force you to raise your architecture to the ground
- 9:57Speaker 2: and start over if you get them wrong. Keeling break
- 10:00Speaker 2: them into four types.
- 10:01Speaker 1: Okay, let's walk through those.
- 10:02Speaker 2: You have constraints, quality attributes, influential functional requirements, and other influencers.
- 10:07Speaker 1: Constraints seems pretty self explanatory.
- 10:09Speaker 2: Right, Yeah. Constraints are unchangeable facts. Like the mayor says,
- 10:13Speaker 2: Projects Linehart must be open source. You can't negotiate that.
- 10:16Speaker 2: It limits your technology choices right out of the gate.
- 10:18Speaker 1: What about influential functional requirements?
- 10:21Speaker 2: Those are specific features that bend the whole system. So,
- 10:24Speaker 2: for example, if your app needs to process credit.
- 10:27Speaker 1: Cards, right, that's not just a simple button.
- 10:30Speaker 2: No, it introduces massive security compliances, third party API integrations
- 10:35Speaker 2: and data encryption standards that change the entire shape of
- 10:38Speaker 2: your database. And other influencers That might be things like
- 10:41Speaker 2: the existing skills of your team or maybe legacy systems
- 10:45Speaker 2: you're forced to integrate.
- 10:46Speaker 1: With got it, but the heavy hitter. The one the
- 10:48Speaker 1: book focuses on most is quality attributes. These are the
- 10:53Speaker 1: ellibilities right.
- 10:54Speaker 2: Yes, scalability, availability, maintainability, portability, all the alliblities.
- 10:58Speaker 1: And the crucial lesson here is that you cannot just
- 11:01Speaker 1: write down We need it to be portable on a
- 11:03Speaker 1: sticky note. I mean that means absolutely nothing to a developer.
- 11:06Speaker 2: Nothing at all. You have to be incredibly precise. The
- 11:09Speaker 2: book brings in this amazing scenario from the NASA Jet
- 11:13Speaker 2: Propulsion Laboratory for a Mars rover.
- 11:16Speaker 1: Oh I love this part. It shows how specific you
- 11:18Speaker 1: have to be exactly.
- 11:20Speaker 2: They define a highly specific six part scenario just for portability.
- 11:26Speaker 2: The stimulus is running a test suite on a new
- 11:28Speaker 2: hardware platform. The source of the stimulus is the test team.
- 11:33Speaker 2: The artifact being tested is the mission flight control system.
- 11:36Speaker 1: It's so detailed it goes on.
- 11:38Speaker 2: The response is that the system runs on the new hardware.
- 11:41Speaker 2: The response measure, and this is the critical part, is
- 11:43Speaker 2: that all tests pass with no code changes. And the
- 11:47Speaker 2: environment is the testing lab that.
- 11:49Speaker 1: Is surgically precise, like you can actually write a test
- 11:51Speaker 1: for that. Yeah, but it also means you have to
- 11:53Speaker 1: make choices, because obviously you can't have infinite scalability, perfect security,
- 11:57Speaker 1: and instant performance all.
- 11:58Speaker 2: At the same time as trade offs, which.
- 12:00Speaker 1: Brings up my absolute favorite analogy in the whole book.
- 12:03Speaker 1: The chainsaw blender.
- 12:04Speaker 2: Oh the ultimate lesson in trade offs.
- 12:06Speaker 1: Right, So, imagine you want to make a smoothie. You
- 12:09Speaker 1: have a standard kitchen blender. It sits on your counter.
- 12:11Speaker 1: It's quiet, it's safe, but you know it's tethered to an.
- 12:14Speaker 2: Electrical outlet, very restricted.
- 12:16Speaker 1: Then you have a battery powered hand blender. It's portable,
- 12:19Speaker 1: you can take it camping, but it's really weak it
- 12:21Speaker 1: won't crush ice. And then you have the chainsaw blender.
- 12:26Speaker 1: You attach a blender pitcher to a gas powered two
- 12:31Speaker 1: stroke motorcycle throttle chainsaw engine naturally, Naturally, it is insanely powerful.
- 12:36Speaker 1: It is entirely portable, but it is horribly loud, it
- 12:40Speaker 1: spews toxic exhaust, and it is wildly unsafe for indoor use.
- 12:44Speaker 2: A slight drawback.
- 12:45Speaker 1: Right, So, if someone tells me they want a blender,
- 12:47Speaker 1: and I build them a chainsaw blender, because I assumed
- 12:49Speaker 1: their primary goal was power, I have completely failed. If
- 12:53Speaker 1: their actual goal was just making a quiet safe morning
- 12:56Speaker 1: smoothie exactly.
- 12:58Speaker 2: And if we connect this to the bigger picture, the
- 13:00Speaker 2: chainsaw blender illustrates that every single architectural decision trades one
- 13:04Speaker 2: quality attribute for another. You trade safety and quietness for
- 13:08Speaker 2: power and portability.
- 13:09Speaker 1: So how do we make sure we aren't building chainsaw
- 13:12Speaker 1: blenders for people who just want a quiet smoothie.
- 13:15Speaker 2: Architects use a tool called a decision matrix to visually
- 13:18Speaker 2: map these trade offs out.
- 13:20Speaker 1: How does a decision matrix actually work in practice? Like
- 13:23Speaker 1: in a room full of engineers, you.
- 13:25Speaker 2: List your architectural pattern options on one axis, say a
- 13:28Speaker 2: three tier pattern, a published subscribe pattern and apports an
- 13:32Speaker 2: adapter's pattern, and then on the other axis you list
- 13:35Speaker 2: the quality attributes you prioritize, like maintainability, scalability, and performance.
- 13:40Speaker 2: Then you score them.
- 13:41Speaker 1: And this is where we actually need to explain how
- 13:43Speaker 1: these patterns work mechanically, because they aren't just you know, buzzwords.
- 13:46Speaker 2: Let's do it. Three tier pattern separates your system into
- 13:50Speaker 2: presentation which is the user interface, logic which is the brain,
- 13:55Speaker 2: and data the database.
- 13:56Speaker 1: Pretty standard it is.
- 13:58Speaker 2: It's great for maintainability because they're separate, but if millions
- 14:02Speaker 2: of users hit it at once. It can really bottleneck. Now,
- 14:05Speaker 2: look at published subscribe or pubsub.
- 14:08Speaker 1: Okay, how does that one work?
- 14:10Speaker 2: Think of it like a magazine subscription. A data producer
- 14:13Speaker 2: just publishes a message to a central hub and it
- 14:16Speaker 2: doesn't care who reads it. The consumers just subscribe to
- 14:19Speaker 2: the hub to get their copies.
- 14:21Speaker 1: So the publisher and the subscriber never actually talk directly
- 14:24Speaker 1: to each other exactly.
- 14:26Speaker 2: It's incredibly flexible and scalable because you can add a
- 14:28Speaker 2: thousand subscribers without touching the publisher. But it trades off
- 14:32Speaker 2: strict data consistency.
- 14:34Speaker 1: Because you can't guarantee exactly when a subscriber actually reads
- 14:37Speaker 1: the message.
- 14:37Speaker 2: Right. Then you have ports and adapters, which is also
- 14:40Speaker 2: called hexagonal architecture. Imagine you have a core piece of
- 14:43Speaker 2: logic that calculates taxes. The port is the interface plug,
- 14:47Speaker 2: and the adapter is a piece of code that translates
- 14:50Speaker 2: SQL database data into a format your tax calculator can read.
- 14:54Speaker 1: So if I want to switch from a SQL database
- 14:56Speaker 1: to a no SQL database tomorrow, I don't have to
- 14:59Speaker 1: rewrite my time logic. I just write a new adapter
- 15:01Speaker 1: to plug.
- 15:02Speaker 2: Into the port precisely. It gives you incredible testability and isolation.
- 15:07Speaker 2: But it requires writing a lot of extra boilerplate code
- 15:10Speaker 2: for all those adapters. So the decision matrix forces the
- 15:14Speaker 2: team to look at the mechanics of these patterns and
- 15:17Speaker 2: visually acknowledge what they're giving up to get what they want.
- 15:21Speaker 1: It ensures you don't build a chainsaw blender by accident exactly.
- 15:24Speaker 1: That makes the redesigned rule of heart makes so much sense.
- 15:28Speaker 1: We aren't inventing new shapes, we are just picking the
- 15:31Speaker 1: right established pattern. But Keeling also warns about an anti pattern,
- 15:35Speaker 1: doesn't he the dreaded big ball of mud.
- 15:38Speaker 2: Oh, the big ball of mud that is the default
- 15:41Speaker 2: architecture of a system that wasn't designed at all. It's
- 15:43Speaker 2: just a tangle of undisciplined coding, unchecked technical debt, and
- 15:47Speaker 2: completely bypassed patterns.
- 15:49Speaker 1: Basically a nightmare.
- 15:50Speaker 2: Yeah, every piece of code is glued to every other
- 15:52Speaker 2: piece of code, so if you try to fix a
- 15:54Speaker 2: tiny bug in the login screen, you somehow break the
- 15:57Speaker 2: checkout cart.
- 15:57Speaker 1: But wait, I see a paradox here and say, we
- 16:00Speaker 1: do everything right, We map our human needs, we use
- 16:02Speaker 1: our decision matrix, and we pick a highly decoupled, beautiful
- 16:06Speaker 1: published subscribe pattern. But then there's Conway's law.
- 16:10Speaker 2: Ah. Conway's law the inescapable gravity of software engineering.
- 16:14Speaker 1: Right.
- 16:15Speaker 2: It states that a system's designed will inevitably mimic the
- 16:18Speaker 2: communication structures of the organization building it.
- 16:21Speaker 1: So, if I pick that beautiful pub sub pattern on paper,
- 16:25Speaker 1: but my actual human development teams are completely siloed, they
- 16:29Speaker 1: hate each other, and they never communicate, Conway's law says,
- 16:33Speaker 1: my architecture is going to fail anyway. It's just going
- 16:35Speaker 1: to mimic their dysfunction.
- 16:36Speaker 2: Yes. Absolutely, if you have three teams that don't communicate,
- 16:40Speaker 2: you will inevitably build a system with three disconnected, incompatible components,
- 16:46Speaker 2: regardless of what that whiteboard diagram says. Conway's law is
- 16:49Speaker 2: a two way street. If you, as the architect, want
- 16:52Speaker 2: to change the technical architecture of the software, you very
- 16:55Speaker 2: often have to reorganize the human teams building it. You
- 16:59Speaker 2: have to align the human communication paths with the desired
- 17:02Speaker 2: software communication.
- 17:03Speaker 1: Paths, which brings us completely full circle back to the
- 17:05Speaker 1: heart principles. The human element is inseparable from the technical patterns.
- 17:09Speaker 1: You literally cannot fix the code without fixing the people.
- 17:12Speaker 2: Which is exactly why in architect's most vital tool isn't
- 17:15Speaker 2: a coding language at all. It's a shared vocabulary. To
- 17:19Speaker 2: overcome Conway's law and prevent that big ball of mud,
- 17:23Speaker 2: the team needs a common meta model. They have to
- 17:26Speaker 2: agree on what things.
- 17:27Speaker 1: Are called, which sounds easy, but developers love to argue
- 17:30Speaker 1: about naming conventions.
- 17:32Speaker 2: Well, they love it.
- 17:33Speaker 1: The book breaks this down using Arlow Belshie's Seven Stages
- 17:36Speaker 1: of naming, which I found fascinating. It shows how the
- 17:39Speaker 1: literal name of a variable in your code evolves as
- 17:42Speaker 1: your human understanding of the system evolves.
- 17:45Speaker 2: Naming is actually a great metric for how well you
- 17:47Speaker 2: understand your own design. The first stage is missing. You
- 17:51Speaker 2: don't even know enough to name the concept yet. Stage
- 17:53Speaker 2: two is nonsense, nonsense like what well bellschie uses the
- 17:58Speaker 2: example of naming a component cranbar cranberry. Yeah, it means
- 18:01Speaker 2: absolutely nothing. It's just a placeholder. So the code compiles.
- 18:04Speaker 2: But as you refine the architecture, you move through stages
- 18:07Speaker 2: like honest and honest and complete, where the name describes
- 18:10Speaker 2: mechanically what the code does.
- 18:12Speaker 1: Like naming it data fetcher, checker, transformer and job starter.
- 18:16Speaker 2: It's honest, but I mean it's incredibly clunky because you
- 18:19Speaker 2: are still thinking like a machine. The ultimate goal is
- 18:22Speaker 2: Stage seven domain abstraction. Instead of that clanky name, you
- 18:27Speaker 2: realize what the component truly is in the context of
- 18:30Speaker 2: the business domain. You reach a profound abstraction and name
- 18:34Speaker 2: it something like data preparation Agent.
- 18:36Speaker 1: Ah. So suddenly anyone looking at the code knows exactly
- 18:40Speaker 1: what its purpose is without having to read one hundred
- 18:42Speaker 1: lines of logic exactly. But how do you get a
- 18:45Speaker 1: whole team of very opinionated engineers to arrive at those
- 18:49Speaker 1: stage seven names and agree on complex patterns before the
- 18:53Speaker 1: project just runs out of money? I mean, you can't
- 18:55Speaker 1: just debate it in a conference room forever.
- 18:57Speaker 2: That brings us to the sharette, also known as the
- 19:00Speaker 2: architecture design studio.
- 19:01Speaker 1: I loved the historical anecdote for this in the book.
- 19:04Speaker 1: Back in nineteenth century France, architecture students that the ecolt
- 19:08Speaker 1: des bizarre. Would you know, procrastinate as students do, and
- 19:11Speaker 1: when the professor came around with a wooden cart a
- 19:14Speaker 1: charette to collect their physical models for grading, the students
- 19:17Speaker 1: would literally follow the cart down the hall. They'd be
- 19:20Speaker 1: feverishly gluing balsa wood and wire onto their models on
- 19:24Speaker 1: sharette in the cart, right up to the very last second.
- 19:27Speaker 2: It's such a vivid image and it perfectly captures the
- 19:31Speaker 2: essence of the modern design studio, extreme time constraints. A
- 19:36Speaker 2: design studio is a highly structured time box workshop. It
- 19:40Speaker 2: relies on a relentless cycle of create, share, critique, and iterate.
- 19:46Speaker 1: So how does a cycle actually look?
- 19:48Speaker 2: You give small teams just five or ten minutes to
- 19:50Speaker 2: sketch a technical solution to a specific architectural problem. Then
- 19:53Speaker 2: they pitch it to the room. The room critiques it
- 19:56Speaker 2: based only on facts and the quality attributes from your
- 19:58Speaker 2: decision matrix, not personal preference.
- 20:00Speaker 1: Right, no arguing over I just like this better exactly.
- 20:03Speaker 2: Then you immediately force them to iterate and do it again.
- 20:06Speaker 1: So what does this all mean? It's basically like speed
- 20:09Speaker 1: dating for architectural solutions. You don't just marry the first
- 20:13Speaker 1: idea that comes to your head. You meet a dozen
- 20:16Speaker 1: different ideas in a single afternoon. You figure out what
- 20:19Speaker 1: actually works, combine the best traits of all of them,
- 20:21Speaker 1: and most importantly, you avoid committing your entire project to
- 20:25Speaker 1: a cranberry.
- 20:26Speaker 2: Yes, the ticking clock forces you to cheat that bounded
- 20:30Speaker 2: rationality we talked about earlier, and the group critique completely
- 20:34Speaker 2: destroys groupthink.
- 20:35Speaker 1: I can see how that generates a massive amount of
- 20:37Speaker 1: buy in too, because everyone had a hand in the design.
- 20:40Speaker 2: It does. But this ray is a really important question.
- 20:43Speaker 2: After the share it is over, the sticky notes are
- 20:45Speaker 2: in the trash and the whiteboards are erased. How do
- 20:48Speaker 2: we ensure these great ideas actually survive in the code base?
- 20:52Speaker 1: Yeah? How do you enforce it without like standing over
- 20:55Speaker 1: a developer shoulder stop them from going rogue on day three?
- 20:58Speaker 2: You have to physically shrink the gap between the model
- 21:00Speaker 2: and reality. Keeling calls this using an architecturally evident coding
- 21:05Speaker 2: style okay, meaning what it means the vocabulary of the
- 21:08Speaker 2: architecture is physically baked into the file structure. If you
- 21:13Speaker 2: share it decided on a data preparation agent, there better
- 21:17Speaker 2: be a directory in the code base called exactly that.
- 21:20Speaker 1: Oh, I see.
- 21:20Speaker 2: Yeah. If you chose a three per pattern, the root
- 21:24Speaker 2: folders in your repository should be named presentation, logic, and data.
- 21:29Speaker 2: You don't rely on human discipline to enforce the architecture.
- 21:33Speaker 2: You encode the architectural rules into the physical structure of
- 21:36Speaker 2: the software itself, so if someone tries to bypass the pattern,
- 21:40Speaker 2: the code literally won't compile.
- 21:42Speaker 1: That is brilliant. Okay, let's zoom out for a second.
- 21:44Speaker 1: If you are listening to this right now, why does
- 21:46Speaker 1: all of this matter to you?
- 21:48Speaker 2: What we've learned from Michael Keeling is that being a
- 21:51Speaker 2: software architect isn't just about knowing the most programming languages
- 21:54Speaker 2: or writing the slickest algorithms in complete isolation, Not at all.
- 21:59Speaker 2: It's fundamentally about empathy. It's about translating complex human needs
- 22:04Speaker 2: into precise textrical constraints. It's about mathematically managing risk so
- 22:08Speaker 2: you don't waste months of people's lives on rework.
- 22:11Speaker 1: It's about surviving Conway's law by aligning your human teams
- 22:14Speaker 1: with your code structure. Perhaps most importantly, it's about knowing
- 22:18Speaker 1: how to avoid building a chainsaw blender when a simple, quiet,
- 22:22Speaker 1: multi tier pattern is exactly what your user actually needed.
- 22:26Speaker 2: And you know, we connect this to the bigger picture
- 22:28Speaker 2: of where the tech industry is heading. Right now, this
- 22:31Speaker 2: human centric approach becomes even more vital. How so, well,
- 22:35Speaker 2: we are entering an era where AI can instantly generate
- 22:39Speaker 2: thousands of lines of functional code based on a simple prompt.
- 22:43Speaker 2: The sheer mechanical act of typing out a program is
- 22:47Speaker 2: rapidly becoming a commodity.
- 22:48Speaker 1: Wow, yeah, that's true.
- 22:50Speaker 2: So what is left the architect's skill set? Navigating human empathy,
- 22:55Speaker 2: defining those incredibly specific quality attributes, managing organizational kindyation, and
- 23:00Speaker 2: facilitating these collaborative design studios. These are not things in
- 23:03Speaker 2: AI can do.
- 23:04Speaker 1: No, not at all.
- 23:05Speaker 2: Architecture isn't just going to be a leadership role. It
- 23:07Speaker 2: might soon become the only strictly human job left in
- 23:10Speaker 2: software engineering.
- 23:11Speaker 1: That is a staggering thought. The code itself becomes the
- 23:14Speaker 1: cheat part, but the human translation of why we are
- 23:17Speaker 1: building it becomes the priceless part.
- 23:19Speaker 2: Exactly.
- 23:20Speaker 1: Well, thank you so much for joining us on this
- 23:22Speaker 1: deep dive into Michael Keeling's work. As you head back
- 23:26Speaker 1: to your desk or jump into your next sprint planning meeting,
- 23:29Speaker 1: I want you to take a hard look at your
- 23:30Speaker 1: current projects and ask yourself a question. Are you actively
- 23:34Speaker 1: designing your architecture or is it designing you? Make sure
- 23:38Speaker 1: you check the ground before you pour that concrete. We'll
- 23:40Speaker 1: catch you next time.