Quality + Simplicity - the Sweet Spot
Join the DZone community and get the full member experience.Join For Free
there is a common belief in the software development world that a tradeoff exists between speed of delivery and quality, an idea martin fowler calls the tradable quality hypothesis . it’s the idea that, in a pinch, you can speed up software delivery by not worrying so much about quality.
as martin points out, people have different understanding of what quality means, but the definition that counts from a delivery point of view is that it’s the attributes that make the software easier to maintain and extend. developers can work more quickly on code that is easy to understand and free from bugs.
so in practice, teams that prioritize speed over quality tend to achieve neither, while teams that prioritize quality, in many cases, deliver code very quickly.
the complexity axis
however, this isn’t always the case. some teams focus on quality, but end up taking forever to deliver simple things. what’s missing from the speed vs. quality tradeoff is a second axis, completeness versus simplicity.
another word for completeness on this chart would be complexity, but this quadrant represents the aspirations of a team - what the team is trying to achieve - and no team aspires to complexity. instead, teams try to design and implement software and systems which are complete.
a team that prioritizes completeness wants a system that can cope with anything. it can meet completely new requirements through configuration rather than code, easily scale to handle any load, and tolerate any conceivable or inconceivable failure.
the problem with this is partly described by the yagni principle. most of what the team built isn’t actually going to be needed. a large proportion of the stuff that will be needed in the future is stuff that the team didn’t anticipate. but the real killer is that adding all this stuff adds more moving parts. it’s more stuff to implement, more stuff to go break, and then it’s more stuff to wade through when working on the codebase.
so the team sets out to build the perfect, well-engineered system, but over time the schedule comes under pressure, and the team realizes it needs to step up the pace. elements of the design are dropped, leaving parts of the system that were already implemented unused, but still taking up space (and adding complexity) in the codebase.
there is a nearly inevitable slide into cutting corners in order to get things done, and before you know it, you’re trading off quality (“we’ll go back and clean it up later”) for speed. as we’ve seen, this leads to a quagmire of poor code quality which slows work down, made even worse because of an overcomplicated design and large amounts of unnecessary code.
high performing teams hit the sweet spot
what seems to unite high performing development teams is an obsessive focus on both quality and simplicity. implement the simplest thing that will satisfy the actual, proven need, and implement it well. make sure it’s clean, easy to understand, and correct. if something is wrong with it, fix it immediately.
teams that get this focus right are able to reliably deliver high quality software remarkably fast.
Published at DZone with permission of Kief Morris, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.