Every Developer Architects Every Day
{Wednesday, May 11th, 2005}Who holds the architectural vision? Who implements architectural infrastructure? Should infrastructure development be segregated from application development? Successful projects have employed this approach. Successful projects also have dictatorial architects who hide the architectural vision and solely implement infrastructure. Are these bad approaches if so many projects successfully employ them?
Every developer architecting a little every day is a lofty concept I’ve encountered frequently in texts and been fortunate enough to practice on some teams. It answers some of these questions and presents some sound, democratic alternatives to segregated development and isolated, dictatorial architectural teams.
A Poisonous Distinction.
Beck’s White Book is one prominent text that explains the approach. Evans in Domain Driven Design also explores it, seeing a division of developers and architects as a ‘poisonous distinction’. I’ve been on many projects with this division and witnessed some of ailments it’s poison brings. Lets explore the severity of these ailments by considering Pro’s and Con’s of the division:
Pro’s
- In a large team, a vertical slice of functionality can often be developed faster using a sub-team of developers.
- Too many decision makers can often slow a process.
Con’s
- Those not developing infrastructure are inhibited from exposure to tools and technologies. Their experiences and rate of professional development is constrained. Typically these developers end-up being skilled in proprietary frameworks, even if they are built on open source frameworks.
- Those fortunate enough to perform architectural development are considered technically superior to other developers. Psychological divisions start to form complementing the usual physical divisions that ensue. Developers outside the group become envious.
- The architectural group tends not to seek advice from outside it borders. A totalitarian mentality becomes prevalent, attempts at democracy often fail. Legitimate, often more rational alternatives and advice can be ignored in favor of personal preferences.
- Pain experienced through client use of infrastructural API’s is often not felt until a heavy investment has been made and the cost of change is higher.
- The bus factor rises. Knowledge is not spread, silos develop and dependencies on individuals grow.
Natural Tendencies Easily Prevail.
As much as management may try to limit the effect of the Con’s when they divide teams and employ a hard-line divide and conquer approach, natural tendencies prevail that instigate the Con’s:
- Management takes a short-term approach to developing infrastructure and assigns the best available developers to complete the infrastructure in the shortest period of time. This usually flows from infrastructure being mistakenly considered best tackled through a “one-off, upfront task”.
- Designing and developing infrastructure is perceived a fun job. It’s unfortunate technologists are traditionally viewed as geeks satisfied by the mental challenge of solving technical problems. Consequently developers strive to address technical problems above the problems of the business employing them.
- Teams are naturally defensive of their collective opinions and decisions. A culture of division will cause these defensive walls to propagate. Cross-team communication can become strained on many levels discouraging important feedback, and making the task of integration that much more difficult.
Clearly, it’s hard to police human nature. Admittedly I’ve been fairly pessimistic, but with good reason. Too often I’ve seen team morale shattered by this seemingly logical division. So, by employing this approach you risk developing a poorer solution in a longer period of time, while creating physical and mental barriers and shattering team morale. All significant inputs to poor staff retention. But you don’t have to venture into this tenuous realm of human emotion – I say clear division, especially in terms of bodies, is not the answer. Sure clear leadership in decision making is necessary, and that is a division, but all developers should have a say in deciding and realizing architecture. I’ll get into the details of alternate approaches shortly. But before I get to these approaches I’d like to explore some problems arising from the natural tendencies of technicians.
Who Decides Infrastructure Features And Requirements?
Without accountability developers naturally tend to solve problems that interest them, not the business that employs them. If they can decide their own requirements, the business risks allowing them to develop unnecessary, unused features - they venture into the land of YAGNI. It is natural for technicians to become engrossed in technical challenges, striving to tackle what they consider interesting requirements or designs, losing sight of the business requirements their infrastructure should be fulfilling. Autonomous infrastructure groups certainly suffer from this aliment. Conscientious technicians should derive their technical requirements from business requirements in collaboration with the application development group. But this is not an easy thing to do and often they do not. A complex, co-ordinated effort is required that is even harder when infrastructure groups service large teams, or worse, many teams. Therefore business’ should never assume infrastructure groups act in their best interests. They should strive for ways to account for the activities of infrastructure groups, policing the legitimacy of their requirements, ensuring they address real business needs. But all this management overhead can be avoided in a unified approach. Without the division infrastructure is automatically more accountable to the business requirements – development will not start unless a business requirement fuels it.
Business Problems Are More Challenging.
I’ll ponder one more natural tendency before presenting alternative approaches. Why aren’t developers more concerned with addressing the needs of the business that employs them? In Brooks’ terms, infrastructure development is mostly focused on developing the accidental as opposed to the essential. Tackling the essence of software, business requirements, adds the most value. Tackling technical problems does less for the longevity of technicians, domains are guaranteed to exist longer than any technology. So why do it? Do you consider it fun? Perhaps more mentally challenging? I say understanding domains and developing expressive models and their conceptual contours must be at least equally challenging. I used to think developing frameworks was the pinnacle of development. They were the ultimate challenge. Thankfully my mindset has shifted to more holistic values – developing business functionality in as short as possible time employing a Model Driven approach that usually relies on infrastructure and application logic being developed in parallel. I find the challenges still abound, the greatest now come in developing an those expressive, deep models and discovering those contours I referred to earlier. The industry is after all increasingly demanding multi-faceted developers, competent in development, analysis and testing. So I say challenge that industry misnomer and strive to solve business problems.
An Alternative.
So, onto that alternative I’ve been mentioning. For those knowledgeable with XP this will be nothing new:
- Sure technical leadership is important, I’m all for that. I see their primary responsibility as ultimate decision makers. They also communicate the architectural vision and ensure it is upheld. They should not, however, dictate architectures, designs or implementations. They should seek out ideas and input, sure they’ll have plenty themselves but they should be extremely open to others. Just like any other developer, they should also be developers of both infrastructure and application logic. They should not be the sole developers of infrastructure, on a covert operation to design and implement its functionality as they deem fit.
- As much as possible, developers using infrastructure should also contribute to its development. As they use it they will develop refined ideas on the infrastructures most effective API. They should have the opportunity to feedback these ideas into the infrastructure. Their changes could fuel deeper insights into the infrastructure. Just like normal application development, developers can pair with technical leads or other developers to complete and refine features of infrastructure.
- When work is about to begin on scheduled infrastructure requirements hold a meeting requesting input from all developers. Flesh-out designs, start discussing API’s, get everyone aware of and thinking about the infrastructure. Make it an open invite – those that don’t wish to attend have at least had the opportunity to attend. Importantly, don’t make concrete decisions about the API yet, and don’t code the complete API in one big-bang. Let the API grow as use demands it - when application functionality demands the use of some aspect of the API only then develop it. This is what I and others term ‘organic development’. It is an excellent means of ensuring development efforts are accountable to business requirements. If infrastructure is being added to an existing application, again let the infrastructure grow organically as new requirements or bugs demand code changes.
Conclusion.
So we still have a division of leadership, but there’s a strong concept of one-team. We’ve engendered buy-in, explored a wider range of solutions, spread the knowledge and flattened the organizational hierarchy somewhat by spreading the decision making abilities of the leadership group (I’ll explore this aspect in my next blog). We’ve also made infrastructure development efforts more accountable to business requirements. All top-notch goodness. So I say fight the division trend, spread infrastructure knowledge, let all contribute to it’s design and development in parallel to application development.
