06 April 2011

Core Goals of Version Control

After having a couple of years of experience with Git, I was finally able to clearly articulate the core value that version control brings to software development. This article will be written with a bias toward Git, but I've at least tried to express the core value in abstract terms.

The value is expressible in 4 goals.

Core Goals
  1. Capture source artifacts
  2. Isolate stable codelines from WIP
  3. Enable concurrent WIP
  4. Make it easy to leave sensible history behind
WIP = Work In Progress

The continuous delivery crowd says that WIP should be basically zero. I think that there is space for a fairly short development pipeline (3-5d) that can free developers up to capture ideas and then wrangle them into shape in a second or third pass.

Capture Source Artifacts

As a developer, I feel happy when I can push a save button when I've taken a small step -- and then never have think about it again. I also feel happy when I can save, even if I'm based on a slightly out-of-date base. I also feel happy when I don't have to worry about binary vs. text -- as long as its a true source file of a reasonable size.

I feel happiest when I don't have to be distracted by superfluous concerns, and can focus on the task at hand and save the results easily.

Main Point: A good version control system makes it easy to capture source artifacts.

Isolate Stable Codelines From WIP

Software is hard to get right, and once things get stable, the only way to keep them there is to avoid making risky changes. But stability is always balanced against the common desire for enhancement and restructuring.

A typical bug fix is one or two isolated commits that fix a specific problem. Most version control systems more or less support cherry-picking a small change over into another codeline.

I feel happy when I'm able to easily take an isolated series of commits from the development codeline into a stable one, even if the fix turns out to be a little larger than a couple commits.

Main Point: A good version control system makes it easy to cherry-pick changes, and even longer patch sequences, from one codeline to another with easy reconciliation of overlapping edits.

Enable Concurrent WIP

For software developed by a team larger than 2-3 people, it is useful to be able to work in parallel with each other, even on the same feature. Sometimes you can arrange your work so as not to overlap at all, but there are real situations where you want to track someone else's development within the fairly short development pipeline (3-5d) before things have gotten stable.

I feel happy when I don't have to catch people up on what I've been doing, and when they don't have to catch me up on what they've been doing, and we can get to the point easily and quickly. I also feel happy when we can leap-frog each other with ideas and real implementation.

Main Point: A good version control system makes it easy to track other team members' work, and easy to tentatively integrate with that work.

Make It Easy To Leave Sensible History Behind

After stepping away from a piece of software, it is easy to lose context and forget the concerns that shaped the development of that software. It doesn't take long. For me, about 2 weeks is enough for me to start forgetting details and motivations.

Of course, it is important to leave a properly structured artifact behind. Proper naming means a lot; proper factoring is important. Once you comprehend the structure, it is possible to change things without introducing big problems.

But often, full comprehension isn't practical, and a flat 2D view of the artifact is insufficient for reasoning about the thing itself. Often, it is often very useful to be able to get a vector on where the software came from, and interpolate from that vector where it was headed.

The creative process is messy, filled with double steps and backtracking. Don't confuse me with all the noise. Give me a history that, given all the knowledge you had when it got stable, at least looks well-reasoned.

I feel happy when I'm able to take an easy editing pass following capture/review that lets me intentionally craft history as an email to the future about the vector of change that is inherent in a certain patch sequence. I also feel very happy to not have to think about this during the creative, messy, focus-draining capture/review pass.

Main Point: A good version control system includes tools to both: 1) enable the developers to easily leave behind meaningful history, and 2) extract focused history for all or part of a piece of software.

30 March 2011

AN: Innovative genealogy information graphic

Yes, RootsTech was a month and a half ago, but this was important and I need to write about it.

I went to the lightning talks at RootsTech and saw a 5m presentation from Antoninus Niemiec, an MFA student from New York working on genealogy visualization. He called his presentation "Not Your Father's Chart".

With permission, here are two fuzzed views of the charts so you can get the overall picture.

Plate A is a traditional ancestry chart:


Plate B is the same ancestry, laid out in this new and innovative way:


Here is a close-up of a given family:


Antoninus presented a very innovative information graphic of a 5 generation ancestry. At a high level, his work is firmly grounded in Tufte's information graphic design priciples. There were no wasted pixels and no chartjunk, just content.

It was organized with a radial feel to it, with the descendant family clusters in the center, and ancestor family clusters radiating outward toward the edge of the page. Each family cluster was organized into two tree-rings, one for the father, one for the mother-and-children. Each tree ring meant a decade, birth and death dates were plotted on a 360 degree circle, angle determined my how far into the year the event happened.

He told me he is working on publishing this work on his website. He said he did it in Adobe InDesign using Javascript with some hand-tweaking afterwards.

This spawned an interesting conversation afterward about the possibility for a visualization challenge for RootsTech 2012:
  • fixed content corpus
  • released shortly before the conference
  • awards in traditional media (print, web, video)
  • award for most innovative visualization, regardless of format

BTW, this was the same lightning round that Tevya talked about.

10 March 2011

Flesh pots & Resistance to change

I was reading the account of Moses leading the Isrealites out of Egypt. After all of the miracles that accompanied the exodus comes the account of the net sum response of the Isrealites (Exodus 16:2-3):

2 And the whole congregation of the children of Israel murmered against Moses and Aaron in the wilderness:

3 And the children of Israel said unto them, Would to God we had died by the hand of the Lord in the land of Egypt, when we sat by the flesh pots, and when we did eat bread to the full; for ye have brought us forth into this wilderness, to kill this whole assembly with hunger.

I'm sure that my response to inspired leadership has sometimes sounded like this. And I'm very much willing to both admit that and abandon that position.

In stark contrast, is the message contained in Pres. Henry B. Eyring's conference talk, Trust in God, Then Go and Do. In particular, another scripture comes to mind (1 Nephi 3:7):

7 And it came to pass that I, Nephi, said unto my father: I will go and do the things which the Lord hath commanded, for I know that the Lord giveth no commandments unto the children of men, save he shall prepare a way for them that they may accomplish the thing which he commandeth them.

Willingness to move forward and change and follow inspired leadership is a quality that I value, and that I seek to emulate & encourage.
Published with Blogger-droid v1.6.7

09 March 2011

Excited for MWRC

I am so stoked for MountainWest RubyConf this year. Last year was great, but I can feel it in the air that this year is going to be sooo much better!

02 December 2010

Developing Organization Change Skill

When I was trying to describe what it takes to do a good rollout of something new across a larger software development organization, I came up with a chant that made a lot of sense:
Here's the old
Here's the new
Here's the difference
Here's what you can do
Yesterday, I was faced with frustration that came from feeling incapable of doing the rollout tasks that were my lot. And I wanted other people to be capable of rolling new stuff across the development organization, too.

I asked myself:
How am I going to get other people to be capable of rolling new stuff out?
That is when the idea came.

So I think that a successful rollout formula is:
  1. presenting all 4 things in sequence, and
  2. making it easy for people who are affected by the rollout to take the next step
Published with Blogger-droid v1.6.5

04 November 2010

Reality Vacuum

A place where people have chosen to ignore a certain part of reality, and where that choice to ignore is embedded in the culture of that place.

I know I've occupied such a space, and even contributed to the vacuum. However, once I realize what's going on, I always want out.

To some degree, each person in the world has to keep up in one way or another. Some just have a better feel for keeping in touch with current reality, and what to do when they're not.

Personally, I want to improve in my ability to close the loop better and faster.
Published with Blogger-droid v1.6.4

23 August 2010

Long Term Envisioning

What do people mean when they do:
Long Term Planning
I don't know what that means.

The following are my guesses as to what "Long Term Planning" really means:
  1. An exercise in stating some future desired state with no idea how to get there.
  2. An explicit agreement that you will diverge from reality at some near point in the future.
  3. An exercise in exploring organizational identity.
For conversation types #1 and #2, see the "Planning is guessing" chapter in Rework (p 19). OK, that takes care of 80% of the Long Term Planning situations.

I think that conversation type #3 is a very important conversation that typically gets way too little time. Devoting time to a pragmatic answer to "Why does this organization exist?" can produce a shared vision that can make everyone's work much more coordinated. See the last paragraph on page 58 of "A simpler way" (and subsequent paragraphs) for an inspiring discussion of this topic. You can search for "58" inside this book on Amazon as of Aug. 2010 and read a couple pages.

Each person's individuality can stop going in n directions and start converging on producing real stuff that satisfies the "Why?" question. If it's worthwhile to answer "Why?" with real stuff delivered to the real world, then it continues to be worthwhile to be associated with an organization.

If it becomes impossible to reasonably answer "Why?" or becomes impossible to actually deliver real answers to that question to real people, that is the departure point at which you have to start looking for some other organizational affiliation.

For me, the answer to "Why?" for FamilySearch software development is contained in Doctrine and Covenants 128:24 and continues to be a rich source of inspiration for interesting and valuable software contribution.