Because I am Clearly an Expert on Style
Thursday, May 19, 2011 at 8:38PM Rob Donoghue asks:
How critical is a unified style/formatting guide for developers in an agile environment? On one hand, the common formatting would seem to help the hand-off, but on the other it seems it might be seen as an unnecessary limitation.
My first instinct is to say, “Not at all. You’re pair-programming enough that the style comes reflexively, rather than being prescribed by a document.” Given that I’ve just been working on the coding standards document for our teams, however, I realize that’s not always as true as I want it to be.
What it works out to is that you have to document what you can’t talk about. We’ve got three teams split across four different locations, so we have to rely on documentation as a replacement for conversations more than we would like. We do try to write just enough to put the right ideas in people’s heads, and nothing more. Documentation can’t substitute for judgment. It can tell people what to worry about. Here’s how our coding standards start:
At a high level, we want to embody these concepts:
* Correctness, simplicity, and clarity come first
* Do not prematurely optimize
* Do not prematurely pessimize
* Hide information
* Give each entity one cohesive responsibility
* Ensure resources have owners
* The compiler is your friend
We maintain this on wiki page; each of those bulleted points links to a page with more detailed information about specific ways we try to enact the principle.
A lot of my thinking about this has been influenced by Ron Jeffries’ Card-Conversation-Confirmation model for user stories and the Agile in a Flash cards (whose authors also have something to say about coding standards). What is written is a spur to have a conversation, so write only enough to get people talking about the right things.
Update
Fitness: Ran 2.25 miles + 30 minute workoutWriting: 383 words, 267 average
Paul |
Post a Comment |
reader request,
software,
things i have learned 
