InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Meeting the Challenge of Collective Code Ownership

Posted by Deborah Hartmann Preuss on May 18, 2006

Sections
Process & Practices,
Architecture & Design
Topics
Agile ,
Leadership ,
Stories & Case Studies
Tags
Coaching and Mentoring ,
Continuous Improvement ,
Troubleshooting ,
Retrospectives
Martin Fowler has suggested that code ownership schemes fall into three broad groups, summarized here:
  • Strong code ownership breaks a code base into modules each, of which is assigned to one developer. Developers are only allowed to make changes to modules they own.
  • Weak code ownership is similar in that modules are assigned to owners, but different in that developers are allowed to change modules owned by other people.
  • Collective code ownership abandons any notion of individual ownership of modules. The code base is owned by the entire team and anyone may make changes anywhere. 
Collective code ownership is the model promoted in Extreme Programming, and many other Agile practitioners also have adopted it.  One reason is that it increases "truck factor", to the customer's advantage. In the past, the untimely loss of one developer could cripple a team's ability to deliver.  Ideally, with collective ownership, a rogue truck would (sadly) have to wipe out the whole team before development would stop. Individual expertise is respected in this model, but directed toward mentoring and knowledge-sharing rather than ownership.

This model requires high adherence to discipline on the part of the team, which may be new for some.  An undisciplined team will find collective ownership problematic, perhaps onerous.

Ken Schwaber, co-creator of the Scrum methodology, has long insisted that Agile processes must be adapted to their context - within reason, the approach must be ajusted over time to maximise value produced. The average team needs to search out the appropriate balance between pure practice and compromises for local issues and constraints.  Martin Fowler has brought us one such story: a team in trouble took a step back to improve their discipline, with the goal of once again returning to full collective ownership over time.  Using their more expert members as code reviewers, the team brushed up on the basic practices that support collective ownership.  In addition to the short-term gains of increased velocity and improved morale, their weaker developers improved their skills, which will benefit the whole team in the long run.

To quote Schwaber:
So, I'd say agility isn't a silver bullet, only a process that requires a lot of hard work, attention, caring, and teamwork.  But is agile a bitter pill?  Not if you consider it like fitness training - you try your hardest, day-by-day, and you get better and better at what you are doing.
Fowler's article recounts a colleague's story, in which one team had the courage to temporarily step back into "training", in order to move forward all the better.
  • This article is part of a featured topic series on Agile

No comments

Watch Thread Reply

Educational Content

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.