<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mike Mclaren on Medium]]></title>
        <description><![CDATA[Stories by Mike Mclaren on Medium]]></description>
        <link>https://medium.com/@mikemclaren?source=rss-24075ce764be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9OwK9G_kMv7KFQhEnuAiTQ.jpeg</url>
            <title>Stories by Mike Mclaren on Medium</title>
            <link>https://medium.com/@mikemclaren?source=rss-24075ce764be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 22:02:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mikemclaren/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Your Team Isn’t Planning Enough, And It’s Your Fault]]></title>
            <link>https://medium.com/@mikemclaren/your-team-isn-t-planning-enough-and-it-s-your-fault-947c080bf65d?source=rss-24075ce764be------2</link>
            <guid isPermaLink="false">https://medium.com/p/947c080bf65d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Mike Mclaren]]></dc:creator>
            <pubDate>Mon, 22 Feb 2016 13:34:56 GMT</pubDate>
            <atom:updated>2016-02-22T13:41:36.856Z</atom:updated>
            <content:encoded><![CDATA[<h4>The beauty of those first few days of a new project, clacking away on never-before-seen code, entering that blissful zone where everything is possible, listening to your most killer jams fades slowly into a peaceful indifference of time over the next few weeks, steadily reaching a boil near the end of a project’s lifecycle where everything seems to be extreme and nothing is fair.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*8XG4XMlAXvCr8faHiKyTLw.png" /><figcaption>Typical Project Development Feels</figcaption></figure><p>Deadlines. They always show up. In early development, they seem so distant, but a week before the drop-dead date, there’s a scramble to fix all of those bugs that pesky QA Engineer found and add that one feature that you forgot about.</p><p>You are the team lead. If the project is of any size and importance to the company, you are probably choking under some stress, working a few late nights, and you just want to be done.</p><p>Eventually, you will be finished. You will ship the project, probably with a few more bugs you and your team need to patch over the coming weeks. But you know what? You did it. You’ve learned some lessons, hopefully had a retrospective, and are ready to move on to that next big project. Good job, you.</p><p>Actually, let’s rephrase: <strong>good job, team.</strong></p><p>You see, it was your job to keep the team from feeling stressed, to keep them cool under pressure, to make sure the project was finished in the amount of time promised to the client. And yeah, sometimes it’s out of your hands: clients and bosses are demanding, despite your arguments and attempts to keep projects in scope. But, if I had to guess, you and your team suffered from a classic software development dilemma: the <strong>Snowball Effect.</strong></p><p>And guess what? You’re probably never going to avoid it entirely, because it comes from a simple fact of human nature: we’re flawed creatures. However, you can sure as hell mitigate the effect.</p><h4>The Snowball Effect</h4><p>In software development, a series of decisions are made, possibly by an array of different people. Every decision that is made, every line of code that is committed adds to a growing collection of complexity that makes the job harder. Every team starts with a precious snowflake, and eventually, it rolls and rolls and rolls until eventually a large snowball is rumbling down the mountain, threatening to devastate that village of team morale in the valley below</p><p>Really, software development is as prone to the Second Law of Thermodynamics as anything else: chaos increases as time moves along.</p><p>So what can you, a development/engineering team lead, do to fight back?</p><h4>Strategy is Preparation</h4><p>There’s a laundry list of possible solutions to the Snowball Effect, with no one solution providing complete coverage: project management strategies like Scrum, <a href="https://medium.com/@mikemclaren/why-you-lead-dev-shouldn-t-architect-that-project-abc3222e80de#.tzqpkdxve">architecture decisions not being dictated by tech leads</a>, stronger code ownership, effective scoping and estimating, etc. All of these solutions (and more) have had tons of great talks given and articles written concerning them, but there’s one major piece of the puzzle that’s mysteriously absent. I remember it being a key point in my CS classes, but throughout my time working professionally, there doesn’t seem to be much importance placed.</p><p>Planning. Not just architectural discussions and documentation, but planning folder structure, linting, frontend layout approaches, application structures and diagrams, diagrams, diagrams.</p><p>Diagrams. I feel like anyone who’s taken a CS class has been taught at some level what a function diagram is. Diagrams aren’t just useful for functions. Think about asynchronous control flows, complex application communication, logic that surrounds business requirements. I use <a href="http://lucidchart.com/">Lucidchart</a> pretty readily, both at work and at home. Lucidchart is super collaborative, allows a ton of sharing, and has a boatload of built-in diagram blocks to choose from.</p><p>I always tell my junior developers to plan before they code. I try and drill it into their heads, and sometimes I succeed. I tell them to draw out on paper how they’re going to approach containers with HTML and CSS, to jot down their step-by-step function actions, and to map out their schema. I remember being a junior developer (despite all the beer) and I remember how exhilarating it was — and still is! — to just jump right in and code while on the edge of your seat, not really sure what would come next, what awesome solution you’d break out next. The idea of wasting my time <em>planning</em> when I could be <em>coding</em> was ludicrous to me. But you know what I discovered, once I started planning before I touched a line of code?</p><p><strong>That the fun stuff, figuring out a solution and effective solving a problem, was all done with effective planning.</strong></p><h4>A Note About Good UX</h4><p>Hire a UX engineer if you do any sort of serious web development as a shop. <strong>If you’re just the tech lead, beg your boss. Hands and knees, just start begging.</strong> Good UX does a lot for a project, but in terms of what it means for the subject of this article, good UX informs good dev. UX through BI/BA, wireframes, functional specs, anything. If you have some solid UX, chances are most of the difficult, abstract, non-technical work has already been done by the time coders even get involved.</p><h4>Plan to Plan</h4><p>In summary, planning is crucial. Planning every step of the way, not just the beginning of a project, is <em>essential</em>. Too often, developers will plan before they start to code a project, but by the time they’re a week in, chances are you’re not going to see a ton of focused planning. So what can you do?</p><ol><li><strong>Realize that effective planning isn’t going to add time to your scope.</strong> Drill that into the heads of your Project Managers. Planning is good. A solid, experienced PM will be drooling when you mention developers planning.</li><li><strong>Sit your whole team in a room, or open a channel in Slack.</strong> Ask them why they don’t plan as much as they should, and then show them this article.<em> (Shameless promotion, I know.) </em>Ask them how you can help enable them to plan more.</li><li><strong>Expect planning. </strong>Tell your team that you expect them to plan, and that effective planning sessions can impact their performance. And then <strong>hold yourself, and them, accountable.</strong></li><li><strong>Be part of planning exercises. </strong>In the beginning, depending on how your team operates, you’re going to probably want to be in a few planning sessions to help them get going and to encourage collaboration. Figure out what diagrams, lists, charts, and exercises work best for your team, and then make them a part of your culture.</li><li><strong>Teach new hires how y’all do thangs.</strong> It’s a cultural thing that’s expected of everyone, so make sure you don’t leave your new hires in the dust! They’re, in theory, your next gen devs, so make sure you’re instilling the right ideals into them from the start.</li><li><strong>Make sure planning sessions are documented. </strong>This is probably the most critical. What good is effective planning if the results of that planning session are left in the room when everyone leaves? What if half the team gets hit by a bus and you have to ramp up X/2 developers on a project after the team had already completed two-thirds of the build?</li><li><strong>Make sure planning sessions are collaborative and conducive to idea sharing. </strong>In my experience, there’s only a few subsets of developer personalities, and one of them is quiet, and the other one is loud. Make sure you, as team lead, are keeping the balance.</li></ol><p>It’s not going to be an easy road, goodness knows that I’m still working to see what I can and can’t do with my team. You are going to be at this for a while, but once planning becomes a part of your culture, everyone can move faster while all being on the same page.</p><p>You have to promise yourself something, before you even start trying to implement some kind of planning culture, though. You have to promise that you will help shape, inform, and nurture planning. You can’t just tell your team that they need to start planning more and walk back into your office/cubicle/corner-desk-underneath-the-daffy-duck-velociraptor-on-a-skateboard-painting. You owe it not just to your team, but to yourself, to see this through. <strong>Because, in the end, you know who’s going to be stressed out the most when that project deadline is looming, and none of project management’s finest tools can save you? You, tech lead.</strong></p><p>So grab your team, pick up that paper and pencil, uncap that whiteboard marker, and open up your favorite diagramming software and get to it. Get planning so that you can get coding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=947c080bf65d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making Errors Count]]></title>
            <link>https://medium.com/@mikemclaren/making-errors-count-a341c7a9056?source=rss-24075ce764be------2</link>
            <guid isPermaLink="false">https://medium.com/p/a341c7a9056</guid>
            <category><![CDATA[error-handling]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Mike Mclaren]]></dc:creator>
            <pubDate>Tue, 16 Feb 2016 13:14:58 GMT</pubDate>
            <atom:updated>2016-02-16T13:15:34.491Z</atom:updated>
            <content:encoded><![CDATA[<p>I was too young when I encountered my first software error. Cocky, impressionable, insatiable, and still confused about my own place in the world, I had wanted to be a writer and create worlds with my words that had moving, thoughtful people as inhabitants. You see, I had a God complex — as most teenagers do — and I was overly eager in general, and yet apathetic enough to not really work towards much of anything at all.</p><p>I was probably 16, sitting in a CS101 class, copying Java verbatim from a text book five years older than it should have been into an IDE that probably cost the school district an incredible sum of money, when out popped a bizarre set of characters that had the audacity to tell me that <em>I had done something wrong</em>:</p><pre>&#39;;&#39; expected<br>  }<br>  ^</pre><p>I was a mix of confused and frustrated, as I had never before encountered anything quite like this before, and had only been mindlessly typing on my keyboard, desperate for “Hello World!” to show up in my IDE’s console so that I could move on with the lesson and be done for the day. I scoured through what I had typed character by character, and eventually noticed that I had forgotten to type a semicolon at the end of a line. I added the semicolon and was greeted by the phrase that would haunt me for a decade, and made a note to myself that semicolons were important in Java. That was that.</p><p>And yet, that error shook my life. I learned that errors were the gateway to understanding a programming language, that each little error was a puzzle that would expand my own internal universe. <em>I was hooked.</em> By the end of the semester, I was helping out all that I could, assisting other students in their quest to solve their own cryptic errors.</p><p>Looking back, I realize that we were never taught about the actual errors we’d encounter when programming in Java. We were learning <em>for</em> loops, <em>while</em> loops, <em>functions</em>, and <em>objects</em>, but we weren’t learning errors. <strong>Errors were just to be avoided.</strong> If you programmed properly, you didn’t encounter an error and if you encountered an error, you fixed what you had programmed, recompiled and moved along.</p><p>Perhaps academia is different, but I’ve been programming professionally in one way or another for some years now and it’s become self-evident that <strong>errors are unavoidable. </strong>I’ve met some good programmers, and I’ve seen the work of great programmers, and they all make horrible, terrible errors that crash servers, render browsers frozen, and generally make a mess of everything from time to time.</p><p><strong>The best programmers not only learn from an error, but they prepare for the next one.</strong></p><h4>Knowledge Is Power (And Moon Landings)</h4><p>Here’s one of my favorite stories: Jack Garman was a computer engineer for NASA in the ‘60s, and worked as an advisor to flight controllers in Mission Control, helping them understand how their incredible computer systems worked. While trying to land the Apollo Lunar Module during Apollo 11 (on the <em>MOON</em>), a 1202 alarm went off on the system, causing a concerned and rather occupied Neil Armstrong to ask Mission Control to “Give […] a reading on the 1202 program alarm.”</p><p>Garman told Steve Bales — the guy who had the difficult job of quickly determining whether to abort a mission or not in such situations — that everything was alright, and in seconds the information was relayed and we landed on the frickin’ moon.</p><p>Steve Bales later said, “Quite frankly, Jack, who had these things memorized said, ‘that’s okay’, before I could even remember which group [the error] was in.”</p><p>That’s right. We only landed on the moon because our intrepid Jack Garman, hero computer engineer, had gone out of his way to learn and memorize every single system error, that error’s possible cause, and the appropriate response. I’m sure that Jack could have told you all you needed to know about how the software that powered the LM actually worked, but more importantly, he knew how the systems worked when everything went wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_Gn7ywYOtOQWbaIrYMcvA.png" /><figcaption>“Can’t set headers after they are sent” error that I’ve seen one too many times. Usually means async issues or a lack of a return somewhere.</figcaption></figure><h3>“What Not To Do”</h3><blockquote>“The absence of limitations is the enemy of art.” — Orson Welles</blockquote><p>Here’s a question for you: what defines a circle, a square, and a triangle? <em>A perimeter. </em>It’s the negative space enclosed around an object that makes the object tangible and distinctive. We need limitations, we need restrictions, otherwise we drift helplessly through space. The same is true with programming languages.</p><p>Every language that I’ve ever worked with has some form of restriction: syntax, memory, environment sandboxing, <em>something</em>. The world of computer science is incredibly vast, and I often tell the people I work with that <strong><em>anything is possible, it’s just a matter of time</em></strong>. And darn it, I honestly believe it.</p><p>That concept, something you only seem to gain these days with experience, has led to me a strong belief:</p><blockquote>As a developer, you have to make errors count.</blockquote><p>Don’t avoid them. Don’t think in that brilliant head of yours that you are somehow going to altogether reach a level of perfection where errors don’t happen. Because they will, and when you don’t plan for them to happen, they just eat away more time and cause more devastation.</p><p>Make the errors count by learning everything you can about them. When you find an error, write it down. Research it. Try to have a go-to bank of already encountered errors in your noggin so that you can quickly debug not only your code, but help others debug theirs. <strong>Learn what errors happen more frequently than others; you know, what errors are more human than others? </strong>Learn, learn, learn. Be the smartest dev in the room when it comes to error handling, and guess what? You’re probably the smartest dev in the room.</p><h3>Making Errors Count (With Code)</h3><p>Learning can only get you so far. In fact, learning all you can about errors is effectual for when errors pop up, but as said before, errors are always going to show up in your beautiful, well-thought out code. To better make errors count, you and your team should be practicing at least three simple principles:</p><ul><li>Quarantine</li><li>Cure</li><li>Vaccinate</li></ul><h4>Quarantine</h4><p>The best code is code that can be easily broken apart, changed, and tested without necessarily impacting larger parts of the system. Modularity and functional scope is a key tenant of effective programming and should be the ruler in any dev’s toolkit. Modularity also allows parts of the application to go horribly wrong: after all, if a piece of code is only worried about itself, mysterious silent bugs are a little easier to discover.</p><p>But sometimes you don’t (or, for whatever reason, can’t) have modularity. Even with modularity, it can be a bit hard — especially with JS — to deal with<br>an error cascade and the sometimes perfectly unhelpful stack trace. This is when the perhaps not elegant, altogether intrusive but glorious <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch">try/catch block</a> comes into play.</p><p>Wrap your code in try/catch blocks when you have to, especially if you’re in a debugging frenzy. You can stop the cascade, record a trace much more accurately, and even start sending off more <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error">customized Error messages</a> (which I tend to be a fan of). Think of try/catch as a modularity bandaid. (Don’t overdo it, because bandaids aren’t going to stop you from bleeding out.)</p><blockquote>Modularity and functional scope is a key tenant of effective programming and should be the ruler in any dev’s toolkit.</blockquote><h4>Cure</h4><p>Once you’ve quarantined an error, you’ve got to remove it. So do that, remove that error like the glorious dev you are. There, you got it? Good job!</p><p>But wait. What about the side effects?</p><p>Sometimes, it’s easy. A bug is something silly, like a syntax error or a typo that caused a variable to go to Nowhere. Yet, other times, it’s complicated. Heck, even when you have a simple error, sometimes make a piece of code work and progress to a future step causes, yes, more bugs. Be prepared to do some triaging, and always remember to test, test, test, especially when fixing bugs. <strong>Regression issues are real, people, even with bug fixes.</strong></p><p>In the interest of being the world’s greatest expert on the subject: I will confess, on the record, that I have brought down a production server not once but several times in the (now distant) past because of my negligence when it came to testing code after fixing a bug.</p><h4>Vaccinate</h4><p>This is the moment you’ve been waiting for; this is the part where I tell you exactly how to make errors count the most: by <em>probably</em> preventing them from happening again in the future. How?</p><p><strong><em>Testing.</em></strong> I mean unit testing, end-to-end testing, endpoint testing, manual test case documentation, anything. Any permanent testing baked into your process, preferably automated. If you’re not testing your code with code, you’re losing the battle against errors, I promise you.</p><p>What’s to say that after you cured Bug X that it won’t occur again after a feature push 12 months from now, when the developer who has never even seen your face is working day and night to please the client? Dev Y won’t have any idea how to fix that bug, despite the fact that <em>you did. </em>You could have prevented that forest fire, and you didn’t, because you didn’t believe in/have time for/were too awesome for automated tests.</p><p>I get it, I do. You have demanding clients, tight deadlines, no time in the world to even think about testing, let alone actually learn how to do it and implement it. Well, guess what? <strong>So do all of us. </strong>But somehow, a group of us seems to manage. My personal suggestion? Get really good at Test Driven Development on a personal project on your own time, and then incorporate that into your day-to-day development work.</p><p>TDD has up front costs, and costs that go on through the course of a development life cycle, but so does bug fixin’. By some estimates, developers spend over 50% of their time fixing bugs. So why not make tests for the bugs you encounter, as you encounter them, and keep yourself from unexpectedly releasing that bug back into the wild again? Everyone will be happier. The users, the consumers, the clients, the bosses, the bosses’ bosses.</p><p>Once you’ve started vaccinating, you’ve really started to make errors count.</p><p><strong>Stop making excuses. Write tests.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a341c7a9056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You, Lead Dev, Shouldn’t Architect That Project]]></title>
            <link>https://medium.com/@mikemclaren/why-you-lead-dev-shouldn-t-architect-that-project-abc3222e80de?source=rss-24075ce764be------2</link>
            <guid isPermaLink="false">https://medium.com/p/abc3222e80de</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Mike Mclaren]]></dc:creator>
            <pubDate>Tue, 26 Jan 2016 14:18:58 GMT</pubDate>
            <atom:updated>2016-02-22T02:32:48.383Z</atom:updated>
            <content:encoded><![CDATA[<p>I can completely understand the overwhelming feeling deep down inside your chest right now: You’re the big fish, the one with the nice shoes and the awesome haircut. You fought from the bottom of the barrel and are now at the top. You’ve gone through the trials and tribulations that all junior and senior developers before have, dealt with legacy codebases that made you want to scream, and architectures designed by novices and out of touch lead developers that just passed ideas down from their ivory towers. You have, through years of experience and weaseling your way up the ladder, earned the right to architect that shiny new project your client/boss has just thrown in your lap.</p><p><strong>I understand the sentiment because I share it.</strong> I have even acted on those feelings and lorded over my kingdom with my grand, perfect architecture.</p><p>Six months later, when I no longer touched the codebase and members of my team were frantically trying to figure out how to make X fit in Y, I found myself constantly trying to justify and explain the decisions I had previously made.</p><h4>The Problem is…me?</h4><p>You see, that’s the problem. <strong>I only cared for the dream, not the reality.</strong> Many developers before me had fallen into that trap, whether they were juniors or leads, and many more will fall in after me. But most importantly, I forgot that I would not be building the product, only overseeing its delicate work. I was handing blueprints to a group of architects and telling them to build the same exact thing, but in a way that fit the actual client needs three months later.</p><p>Now, I will say that I’m good at architecting. Impressively good, if any potential recruiters or future interviewers out there are reading this. I have a ton of experience and knowledge that’s really hard to just stumble upon (though I managed, somehow) and I bring some unique perspectives to the table. I’m also a bit of a control freak, so when I decided to no longer personally architect a project, I needed a way to still have my fingers in the pie, without getting in the way. After all, as development managers, it’s our job to help guide, help nurture, and help ensure project quality.</p><h4>My plan? Well, here’s how architecting should go down:</h4><ol><li>When a project has been scoped and passed along, or new features are going to be added to an existing project, <strong>you</strong> <strong>pull in the whole team involved in that project and give them a run-down of features and any future tasks</strong> that may or may not run through the door.</li><li><strong>You task the team with creating the architecture and solution for the feature sets coming through the door.</strong> Brand new projects are more extensive, add-ons to existing products tend to be less extensive, unless some kind of major overhaul is needed due to major project scope changes.</li><li><strong>You give the team a set amount of time to plan</strong>, where you invite them to ask you questions, but generally just leave them alone and stay away from them. You don’t want your presence to throw any brain-sun on brainstorming.</li><li>After gathering their ideas, <strong>you</strong> <strong>have them pitch the idea to you</strong>. The goal is for them to articulate clearly why their architecture and solution, the reason they went with that architecture and solution, and how their architecture and solution is potentially future-proofing the project.</li><li><strong>You give them some constructive criticism</strong>, usually just in the form of questions. If you’re a manager and haven’t mastered the art of constructive criticism, go read some articles and grab a book about it. It’s important.</li><li>They respond, <strong>you all</strong> <strong>collaborate to patch any holes in their proposal</strong>, and then you all figure out what steps need to be taken to implement the proposal. After all, it’s important to keep an architecture within scope and estimations.</li><li><strong>They build it</strong>. You go drink some coffee, tea, or beer and high-five a project manager.</li></ol><h4>Benefits Outweigh the Risks</h4><p>You’re still concerned. I get it, I get it. But at this point, even with no code typed towards a project, you’ve gained an intangible benefit: <strong>your team now feels empowered.</strong> They’re probably excited for the project. After all, what dev doesn’t like to start from scratch? I’ve written an article about <a href="https://medium.com/@mikemclaren/code-ownership-in-the-workplace-b190c2b51b10">team empowerment</a> before, but it’s worth repeating: empower your employees, save yourself a series of painful headaches.</p><p>Of course, that’s not all! If you order today, on top of the empowerment, you will also have:</p><ul><li>Taught and enabled less experienced, or less management-driven developers, how to effectively architect a project.</li><li>Nurtured a team atmosphere full of collaboration.</li><li>Established early architecture documentation. For real, have your team write everything down and throw it in a README.md or wiki. Please. For you, for them, for me.</li><li>Kept your own ego out of the architecture process, and helped keep the project more maintainable by spreading base knowledge about the project across the entire team.</li><li>Made the world a better place for the potential next lead developer who has to take over the project. At least you know the next lead won’t be aching to take a little leak on your grave!</li><li>Most importantly, crafted a better architecture. More than one brain is usually better than one brain.</li></ul><h4>You’ll Always Be a Snowflake</h4><p>So just accept it. You are super special, but so is your team. Let them make their own architectural decisions and act as a guide, not a dictator. <strong>You’ve earned it.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abc3222e80de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code Ownership In the Workplace]]></title>
            <link>https://medium.com/@mikemclaren/code-ownership-in-the-workplace-b190c2b51b10?source=rss-24075ce764be------2</link>
            <guid isPermaLink="false">https://medium.com/p/b190c2b51b10</guid>
            <category><![CDATA[management]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[ownership]]></category>
            <dc:creator><![CDATA[Mike Mclaren]]></dc:creator>
            <pubDate>Tue, 19 May 2015 15:54:22 GMT</pubDate>
            <atom:updated>2015-05-19T16:42:58.742Z</atom:updated>
            <content:encoded><![CDATA[<p>Like most companies, the company that I work for has been having some growing pains. Over the course of a little over a year and a half, the development team I’ve found myself on has grown from 5–6 developers to over 15, with an increase in client work to match. With a plethora of projects to work on, a decent sized team of capable people, and a nice project management structure keeping us afloat, we still have found ourselves in choppy waters.</p><p><strong>Working on older projects, even those made within the last year, tends to be a nightmare.</strong> The people who wrote the project come and go, tech and frameworks swap in and out, deadlines make slobs of us all, and before you know it, maintenance on client sites becomes extensive and expensive.</p><p>Recently, I set out to classify what the root of our problems were, so that I could find a decent solution. I asked members of the team, looked at some of our more utilized and recent repositories, and got to note taking. <strong>Here’s what I gathered</strong>:</p><ul><li>Some people know some of the code really well.</li><li>Documentation (even things like SASS compilation commands) is lacking on nearly all repositories.</li><li>New people (or rather, “fresh” people) jump on projects after launch for hot-fixes and feature requests.</li><li>Sometimes hot-fixes lead to other issues.</li><li>There’s no real organizational accountability.</li><li>Code quality kinda sucks.</li></ul><p>One of the items on the list jumped out of me rather quickly after typing it all out for the first time: <em>the lack of accountability</em>. In a way, the problems caused by people jumping in and out of projects, the lack of documentation, the code quality, all stemmed from that one issue.</p><p>My reasoning and thesis is this: <strong>give people writing the code ownership over that code</strong> — make them personally responsible for the welfare of that code — and you can solve a large portion of frustrations caused in the late-state of projects.</p><h3>What is a code owner?</h3><p>A code owner should be someone with the largest possible amount of knowledge about a repository’s <em>technical</em> goals. Code owners should be at the repository or large feature group level, not necessarily the project level. Code owners can work in pairs or groups, and act as the ultimate authority when it comes to technical and code-level changes to the repository. Code owners can be junior developers, senior developers, and all those in-between, and really, they ought to be!</p><h4>What are the responsibilities of a code owner?</h4><p>The responsibilities for a code owner will more than likely vary by organization, project, and repository, but I’ve listed out responsibilities I feel will more than likely hold true for most situations.</p><ol><li><strong>Managing pull-requests. </strong>In a code owner system, pull-requests become a part of daily life for a repository. As you should probably be using pull-requests anyway, this allows the code owner to be the final authority on what gets merged into the important branches (primarily, master).</li><li><strong>Maintaining code quality. </strong>By using pull-requests, the code owner has the opportunity to do peer code reviews, which can ultimately lead to improved code quality when done right. The code owner also has the opportunity to impose either organization-wide code guidelines or implement their own guidelines more specific to the tasks at hand. So long as these are documented and easily implemented (with the help of .editorconfigs and varying rc files), legibility of the code improves rather nicely in the long-term.</li><li><strong>Ensuring documentation exists and is up-to-date. </strong>This is broader than just code-level documentation (which should be covered in code review), and is more applicable to documentation regarding set-up, organization, contribution, deployment, and general development guidelines. Documentation is one of the easiest ways to ease development frustrations.</li><li><strong>Acting as knowledge bearers. </strong>A code owner can be the owner of many repositories, with other developers jumping in and out of each during different parts of a project’s lifecycle. The code owner has a responsibility to help and assist those who work within their repositories, particularly when it comes to gaps in repository knowledge.</li></ol><p>By implementing code owners into your organization’s structure, you have the power to give accountability at the code level. With accountability and good devs comes well-documented and legible code, which in turn allows for a better process that grants more flexibility in regards to personnel and projects. I’m hoping this solution helps my workplace, and I’m hoping that the same solution can help yours.</p><p>If you’re a manager, empower those you manage and explicitly give them the responsibility you’re already implicitly giving them: the responsibility of keeping their code clean and maintainable.</p><p>And most importantly, if you’re not a manager, <strong>take ownership of your code.</strong> It’s really that simple.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b190c2b51b10" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>