# Tuesday, 07 October 2008

I know things have been a bit on the content-free side here lately, so I’m going to try and remedy that with some (you guessed it) content.

When I hear people talking about Continuous Integration (CI) lately one thing that seems to cause a fair amount of misunderstanding is that people talk about CI like it’s a product, not a process.  On the day they set up their CI server (usually CruiseControl) the “have” CI.  I would argue that exactly the opposite is true.  CI is a process, not a product.  More than that, it’s one of those nasty curves that I blocked out of my mind back when I didn’t do very well in Calculus.  You can be forever approaching CI but you never quite get there.  Huh?  Well, if the goal of CI is to (you guessed it again) Integrate Continuously, we can’t ever quite get there because none of us would ever get any real work done.

So rather than “having” CI, we “do” CI, or better yet, we strive for it. 

If that’s the case, what are we really striving for?  We are striving to reduce the amount of time it takes us to do each (micro) integration, and maximize the amount of time that we as developers can spend adding business value to our software products by writing code.  If we can’t add value because we’re busy integrating, we aren’t fulfilling are primary job function.

So: the closer we come to integrating continuously, the less time we should be spending on non-value-adding programming tasks.

Practically speaking, we can’t spend all of our time worrying about integration.  We all have real work to do.  What we can do is work on making the process smoother for everyone.  That means not breaking the build.  Let me back up a second… In order for everyone to be able to maximize their productive work, and maximize that of everyone else on the team, we need to able to commit changes without fear of breaking the build, or causing other people to have to do integration work needlessly.  What that means in practice is that before committing any changes to our source code repository, we should get all the latest changes, run a full build and test cycle, and make sure we haven’t broken anything.  If we have, we need to fix those problems, and go through the process again, getting source, running build and test, etc. until we get a clean cycle.  If that process if followed by everyone on the team, then it should be very very difficult to break the build.  The only way the build should break if everyone follows that process is if changes are being made to the tip of your source control system faster than the get/build/test cycle.  Sometimes that really happens, and I’ll write some other time about how to deal with that. 

So why do builds break?  Because people don’t follow the processes.  Why not?  Usually for one of two reasons:  1) they don’t understand the process, or 2) the get/build/test cycle takes too long.  #2 is the most likely cause, and happens much too frequently.  In the initial literature on CI, Martin Fowler argued that any build/test cycle that takes longer than 10 minutes is likely to cause people not to follow the process.  In practice, I’ve seen that to be the case as well.  As soon as you get the cycle time down, people will start doing what they are supposed to be doing and the build will break less often. 

If you currently have a build that takes too long, then reducing the build/test cycle time becomes part of your CI process.  We’re always working toward the goal, remember.  Make shaving a few seconds here and there off your build process part of the CI process goals.  Every little bit improves your process, and will start paying dividends.

Tuesday, 07 October 2008 13:27:55 (Pacific Daylight Time, UTC-07:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 06 October 2008
In the spirit of constantly embracing change, as of last week I am now the Director of Education at SoftSource.  What that means in the near term is that I'm going to be spending a bit of time in the classroom.  What that means in the middle term is that I'll be working on expanding our course offerings to encompass a wider range of topics. 

Right now we offer several classes for open enrollment at OHSU's Professional Development Center in Hillsboro (formerly OGI).  This Fall we'll be teaching C# and the .NET Framework (3.5), WPF, WCF and Debugging.  For details see our open enrollment page.  We also do custom training designed specifically around customer's needs, or we can do our standard courseware at your site and time of your choice. 

Now here comes the important part...  All of our instructors are also Software Engineers and Architects that spend the time they aren't in the classroom on customer projects.  That means that they have real-world experience developing real software on a day to day basis, with the latest technology in the field. 

What I'd love to hear back from y'all is what kind of topics you'd be interested in.  Agile development?  Continuous Integration?  Using MS Team Foudation Server?  How to do real-world estimation and planning?  Of course we hope to continue offering technical subjects like advanced .NET development, WPF, Silverlight, and whatever else tickles your collective fancy. 

If you or your organization needs off-the-shelf of custom-design training, or if you have ideas for training you'd like to see us offer please let me know.

Monday, 06 October 2008 11:19:57 (Pacific Daylight Time, UTC-07:00)  #    Disclaimer  |  Comments [0]  |