DEV Community

Cover image for Developer-driven development
Isaac Lyman
Isaac Lyman

Posted on • Updated on

Developer-driven development

NOTE: I moved on from DirectScale in late 2017. However, I stand by the principles I describe here, and I’ve made an effort to bring them on board at my new job.

If you enjoy this, you'll love Your First Year in Code, a book of practical how-to and advice for new developers. If you're considering a career in software, check it out at https://leanpub.com/firstyearincode.


The company I work for is slowly losing its "startup" status. I'm trying not to be too nostalgic about it. After all, it means we're doing well; a slew of truly impressive awards and contracts in recent months means we're doing great. There's a lot to be grateful for. At the same time, a lot is changing.

As this transition has played out, we've had to upgrade a few things. We've hired a CTO and an Enterprise Architect. Phrases like "PCI compliance", "load testing" and "root cause analysis" are becoming standard fare in the office. We're becoming more cautious about deploying production code. We're growing up.

But a lot of things have stayed the same – we're still the same company where it counts. When I arrived, I learned that the fight against technical debt was a high priority around here; it still is. Our counterculture attitude toward code reviews is still going strong. We still wear a lot of hats. We're moving quickly, so we can only keep what works – some practices are being proven and others are being discarded. And thanks to the foresight of our early hires, there's more of the former than the latter. Our development workflow has been the same for as long as I've been around. It works really well.

I'll go beyond that, though. We don't keep doing things the same way just because it works. Practically anything works if you have unlimited time and funds and a few hardworking developers. Works is incidental. What matters more to me is that our process makes my Type-A, obsessive, engineer-personality heart feel good. We don't waste a lot of time, our code base doesn't get worse over time, I don't have to build features I hate, and our workflow doesn't frustrate me on a daily basis. If you're a software engineer you must understand how good that sounds.

Our secret ingredient, I've decided, is something like this:

We do the second one.

People in general (including developers) have a tendency to treat developers like code-writing machines, brainiacs who wear headphones and crank out switch statements. But this stereotype falls short of our full potential – otherwise, a developer's value would be determined solely by her technical knowledge and typing speed. A developer at her best is a Swiss Army Knife for software – someone whose creative, insightful and rational thought process makes her a valuable part of any discussion in the company. Companies that appreciate this fact have happier, more productive developers – developers who (believe it or not) don't spend 100% of their time staring at code. DirectScale excels at this.

So enough hype: what exactly are we doing, and why am I convinced that it represents a set of common-sense best practices – not just for us, but for any software team? That's a question that merits a multi-part answer. Let's dive in.

What we don't do (ever)

An average "Agile" workflow at an average company goes like this:

  1. Someone in a dark gray suit decides that a new feature should be built.
  2. He gathers with two other executives and blithely decides what the feature should do and what it should look like. No one's consulted a developer yet (more on this later) so the whole idea is hopelessly naive.
  3. They pack up their conversation and send an email to the highest-ranking non-developer in the Code Zoo. They leave out a few important details.
  4. The non-developer (a project manager? A product owner? A scrum master? Insert the latest trend) writes up a set of business requirements based partially on the email, partially on her conception of the company's mission, and partially on personal druthers. Over the next two days, these business requirements are mystically transformed into a set of user stories.
  5. A developer is assigned one of the user stories. If he's extremely unlucky, he has to estimate how long it's going to take him to finish; this involves both advanced calculus and a particular form of voodoo. He immediately starts thinking in code and has written 55 lines of pristine, elegant C♯ before he can stop himself. The connection between brain and keyboard is like Niagara Falls. The feature comes to life suddenly. He submits a pull request and kisses his fingertips like a French chef.
  6. The developer's team lead reviews the pull request and rejects it with 17 explanatory comments: this code is not performant, this method doesn't cover an edge case, that class reads like a horror novel, and the resultant feature doesn't look anything like the original specification.
  7. The developer rewrites his code twice with plenty of back-and-forth from the team lead. Two days later they're both satisfied with the result.
  8. The code is merged and deployed to production the same day.
  9. A few days later the executives read a brand-new set of release notes, very pleased with everything that happened during the sprint. One of them wonders why the feature he requested wasn't built. He begins again at step 2.

This obviously isn't great. It's the love-child of Chinese Whispers, Pictionary and 20 Questions, which may be great games but are not great ways to run a company. All the same, silicon's best and brightest stand by it, it's peddled by Agile coaches, and it's the default methodology for young teams.

We can do better, starting from the very first step.

Developer involvement and buy-in

At DirectScale, we don't hire a bunch of Idea People to sit around and imagine up cool things for us to build. I hate to break it to you, but "Idea Person" isn't a real job. Sorry. The fact is, everyone has ideas. Everyone can offer good suggestions for how your product can improve and what problems it can solve. Companies, in return, can encourage those ideas or they can repress them. Most companies choose to repress, albeit in subtle ways – leaving developers and designers out of product vision discussions, passing instructions and requests through a middleman, or writing off developer push-back as "laziness" and "complaining."

A better method is to make sure a representative from each phase of the development process is present in every meeting about every feature, from inception to completion. Instead of waiting until the next sprint to find out that your feature isn't technically feasible, why not find out right now? Yes, this means your developers are spending a lot of time AFK (away from keyboard). But if you invite their feedback and listen to them, it also means that they'll buy in – they'll commit to the shared vision of the team and take ownership of the feature, which will mean faster and better turnaround on their part. For bigger features, you need more buy-in, which means more developers in the room.

As I mentioned, this also prevents you from wasting several days dreaming up a feature that the developers can't (or shouldn't) build. As most of us have learned, features that seem straightforward can sometimes be incredibly complex, impossible or illegal. Nobody likes to find this out after the feature's release date has already been scheduled.

The most recent meeting I was in was a Design Studio for a large feature set which may come to represent DirectScale's single largest source of income in future years. It's the most important product vertical we've discussed all year. Guess who attended?

  • A UX designer
  • Three or four developers
  • A graphic designer
  • Our project manager

The functionality we were going to build had not been described in great detail by the higher-ups and not a single C-Something-O or VP was present. It was all us. And why not? We had come prepared; our UX designer and project manager both have industry experience and they had interviewed several customers who might use the feature set. The executive team had expressed their expectations (without trying to control the creative process). We'd already had a few discussions in which we had defined the scope of the problem to be solved. And we were the ones who were going to build the thing, after all.

Two and a half hours later (a longer meeting than usual, but worth it), we emerged with some sketches and a shared understanding of the first piece of the puzzle, each of us satisfied that our ideas had been a part of the result. That's how our product comes to life.

Dev designs (code reviews in reverse)

Once our ideas have metamorphosed into a prototype, we get ready to code. But we don't open our IDE's just yet.

See, software construction is a lost art. Steve McConnell, author of Code Complete, spends a couple of impassioned chapters talking about the space between the creation of business requirements and the writing of code – the space when, according to him, the brightest architects in the office should be drawing detailed maps of every class, interface, interaction and data point that's about to be written. From McConnell's perspective, writing code with nothing but a user story or a design is like building a skyscraper without a blueprint.

But somehow, most companies have forgotten how to plan.

The problem is between steps 4 and 5 in our example Agile process. After the user stories were defined but before the developer started tickling the keyboard – what happened? In most cases, nothing.

An experienced developer may be able to foresee all the work needed for simple tasks. But even the best of us run into unforeseen obstacles. We've all had that oh-crap moment when, just as we're writing one final line of code, we realize that an entire set of situations isn't accounted for in our logic.

Then there's the sinking feeling of discovering that a new member of the team has written an entire class to solve a problem that already has a standard, reusable solution elsewhere in the code. Five minutes of knowledge-sharing before coding began would have prevented three hours of reinventing the wheel.

When code isn't planned out as code, none of our well-intentioned processes can succeed: standards are ignored, reusability dies out, and code becomes more scattered and bug-ridden over time. Inside of a few short years, you're dealing with legacy code (shudder). Certain issues will come out in the code review, but by then so much has gone to waste: hours of development time, several problem-solving cycles, and the developer's enthusiasm and dedication.

All of these problems could be avoided (or at least mitigated) by exactly the thing Steve McConnell recommended in 1993: planning ahead.

At DirectScale, we've turned the code review on its head. Instead of reviewing code after the fact, we make sure it's correct ahead of time. We plan ahead. We call this the Dev Design, and it looks a lot like a collaborative code review performed before anyone has written a single line of code. It works like this:

  1. A user story is created.
  2. A developer is assigned to design the work required for the story.
  3. The developer looks at the requirements, digs through the codebase for anything useful or relevant, researches the libraries and techniques that may be needed, and writes out a detailed, step-by-step description of how he would write the code needed to complete the user story. The resulting document (the Dev Design) includes all the variable names, caching techniques, classes, interfaces, and interactions that will end up in the code. In tricky cases, the developer may even include several lines of pseudocode.
  4. The developer schedules a meeting with the other developers on his team. Together they review the Dev Design and alter it as needed, suggesting alternative methods, sharing knowledge, and making architectural decisions.
  5. The team completes the tasks as specified in the Dev Design. If there's a problem that forces them to diverge from it, they discuss it on the spot and decide what to do.
  6. Most of the time, no code review is required. The code is merged and submitted for QA as-is.

The amount of back-and-forth we avoid by doing things this way really is phenomenal. At a previous company, under an especially finicky team lead, I averaged almost five rewrites per pull request. Now I average zero. Planning ahead ensures that things get done the right way, the first time.

20% time (not the Google kind)

At DirectScale we don't allow technical debt to pile up. As technical debt gets older, it grows (just like regular debt) and when it reaches critical mass, it invariably ends up breaking the user experience and annoying clients. What's worse, it frustrates coders and can cause serious instances of the "what-the-hell effect" for anyone who has to work with the affected code.

Resolving technical debt, though, is a counter-intuitive activity. For starters, it doesn't look like anything. If a senior developer spends a week paying off technical debt – refactoring code, splitting classes, smoothing out kludges, accounting for edge cases – what does he have to show for it? Other developers will appreciate the difference, but anyone with the word "manager" in their job title is forced to go on faith. Nothing new can be shown to clients, no urgent bugs have been fixed, the application may not even be noticeably faster. If a product owner finds the line "addressed technical debt" in your release notes, how do they know you weren't playing flick-the-paper-football all week? They don't.
But the "debt" analogy holds true for this situation. Say you're in $15,000 of credit card debt. If you spend your next three paychecks paying it down, what do you have to show for it? Really not much – no new furniture, no fancy dinners, no repairs for your furnace or car. But you are much better off than you were. And you better know it.

To prevent both managers and developers from getting too caught up in deadlines and features to invest in healthy code, we enforce a strict minimum: at least 20% of our time is spent fighting technical debt. That means one in every five user stories. A few times a week, we're standardizing, refactoring, load testing, researching, creating developer resources. We're doing things that our clients will never know about. But what they do know is that our software is more cutting-edge, reliable and delightful than anything they've ever used. And they aren't afraid to say so.

Although the work we do to address technical debt isn't always exciting (refactoring, in particular, is one of the most challenging and tedious things a developer does) and although it doesn't provide the instant gratification that feature-driven tasks do, it is rewarding. The feeling of tweaking and improving pure code for a day or two is something like the feeling of recovering from a cold: the world just seems brighter afterward. You look back and see that your code is sensible and maintainable in a way it wasn't before – it looks like something out of a textbook. And your work pays off for months to come. Working with code that has been properly cared for is a constant relief.

Story despecialization

Startups are infamous for requiring their employees to wear a lot of different hats. Some companies treat job titles as an afterthought; at various times you may end up being (as I have been) a back-end developer, a front-end developer, a QA engineer, a technical writer, a Spanish translator, a usability interviewer, and a printer support technician. Some people dislike this characteristic of small companies. I love it.

On our team we encourage despecialization all the way down to individual user stories. In some companies this is called "swarming." Our method goes like this: when a developer is ready for another task, he is assigned the topmost task on our priority board whether or not he worked on the other tasks in the user story (and whether or not he knows how to do it). Our team is responsible for a product, not a programming language – if you knew T-SQL, C#, .NET, JavaScript, Angular.JS and SASS when we hired you, that's great. If not, you'll learn as you complete the tasks that require them. This makes us more like artisans than assembly line workers. Our goal is to make sure that every one of us knows enough about every part of the source code to work with it effectively, especially in an urgent situation.

This also ensures that our team passes the "bus test": if a random member of our team were hit by a bus tomorrow, would we be able to continue without a hitch? Or would someone have to be assigned the uphill task of figuring out how to maintain the code that was under their jurisdiction? The bus test is especially telling at DirectScale, where I'm surrounded by highly talented and competent coworkers, people who are passionate about subjects I'm barely conversant in. But I like to think we'd pass it. Even if our most intelligent and hardworking employee were to die suddenly, the work would go forward. And no one would even miss me that much (I kid, I kid).

Brown bags and professional development

DirectScale encourages a culture of constant learning and improving. This goes beyond sponsored PluralSight memberships or a company library. We recognize that the best teachers are the ones who work among us and the best classroom is the one where personal interactions and discussions are the lesson plan. To that end, we take time once or twice a month to learn from each other in a group setting. We call this a brown bag.

This usually entails a presentation from someone in the company who knows more about a certain technology or skill than the rest of us. We've had brown bags about topics as diverse as CSS, teamwork, sleeping habits, and SQL debugging. Anything is fair game.

Like despecialization, this helps us to pass the bus test. The amount of information a truly passionate person can communicate in an informal one-hour meeting is impressive.

It also improves developer happiness. Developers are happiest when they are learning and growing. My best days at work – the days when I come home beaming, totally jazzed about my job – have been the days that I learned a new framework or concept and started putting it to good use. We developers get a huge thrill out of learning new things.

Why so happy?

I've spent a lot of time detailing the things that make me happy at work. And although I've tried to balance this by pointing out all the other benefits of our workplace methods and philosophies, I'm a little worried that someone will read this and totally miss the point. At some company, somewhere – a company that too many of my developer friends seem to have worked for – there is a group of middle managers who are stuck in the year 1906 and all they can think is "Who cares if you're happy?" To them, developers are like dairy cows. You lock them in a cage, you milk them for as many lines of code as they're willing to produce, and then you get rid of them. If one quits, another will take his place, so long as the salary is appealing enough.

If you ever have the misfortune of managing someone with this attitude, I invite you to fire them.

Here's a news flash: happy developers do incredible work. In fact, this is almost a foregone conclusion – the question successful companies are asking isn't "Should we treat our developers well?" It's "How can we make our developers happier?"

On the flip side, unhappy developers produce poor code for a little while and then quit. If you don't treat developer happiness as a company-wide priority, you will eventually be forced to treat developer turnover as a company-wide crisis.

I realize that as a developer it's in my own best interest to say this. You could accuse me of being a diva. And maybe you're right. But if I'm a diva, I'm a diva that bleeds excellent software from all ten fingertips. Right now the demand for divas like me is through the roof. And I'm far from being the best or the brightest in my field.

To put it simply, there are no benefits to trying to optimize developers the way you would optimize an assembly line at a cigarette factory. You have to let them do things their way. But you'll be pleased with the results. Happy developers write good code. And developers who write good code are happy.

Conclusion

I've given you just a peek at what it's like to work for a company that really understands software development. I wish you could see the full panorama. I haven't been a programmer for very long, all things considered, but it's changed my entire outlook on the industry.

As you're probably aware, developers are the target of intense recruitment techniques. I hear from recruiters regularly, and one of them even talked me into a lunch date a few months ago. I made sure to ask him a few simple questions:

  • To what extent are developers involved in your design and discovery process?
  • How do you address technical debt?
  • How do code reviews go at your company?
  • How much "bad code" would you say there is in your codebase?

This made him uncomfortable. But (to his credit) he was honest with me: these weren't high priorities at his company. I thanked him for lunch and let him know I wasn't interested in any further conversations.

Listen: if you still think that foosball and Coke make developers happy, I'm here to tell you they don't. Sure, perks like that are nice. But what makes us developers really happy is solving challenges every day and building code that's familiar, well-written and full of features we're proud of.

If you can't offer us that, you really don't have much to offer.

Top comments (6)

Collapse
 
mvitaly profile image
Vitaly Polonetsky • Edited

Thank you for the article.

When I started reading it, I thought, how great is it to see the way we work described by someone else. We used to have meetings in, what we called, "the sniffing era" part of the sprint - few days before the sprint planning where we brainstorm new ideas, talk about high level design (or a need for a separate task for it), LOEs and homework for tasks breakdown.

And then, as I continued reading the article, I still saw my unresolved concerns with agile.
You are mentioning the "bus test" and on the other hand: don't treat developers as dairy cows. In my first experience with scrum, we would pass the "bus test", but no developer could feel unique. It's a very good thing for a company, but for developers it's harder to stand out. It's probably some traditional thinking by developers that they need to be unique or own a specific part of a system or a process in order for them to be happy.
In a practical example, it's the same as saying you won't be expert in language X, because we work as a team on a system that has language X, Y and Z. Most people find it as a disadvantage.
I'm wondering if you had any experience with breaking this way of thinking.
For me the despecialization you are mentioning is a way to have more system architects, but in practice we need both architects and people who specialize in specific language/framework/library.

Another interesting concern is how companies grow from startup to a bigger organization. In a startup, if you cannot cut corners and bring more money, there might be no place to come to work the next month. Which means the focus is on constant delivery of value today, which in most cases increases the tech debt. This creates some conflict of interests when the developer acts as the product manager too (somewhat related to the "bus test").
When a small company grows bigger, priorities change and the risk becomes lower, but people are harder to change, so they still want to produce code faster. And again, this change in people's minds is the key to success as the company grows, IMHO.

Collapse
 
isaacdlyman profile image
Isaac Lyman

Those are great questions.

I don't personally know anyone who would feel like they aren't unique or special enough because they had to learn some new tech as part of a team. That said, we do specialize a little--I'm a JavaScript specialist, and my team also includes a CSS specialist, a .NET specialist, and a Product Manager. The point is that we try to avoid a situation where any one person has domain-specific knowledge that nobody else has. In other words, my team lead is much better at .NET than I am, but between me and a couple of other devs, we know as much about the company's .NET codebase as he does. In rare cases we may choose to divide tasks based on specialty--especially if we're in a hurry--but the Dev Design process ensures that whoever takes a task knows how it should be done, with plenty of input from the specialist for that scenario.

And, of course, this means that any of us can go on vacation for a week or two without leaving the team incapacitated.

As far as technical debt goes, you're right that it's one of the easiest ways to speed up delivery. We've definitely cut our share of corners in the short-term in order to meet contract obligations. But we carve out time to go back and refactor--in fact, we demand it--and the time it takes is not usually an issue because:

  1. Well-architected code is much easier and faster to build on. We are able to move far more quickly now because we took the time to refactor early on.

  2. Technical debt-laden code is a breeding ground for bugs that are difficult to diagnose and resolve. By paying it down, we reduce our future workload.

So I believe that refactoring genuinely saves time in the medium- and long-term, and I'm lucky enough to work for a company that has the funding to think beyond the here and now. On top of that, I like to do it because I'm so much happier at work when I'm working with code that is smart and solid. Again, I don't personally know anyone who's reluctant to take part in refactoring, but maybe I've just been extraordinarily lucky in terms of who I work with.

Collapse
 
kevinrstone711 profile image
Kevin R Stone

These are some great realizations here. I love seeing stuff like this. I like your four questions to recruiters. Developer empowerment is a very valuable thing, but can be tricky to get insight into without actually working, or knowing people, at a company.

Most of what you moved to would more traditionally be described as Agile. The emphasis on collaboration is key (e.g. including dev team at all levels of the process, swarming, getting critical feedback as early as possible). The "Agile" scenario you described initially did not sound Agile in the slightest. I am lucky to never have worked for a company with such a process that had the audacity to call it "Agile". Not including the dev team in writing stories, and at least enumerating the possible code tasks is a woeful mistake.

The Dev Design idea is pretty cool. It's a very developer centered twist on something I've seen a lot in practice, which is to collaborate in writing all user acceptance tests before any coding begins. Both strategies can work well, because they have the goal of gaining a shared understand of the work before any time is wasted implementing the wrong thing.

Collapse
 
isaacdlyman profile image
Isaac Lyman

I've heard a few people with similar "that's not Agile" responses to the scenario I describe, and while I fully agree, I think perhaps the downfall of Agile is its vagueness. It's too easy for a traditionally-structured company to say "of course we value individuals and interactions over processes and tools, etc.", tell everyone to do standups and sprints, and call themselves Agile. And it doesn't help that a lot of "Agile coaches" and "Agile product managers" don't understand Agile either.

The worst part is that a naive, bandwagon implementation of Agile is significantly worse than no Agile at all. One of the first places I worked as a developer, the implementation of Agile was unbelievably bad (and yes, they called it "Agile" without batting an eye, because there were sprints). They kept trying to solve their problems by reorganizing -- there was a complete restructuring of the development teams every 2-3 weeks -- and turnover was through the roof. I constantly felt like I wasn't allowed to be productive. I didn't last long there.

As good as the Agile manifesto is, there ought to be a sister document describing what Agile is not. I'd love to see some of my former managers' faces when they read "Agile is not about daily standups! Surprise!" I guess that's my next project.

Collapse
 
hawicaesar profile image
HawiCaesar

I feel I have read the work of great artistry. I love all that we have brought out here. My question would be how do you and your team handle deadlines ? Say the gray suits people in the meeting say its time to step up ? Do you guys give a summary if the answer "Our team is responsible for a product... we got your back but some features here need a little more time" ? How do you still manage expectations and still keep up with a beautiful, familiar and well managed codebase ?

Collapse
 
isaacdlyman profile image
Isaac Lyman

Thanks! Every company occasionally has reason to cut some corners and deliver early. Some thoughts on that:
1) Most deadlines are imaginary. It's very likely that even if you hit your deadline, you'll find out that most of the stakeholders have already changed direction or don't care that much. It's unfortunate, but that's been my experience.
2) A true high-stakes deadline should only come up a few times a year. If it's more often than that, constant death marches won't help -- it's an organizational issue, probably stemming from issues in management. Lobby for change, and if change doesn't occur, start looking for another job.
3) Constant pressure to deliver will slow down development in the long run. It's death by a thousand cuts. A company that can't take a sprint or two to clean up the code and build a strong foundation for faster development later will eventually end up in a slog, developing so slowly that they might as well be moving backwards.
4) Know what corners to cut, and expect management to cut some of theirs as well. Refactoring can often be left for later; testing often can not. Make sure the gray suits understand what demands create the greatest burden and ask them to compromise.
Hope that helps!