Latest / CyberSecurity Summary / The Clean Coder: A Code of Conduct for Professional Programmers
Transcript
- 0:00Speaker 1: All right, buckle up everyone. We're diving deep today into
- 0:03Speaker 1: the world of the clean coder by Uncle Bob. And
- 0:07Speaker 1: before you think, ugh, another coding book, trust me, this
- 0:11Speaker 1: is less about the how of coding, more about the who,
- 0:14Speaker 1: the kind of developer you are, the professional and you
- 0:17Speaker 1: want to be.
- 0:17Speaker 2: It's almost like a philosophy, right, like, what are the
- 0:20Speaker 2: guiding principles that separate a good programmer from a truly
- 0:24Speaker 2: great one?
- 0:25Speaker 1: Exactly? And he doesn't mess around. He dives right in
- 0:28Speaker 1: with this story about him and a colleague, Joe. They
- 0:30Speaker 1: were like the a team of bug fixing, pulling all nighters, yeah,
- 0:34Speaker 1: to get things shipped on time for the engineering team.
- 0:36Speaker 1: But when it came to legal team is a different story.
- 0:38Speaker 2: Oh I remember that part, Joe. Evin says something like,
- 0:40Speaker 2: but these are professionals. It's like this unspoken thing, right,
- 0:43Speaker 2: the programmers aren't held to the same standards as say,
- 0:46Speaker 2: lawyers or doctors.
- 0:47Speaker 1: Uncle Bob's like, hold up, that's got to change. He says,
- 0:50Speaker 1: the foundation of any true professional is do no.
- 0:53Speaker 2: Harm, which, when you think about software, has so many layers. Obviously,
- 0:58Speaker 2: we don't want buggy code out in the wild, but
- 1:01Speaker 2: it goes deeper, right, Like what about the harm we
- 1:04Speaker 2: do to the software itself by making it a nightmare
- 1:07Speaker 2: to maintain?
- 1:08Speaker 1: Oh man, I've inherited some code bases that felt like
- 1:10Speaker 1: a personal attack, like trying to untangle a headphone cord
- 1:13Speaker 1: after it's been in your.
- 1:14Speaker 2: Pocket all day, exactly, and then someone else has to
- 1:17Speaker 2: come along and deal with that mess. So how do
- 1:19Speaker 2: we avoid becoming that developer? Michael Bob's got some thoughts.
- 1:24Speaker 1: He's big on the work ethic, but it's not just
- 1:26Speaker 1: showing up and coding. He's talking about constant learning, like
- 1:29Speaker 1: twenty hours a week outside your job.
- 1:31Speaker 2: I know, right, sounds intense, but think about it, even
- 1:34Speaker 2: just reading during lunch, podcasts on your commute.
- 1:37Speaker 1: It adds up. Plus tech moves so fast. If you're
- 1:39Speaker 1: not learning, you're falling.
- 1:40Speaker 2: Behind, exactly. And it's not just keeping up, it's about
- 1:43Speaker 2: becoming the expert, the one people turn to, the one
- 1:47Speaker 2: who's always pushing the boundaries.
- 1:49Speaker 1: So true, And speaking of pushing boundaries, he talks about
- 1:52Speaker 1: the importance of practice, not just working on projects, but
- 1:55Speaker 1: like deliberate practice. He calls them kata, these short coding
- 2:00Speaker 1: exercises kind of like a musician practicing scales.
- 2:03Speaker 3: Oh, I love kata.
- 2:04Speaker 2: It's such a great way to sharpen your skills, you know,
- 2:07Speaker 2: not even solving real problems, just focusing on technique efficiency.
- 2:12Speaker 1: I gotta try that. But even with all the solo
- 2:14Speaker 1: practice in the world, Uncle Bob's a huge believer in collaboration.
- 2:18Speaker 3: Which makes sense, right.
- 2:19Speaker 2: Software is rarely a one person show anymore, bouncing ideas
- 2:22Speaker 2: off each other, pair programming, mentoring.
- 2:24Speaker 1: Like, you learn so much faster when you're not in
- 2:26Speaker 1: a vacuum.
- 2:27Speaker 2: And you avoid those situations where only one person understands
- 2:30Speaker 2: that critical piece of code.
- 2:32Speaker 1: Okay, so we've got learning, we've got collaboration, but now
- 2:35Speaker 1: comes apart. I struggle with saying no.
- 2:38Speaker 2: Ooh yeah, that's a tough one.
- 2:39Speaker 1: Especially when you want to be helpful, you want to
- 2:41Speaker 1: please people. But Uncle Bob makes this point saying yes
- 2:45Speaker 1: when you don't mean it, it actually hurts everyone in
- 2:47Speaker 1: the long run.
- 2:48Speaker 2: He talks about that language of non commitment right, like
- 2:50Speaker 2: we should or I hope to. It's so easy to
- 2:53Speaker 2: fall into that track.
- 2:54Speaker 1: Oh totally, I'm so guilty of that. But he gives
- 2:57Speaker 1: this great alternative, I will action by time. It forces
- 3:01Speaker 1: you to be specific, accountable.
- 3:03Speaker 2: And it sets clear expectations, so no one's left wondering.
- 3:06Speaker 2: But what about when you have to say no, like
- 3:08Speaker 2: the request is unreasonable.
- 3:10Speaker 1: He's got a framework for that too, about focusing on
- 3:12Speaker 1: the why, not just no, but no because, and offering
- 3:17Speaker 1: alternatives if you can.
- 3:18Speaker 2: It shows you're not just being difficult, you're problem solving.
- 3:21Speaker 2: You're using your expertise to guide things in the right direction.
- 3:24Speaker 1: I had this situation once I was asked to build
- 3:27Speaker 1: this feature, and I knew it was going to be
- 3:29Speaker 1: a nightmare, way too complex. But instead of just saying no,
- 3:32Speaker 1: I explained the technical challenges, like even I proposed a
- 3:36Speaker 1: phased approach, something more realistic, and how'd that go? They
- 3:39Speaker 1: were actually super receptive. They appreciated the honesty, the transparency.
- 3:44Speaker 1: It turned into a much better solution than the end.
- 3:46Speaker 3: That's professionalism and action.
- 3:48Speaker 1: And speaking of challenges, we got to talk about the
- 3:50Speaker 1: pressure cooker of software development. Uncle Bob tells this crazy
- 3:54Speaker 1: story about an app called Guerrilla Mart.
- 3:57Speaker 2: Oh. Yeah, that one stays with you. It's like a
- 3:59Speaker 2: cautionary tale.
- 4:00Speaker 1: Impossible deadlines, scope creep, that is velper John is sacrificing everything.
- 4:05Speaker 2: And it all comes back to that ability to say
- 4:07Speaker 2: no effectively.
- 4:09Speaker 1: Right if John hit set boundaries, managed expectations.
- 4:13Speaker 2: But even when you do everything right, pressure happens. So
- 4:16Speaker 2: what are Uncle Bob's tips for weathering those storms.
- 4:19Speaker 1: Well, one that surprised me was keep things clean, not
- 4:22Speaker 1: just code, but your workspace, your mental state.
- 4:25Speaker 2: It's like, when everything else is chaotic, create some order
- 4:28Speaker 2: where you can.
- 4:29Speaker 1: It helps you think clearly, make better decisions under stress.
- 4:32Speaker 2: And he talks about having a crisis discipline, a set
- 4:35Speaker 2: of practices you can rely on when everything's hitting the fan.
- 4:38Speaker 2: What are your go tos?
- 4:40Speaker 1: For me, It's got to be stepping back, breathing deeply,
- 4:44Speaker 1: reminding myself I've solved tough problems before, and breaking things
- 4:47Speaker 1: down into smaller, manageable chunks.
- 4:50Speaker 3: That's great.
- 4:51Speaker 2: Uncle Bob also emphasizes sticking to your disciplines, test driven development,
- 4:56Speaker 2: pair programming, whatever.
- 4:57Speaker 3: Works for you.
- 4:58Speaker 2: Those become even more important when the pressure's.
- 5:00Speaker 1: On and you know what, it's okay to ask for help,
- 5:04Speaker 1: not try to be the hero.
- 5:05Speaker 2: Absolutely, sometimes the most professional thing is admitting you need support.
- 5:10Speaker 3: A fresh perspective can make all the difference.
- 5:13Speaker 1: So we've talked about pressure collaboration, but there's this other
- 5:17Speaker 1: aspect of the clean coder that's really fascinating, this idea
- 5:20Speaker 1: that programmers shouldn't be lone wolves that it's actually unprofessional.
- 5:24Speaker 2: I think he even tells a story about getting fired
- 5:26Speaker 2: for being too focused on the tech and not enough
- 5:29Speaker 2: on the bigger picture, the business impact.
- 5:31Speaker 1: Yeah, it's like, we got to remember we're building solutions
- 5:34Speaker 1: for real.
- 5:34Speaker 2: People, understanding the business, talking to users.
- 5:37Speaker 3: It's all part of the job.
- 5:39Speaker 1: I had this project once where I was so deep
- 5:41Speaker 1: and optimizing an algorithm, m I totally missed a key
- 5:44Speaker 1: constraint related to the company's internal processes.
- 5:47Speaker 3: Oh no, did you have to rework everything we did?
- 5:50Speaker 1: It was a hard lesson and the importance of asking questions,
- 5:53Speaker 1: not assuming you have all the answers, collaborating with everyone involved.
- 5:57Speaker 2: And speaking of collaboration, Uncle Bob's a big fan of
- 6:00Speaker 2: collective code ownership.
- 6:01Speaker 1: Yeah, I've worked in places where certain code was like
- 6:05Speaker 1: someone's personal kingdom.
- 6:07Speaker 2: He argues that shared ownership leads to better solutions, less resentment.
- 6:11Speaker 1: And then there's pair programming, which I know could be controversial.
- 6:14Speaker 2: He addresses all the common objections feeling slowed down, fear judgment,
- 6:18Speaker 2: but the benefits are huge better code, constant review, knowledge sharing.
- 6:23Speaker 1: It's like having a built in second brain, catching errors
- 6:27Speaker 1: before they become disasters. So we've covered a lot professionalism, learning, collaboration,
- 6:32Speaker 1: but there's one more piece we haven't touched on, the
- 6:34Speaker 1: journey from apprentice to craftsmen.
- 6:37Speaker 2: Oh that's a good one. He even tells this adorable
- 6:39Speaker 2: story about learning to program as a kid. He was
- 6:42Speaker 2: fascinated by this little toy computer, even built a computerized
- 6:46Speaker 2: gait for his neighbor.
- 6:47Speaker 1: Ah, that's awesome. It reminds you the pure joy of coding,
- 6:49Speaker 1: the possibilities, and.
- 6:51Speaker 2: That sets the stage for his exploration of the different
- 6:54Speaker 2: stages of a programmer's growth.
- 6:56Speaker 1: The apprentice, the journeyman, the master. Sounds kind of like
- 6:59Speaker 1: a fantasy.
- 7:00Speaker 2: It does, but it's really about the skills, the mindset,
- 7:03Speaker 2: the values you develop over time.
- 7:05Speaker 1: So it's more than just technical ability. It's about character.
- 7:08Speaker 2: Development exactly, and that's what we'll be digging into in
- 7:11Speaker 2: the next part of our deep dive.
- 7:12Speaker 1: So stick around. We'll be right back after short break.
- 7:15Speaker 2: All right, So we left off talking about this idea
- 7:19Speaker 2: of a programmer's journey, but before we get to the apprentice,
- 7:23Speaker 2: journeyman master thing. There's this other concept Uncle Bob brings
- 7:27Speaker 2: up about teams and how they should be structured, which
- 7:30Speaker 2: honestly kind of blew my mind, I.
- 7:32Speaker 1: Know, right. It goes against how a lot of companies
- 7:34Speaker 1: do think totally.
- 7:36Speaker 2: Like, you finish a project, the team disbands, everyone gets
- 7:39Speaker 2: shuffled around. Uncle Bob's like, no bad idea. He's all
- 7:42Speaker 2: about persistent teams.
- 7:43Speaker 1: So instead of forming teams around projects, you have these
- 7:46Speaker 1: long term units and you assign projects to them based
- 7:50Speaker 1: on their skills and experience exactly.
- 7:54Speaker 2: It makes so much sense when you think about it,
- 7:56Speaker 2: like a well functioning team. It's like a well oiled machine.
- 7:59Speaker 1: Everyone knows each other's strengths, they can anticipate each other's moves.
- 8:03Speaker 2: It's like a sports team. You don't swap players out
- 8:05Speaker 2: every game.
- 8:05Speaker 1: You build that chemistry, that trust over time.
- 8:08Speaker 2: And Uncle Bob talks about this fermentation process, right, Like,
- 8:11Speaker 2: teams go through these stages, the awkward getting to know
- 8:15Speaker 2: you phase, maybe.
- 8:16Speaker 1: A honeymoon period, and finally they reach this point of
- 8:19Speaker 1: like seamless collaboration. They're in sync.
- 8:23Speaker 2: And once you have that, why break it apart?
- 8:26Speaker 1: Seems so counterproductive, right, You lose all that.
- 8:29Speaker 2: Momentum totally and think about the knowledge transfer, the continuity.
- 8:33Speaker 2: With persistent teams, you don't have to start from scratch
- 8:35Speaker 2: every time.
- 8:36Speaker 1: Let's I bet te morale is higher when you know
- 8:38Speaker 1: you're in it for the long helse.
- 8:39Speaker 2: Oh absolutely, it creates a sense of ownership, of shared responsibility.
- 8:43Speaker 2: But okay, let's be real. Even with the best teams
- 8:46Speaker 2: in the world, pressure is going to happen, right, Deadlines, stayholders,
- 8:51Speaker 2: breathing down your neck.
- 8:52Speaker 1: The joys of software development, and.
- 8:55Speaker 2: Uncle Bob doesn't sugarcoat it. He acknowledges that pressure is
- 8:59Speaker 2: part of the game, but he also gives some great
- 9:02Speaker 2: advice on how to handle it like a.
- 9:04Speaker 1: Pro, like what still the beans?
- 9:06Speaker 2: Well, first off, managing your commitments. Remember that language of
- 9:10Speaker 2: commitment we talked about.
- 9:11Speaker 1: Clear specific promises about what you can deliver and buy.
- 9:15Speaker 2: When exactly, don't over promise, set realistic expectations from the start,
- 9:20Speaker 2: and when the pressures coming from outside those demanding stakeholders.
- 9:24Speaker 1: Ooh yeah, those are fun.
- 9:26Speaker 2: Uncle Bob's all about setting boundaries, having those tough conversations.
- 9:30Speaker 1: By doing it professionally right, not just blowing up at
- 9:32Speaker 1: people exactly.
- 9:33Speaker 2: It's about using your expertise to guide things in the
- 9:36Speaker 2: right direction. And another thing he emphasizes keep things clean.
- 9:41Speaker 1: Wait, not just code, Nope.
- 9:43Speaker 2: Your design, your workspace, even your mental state.
- 9:46Speaker 1: I never thought about it like that, but it makes sense.
- 9:48Speaker 2: When everything's chaotic around you, it's hard to think straight.
- 9:52Speaker 2: So declutter refactor creates some.
- 9:54Speaker 3: Order where you can.
- 9:55Speaker 1: It's like clearing the cash in your brain totally.
- 9:58Speaker 2: And then there's this concept of a crisis discipline, like
- 10:02Speaker 2: when everything's going wrong, what are your go to practices?
- 10:06Speaker 1: I got to have my list my emergency procedures first
- 10:09Speaker 1: breathe remind myself I've solved tough problems before. Then break
- 10:14Speaker 1: the problem down into smaller, more manageable pieces.
- 10:17Speaker 2: Those are great. Uncle Bob also talks about sticking to
- 10:20Speaker 2: your disciplines even under pressure, TDD, pair programming, whatever works
- 10:24Speaker 2: for you.
- 10:25Speaker 1: It's like, don't abandon the things that make you a
- 10:27Speaker 1: good developer.
- 10:28Speaker 2: And you know what, It's okay to ask for help.
- 10:30Speaker 2: Don't be afraid to say I need a hand.
- 10:32Speaker 1: Sometimes that's the most professional thing you can do.
- 10:34Speaker 2: Admitting you don't have all the answers, seeking a fresh perspective. Okay,
- 10:38Speaker 2: so we've talked about pressure teamwork, but there's this whole
- 10:43Speaker 2: other layer to the clean coder, this idea that programmers
- 10:47Speaker 2: shouldn't be these isolated figures, these lone wolves.
- 10:50Speaker 1: He actually argues it's unprofessional to be that way.
- 10:52Speaker 2: He even tells the story about getting fired for being
- 10:55Speaker 2: too focused on the tech and not enough on the
- 10:57Speaker 2: bigger picture, the business impact.
- 11:00Speaker 1: It's a reminder that we're not coding in a vacuum.
- 11:01Speaker 2: Right exactly, we're building solutions for real people, for real businesses.
- 11:06Speaker 1: I had this experience once I was so focused on
- 11:09Speaker 1: optimizing an algorithm, I completely overlooked a key constraint related
- 11:15Speaker 1: to the company's internal processes.
- 11:17Speaker 3: Uh oh did that cause problems big time.
- 11:19Speaker 1: We had to rework a huge chunk of code because
- 11:21Speaker 1: I hadn't taken the time to understand the full context
- 11:24Speaker 1: the business side of things.
- 11:25Speaker 2: It's a good lesson in the importance of asking questions,
- 11:28Speaker 2: collaborating with everyone.
- 11:29Speaker 1: And speaking of collaboration, Uncle Bob's a huge advocate for
- 11:32Speaker 1: collective code ownership. Like no one owns a specific module,
- 11:36Speaker 1: everyone can contribute.
- 11:37Speaker 2: It breaks down those silos right, leads to better solutions,
- 11:40Speaker 2: less resentment.
- 11:41Speaker 1: And then there's pair programming, which I know some people love,
- 11:44Speaker 1: some people hate.
- 11:45Speaker 2: He dives into all the common objections, feeling slowed down,
- 11:48Speaker 2: fear of judgment, but he really highlights the benefits better
- 11:52Speaker 2: code quality, constant review.
- 11:54Speaker 1: It's like having a built in second pair of eyes,
- 11:57Speaker 1: catching errors before they become disastrous. Plus you learn from
- 12:00Speaker 1: each other. It's like constant knowledge sharing.
- 12:02Speaker 2: Okay, so we've covered a ton of ground professionalism, collaboration,
- 12:07Speaker 2: but we haven't even gotten to the individual journey of
- 12:09Speaker 2: developer yet. The apprentice journeyman master all that good stuff.
- 12:14Speaker 1: Which he sets up with this adorable story about learning
- 12:17Speaker 1: to program as a kid.
- 12:18Speaker 2: Oh right, He was fascinated by this little toy computer,
- 12:22Speaker 2: even built a computerized gait for his neighbor using it.
- 12:25Speaker 1: It's so cool. It reminds you of that like pure joy.
- 12:28Speaker 2: Of discovery, and that sets the stage for his exploration
- 12:31Speaker 2: of the different stages of a programmer's growth, the skills,
- 12:33Speaker 2: the mindset, the values you develop over time, and that's what.
- 12:36Speaker 1: We're going to unpack in the final part of our
- 12:38Speaker 1: deep dive into the clean coder. Right, welcome back to
- 12:41Speaker 1: the deep dive. We've been on quite a journey through
- 12:44Speaker 1: the clean coder from professionalism to collaboration to pressure, and
- 12:49Speaker 1: this idea of a programmer's journey the apprentice to craftsmen.
- 12:53Speaker 1: But now let's get down to brass tacks. How do
- 12:55Speaker 1: we actually live this stuff? How do we take Uncle
- 12:58Speaker 1: Bob's wisdom and make it real in our day to
- 13:00Speaker 1: day work?
- 13:01Speaker 2: Right, it's one thing to read about it, not along,
- 13:03Speaker 2: but then you're back in the trenches, facing deadlines, dealing
- 13:06Speaker 2: with people.
- 13:07Speaker 1: So what are some actionable steps things we can start
- 13:10Speaker 1: doing today to become more clean coders in the truest sense.
- 13:14Speaker 3: I think it.
- 13:15Speaker 2: Starts with awareness, honestly, just keeping these principles top of
- 13:18Speaker 2: mind as you're coding, as you're interacting with your.
- 13:21Speaker 1: Team, So almost like a mental checklist. Am I doing
- 13:24Speaker 1: no harm? Am I communicating clearly?
- 13:27Speaker 3: Yeah? And look, no one's perfect. We all slip up.
- 13:30Speaker 2: But it's about the intention, that commitment to excellence that's
- 13:33Speaker 2: what sets you apart.
- 13:34Speaker 1: And Uncle Bob makes this point craftsmanship spreads by example,
- 13:38Speaker 1: not by force. So it's not about lecturing your teammates
- 13:42Speaker 1: or anything like that.
- 13:43Speaker 2: It's about leading the way, showing them the benefits of
- 13:45Speaker 2: clean code of collaboration.
- 13:47Speaker 1: And you might be surprised. People start noticing, they start
- 13:51Speaker 1: emulating those behaviors totally.
- 13:52Speaker 2: It creates this ripple effect, this culture of excellence.
- 13:55Speaker 1: Be the change you want to see, right, but in
- 13:57Speaker 1: this case, be the clean.
- 13:58Speaker 2: Coder exactly, And you don't have to do everything at once.
- 14:02Speaker 2: Start small, spend an extra fifteen minutes refactoring, write a
- 14:06Speaker 2: better commit message.
- 14:08Speaker 1: Little things add up, especially when they become habits. And
- 14:11Speaker 1: speaking of habits, remember that twenty hours a week for
- 14:14Speaker 1: professional development.
- 14:15Speaker 2: I know it sounds like a lot, but even if
- 14:16Speaker 2: you can do a fraction of that, it makes the
- 14:19Speaker 2: difference in the long run.
- 14:20Speaker 1: It's an investment in yourself, your skills, your future.
- 14:24Speaker 2: And it's not just about the technical stuff. It's about
- 14:26Speaker 2: staying curious. Go to conferences, explore new technologies, expand your horizons.
- 14:32Speaker 1: Embrace that lifelong learner mindset, never stop growing.
- 14:37Speaker 2: But you know what, it's also important to find balance.
- 14:39Speaker 2: Remember John from the Gorilla Art story, sacrificing everything, burning out, Yeah,
- 14:44Speaker 2: that was rough.
- 14:45Speaker 1: We got to take care of ourselves too.
- 14:46Speaker 2: Right, Absolutely, hobbies, family, things that bring you joy. It's
- 14:50Speaker 2: about sustainability. You can't pour from an empty cup.
- 14:53Speaker 1: Set boundaries, prioritize your well being. It's not selfish, it's essential.
- 14:57Speaker 2: And remember Uncle Bob talks about finding joy and like
- 15:00Speaker 2: that story about building the computerized gait.
- 15:03Speaker 3: As a kid.
- 15:03Speaker 1: It reminds you of the magic, the possibilities that initial spark.
- 15:07Speaker 3: Don't lose sight of that.
- 15:09Speaker 2: Experiment, work on side projects, have fun.
- 15:12Speaker 1: It's all about rediscovering that passion, letting it fuel your journey.
- 15:17Speaker 1: So as we wrap up this deep dive into the
- 15:18Speaker 1: Clean Coder, I want to leave you with this thought,
- 15:21Speaker 1: the apprentice to craftsman journey, it's not a destination, it's
- 15:25Speaker 1: a process, a continuous evolution.
- 15:27Speaker 2: Embrace your own path, find mentors who inspire you, and
- 15:31Speaker 2: never stop learning.
- 15:32Speaker 1: Because these principles professionalism, collaboration, craftsmanship, they're not just about
- 15:37Speaker 1: writing better code. They're about building a better.
- 15:39Speaker 3: World, one line at a time.
- 15:40Speaker 1: Beautifully said. And on that note, we'll wrap up this
- 15:43Speaker 1: episode of the Deep Dive. We hope you enjoyed this
- 15:46Speaker 1: journey through the Clean Coder and that you found some
- 15:48Speaker 1: nuggets of wisdom to apply in your own work in life.
- 15:51Speaker 1: Until next time, happy coding, everyone,