in

 

PhatBoyG

Coding from the Hood since '87

November 2007 - Posts

  • First Iteration, Week 1

    On Monday, we started our first iteration. We spent the previous two weeks discussing the process, preparing stories, and learning how we can adapt extreme programming (XP) practices into our development process.

    We kicked off with iteration planning to identify the engineering tasks associated with the stories in the iteration backlog. We gave estimated in ideal hours for each of the tasks and added them to the story cards. Once the planning was done, people picked up tasks they were going to work on (some were assigned, others volunteered) that day. We made a point to assign a peer to work with the task owner until the task is finished.

    Every morning at 9 AM, we have a stand up meeting with the team to go over each member's progress from the previous day, plans for that day, and any roadblocks that are inhibiting forward momentum. Once each person was done, we got down to business and started work on our tasks. Full-time pairing has been limited so far, only a few have been pairing for the engineering tasks. I'm sure it will take time to adjust to what works best for the members of the team.

    For project tracking, we are using a physical planning board with the cards pinned to the board. We tried a number of electronic methods to improve collaboration with our remote team members, but the tools just got in the way of the process. We are going to follow up in our retrospective with the remote teammates to determine how we can improve their involvement in the daily workflow. For now, they are communicating via e-mail and phone with our project manager who is working with me for our daily focus (like a scrum master, but in XP terms that I can't remember).

    One of the initial things we found is that it is really important to mark on the cards WHO is working on the engineering tasks associated with the story. Without this step, members of the team sometimes lost track of what they were doing and ended up working on other things. The ownership of the story once picked up really needs to be communicated well with the team to make sure multiple people don't end up doing the same work.

    I paired with another team member on a forward deployed application that is part of our system. I'm fairly experienced with the program whereas my pair-mate (?) had no experience with it. We managed to complete a couple of stories in the first three days of the iteration, some solid progress in my opinion. We spent a lot of time testing various scenarios to ensure the changes we made didn't break anything. Once each story was complete, we did the paperwork to integrate our code changes into SVN. Yes, we have paperwork for each change to ensure compliance with SOx.

    We had a couple of stories that we found did not have a sufficient level of detail in the acceptance criteria to complete. After working with the stakeholder on the story and acceptance criteria, the estimate changed and we're trying to determine if there is room enough in this iteration to complete it properly.

    Our application has been live for several years, so we have members of the team that handle support for our production systems. Starting this week, defects that are found in production are red-carded and put into the Inbox on the planning wall (we are using red cards for defects). We then take a few minutes to estimate the defect and depending on the size either add it to the iteration or put it into the release backlog for the next iteration. This allows us to quickly get production issues fixed and delivered for system testing by our SQA department.

    This week we've also been working with product management on stories for large upcoming features that are being added to the product. That has been a very good experience, particularly in how we are building our knowledge of the user behavior that is being requested. I'm even thinking of how we could write a series of how-to documents on using the new system features based on the stories we are writing -- I'm sure our documentation team with love that!

    So I'm encouraged by our progress so far, but overwhelmed with the pace at which we've adapted these new practices. It seems like only a couple of weeks ago I was having meetings with our management team about moving to a more agile development process and here we are today almost midway through our first iteration. Let's hope we can sustain our pace, keep the backlog full, and finish our first iteration with success.

  • Ruby (on Rails)

    Last week, I started looking into using WATIR for web application testing. In the short amount of time I spent with the tool, I got an initial look at Ruby. Aside from seeing it here or there, this was the first time I actually wrote any Ruby code -- but it was mostly cut and paste based on the testing examples.

    Today, I realized that Ruby (and Ruby on Rails) is part of Leopard and delivered with OSX. So I fired up a terminal window and started playing around with the console (IRB). Mind you, I was only playing around with it at this point so I didn't get too deep. I created a few classes, learned the value of open classes, added some methods to the built-in classes (like String.is_your_mom), etc. I was basically playing around without any instructions.

    Tonight, I started reading a few articles on the Apple web site about getting started with Ruby on Rails using Mac OSX. I created an application, created some models and a migration, installed and configured MySQL for use in development and test, and created some scaffolding to be able to perform basic CRUD against my domain model. It was at this point that I got an idea of how web applications could be created using Ruby on Rails.

    The part that concerns me with what I've learned so far is that ActiveRecord is handling all of the mapping of database columns do the domain model. I'm not sure this is how I would really want that to be done, but I'm so new to Ruby I can't be sure. I'm going to find some examples of applying DDD to Ruby on Rails and see if the two play nicely together. It seems like a lot of the Ruby framework expects a lot of things to be named specific ways or it all breaks down quickly. I do know that I'm not a big fan of having the model defined from the database.

    I also know that building an application with a Rails web interface might also lead to building supporting application services in other languages using the same database. In that case, it would seem that having a model-driven architecture that can generate the classes for both Ruby and C# (and likely Java) would be very useful. I have Sparx EA, but I'm not sure if it supports Ruby yet or even if that is how I would want to go.

    I'm going to pick up a couple of Ruby books to read more about it -- it seems Idiomatic Ruby is a good place to start. Who knows where that will lead!

  • User Story Writing

    Since we had our agile fishbowl at work, we've moved ahead with adapting agile practices in our development process. For our projects, we're working on creating user stories to fill our product backlog. I've read several threads on writing good user stories and gotten advice from several people on what makes a good user story, but I never realized how hard it is to actually write good user stories.

    For user stories, we're using a format that includes:

    • The role for the story, is it a user, a specific type of user, or a customer
    • The context of the story, describing what the user is doing
    • The want of the story, describing how the feature should behave

    The clarity of user stories over requirements is both amazing and overwhelming. The amazing part is understanding the intent of the story in the context of the user and how it affects their usage of the system as a whole. The overwhelming part is negotiating with the stakeholder to ensure both the context and the behavior have been properly captured and an adequate number of acceptance criteria have been defined. While this certainly increases the amount of time spent on a particular story, the number of details revealed by the discussion is well worth the effort.

    Finding Good Examples

    One of the stumbling blocks I found when learning to write user stories is finding good examples that go beyond the typical "As an account holder, I want to withdraw money from my checking account so I can buy crack." These textbook examples don't really provide a significant level of depth, something I deal with when identifying improvements to an existing system. For example, here is a story that could be written:

    As a customer, I want to verify the correct billing codes were included on the claim before sending it to the payer to avoid rejections.

    This enhancement to an existing claim submission system might include a number of checkpoints where such a verification could be performed. The context really helps clarify this story to ensure it is properly implemented:

    When importing claims, the billing codes in the 2100 loop of the 837 file should be compared to a list of known, valid billing codes and claims with invalid codes should held.

    This additional context indicates that the billing codes should be checked when importing claims, a process that likely occurs on a daily basis. It is assumed that the user would then take the list of claims containing invalid codes and correct them in the originating system. This assumption, however, is just that as the story doesn't attempt to describe any behavior of how held claims should be handled.

    When a user is modifying a held claim, changes to the billing code elements should cause those elements to be reverified. If the billing codes are changed to valid codes, the claim hold should be removed.

    This one gets a bit tricky. While dealing with the verification of billing codes on a claim, what is really being described is a new behavior. In my eyes, this means it is a different story.

    As a user, I want to be able to correct the billing codes on a held claim so that I don't have to re-import the claim for it to be sent to the payer.

    Here we are describing the new behavior -- the ability to modify the billing codes on the held claim. For this story, the previous context would be more applicable since it is dealing with the user activity of modifying the billing codes on a claim.

    Stories That Aren't User Stories

    So what about things that are needed to support the above stories? No, really, that's a question since I don't have a really good answer at this point. Do you write a story to import a list of valid billing codes? Or do you write a user story to automatically download and import a list of valid billing codes from the payer every night? Where do those system-level stories go and how are they written? There really isn't a role associated with the story, so I'm still struggling with that type of story.

    One such example might be something like:

    As an application administrator, I want to be able to import a list of valid billing codes so that I can update the verification tables.

    The context of such a story might include:

    When an application administrator uploads a file containing billing codes, the existing billing code table should be cleared and the new codes added.

    Onward

    I didn't really get into acceptance criteria in this post because that in itself is a series of posts. I will mention that having a deep set of acceptance criteria on a story will make it easier to estimate (size) the story, as well as improve your chance at success in implementing the story.

    If you as the reader have some good examples of stories that aren't associated with a particular role, please share them in the comments as I'm really looking for some better examples of how these stories would be written.

  • Agile Fishbowl

    Earlier in the week, I posted about an introduction to agile development that I gave at work. Afterwards, I talked to several of those that attended and figured out that I left a lot of things out of the presentation. This was partly due to some inadequate preparation on my part and a pretty narrow time constraint. As a result, I presented a lot of information without a sufficient amount of supporting information. I also failed to provide enough clarity as to how these new methods would integrate with our existing processes.

    To address the issue, I scheduled a Fish Bowl to have an open discussion about agile development methods. We arranged the group into an outer perimeter and set up four chairs in the center of the room. I took a chair and two other volunteers joined me and I started the discussion. I opened with some general conversation about the items presented in Monday meeting. The participation from that point forward was wonderful -- everyone took a seat in the fish bowl and shared their concerns, asked questions, and proposed solutions.

    The end result was a greater understanding by the group of:

    • why we are looking at using agile methods in our organization
    • how these methods can address some of our problems
    • what we expect to achieve by adapting agile processes

    Based on my original experience with the Fish Bowl at ALT.NET in Austin compounded by another great experience this week, I highly recommend the format for group discussions in any organization.

  • FTP Editing with TextMate using Cyberduck on Leopard

    While I spend most of mine developing applications with .NET in Visual Studio 2005, there are times when I want to tweak a site built in PHP/MySQL. Since all my sites are hosted on GoDaddy, I don't have SSH access into the server. This leaves FTP as the sole choice for editing remote content. While a solid practice would be to have a local development environment to text changes, it's a blog, and it's just not that important to me if I make a quick mistake. Plus, sometimes you're dealing with Authorize.NET or PayPal, or FedEx, or another cart-based solution that requires cURL through a proxy.

    For editing remote files, I use Cyberduck and TextMate on OSX. Cyberduck handles the FTP interface nicely with a finder-like interface. A quick click and you're editing the remote file in TextMate. Make your change and save and Cyberduck automatically updates the file on the server. Or at least it did with Tiger.

    It seems that some things broke with Leopard in how file update notifications are handled with Cyberduck. If you try to update using the built-in software update, you won't get anything newer than 2.8 -- which doesn't have the fix. So if you're using Leopard, you can get this functionality back by installing a nightly build of Cyberduck. It's a quick install (simply copy to the Applications folder) and you're back up and running. Do yourself a favor at the same time and turn off the Growl notifications for connection/disconnection to avoid some on-screen spam when saving the file.

  • Greetings and Salutations

    I just wanted to give a shout out to the guys at Los Techies for inviting me to join the site. I'm just now getting things up and running (and testing MarsEdit with Community Server with this post) so I can easily post content to the site.

    I met many of the Los Techies guys in Austin at ALT.NET and I'm sure several beers were consumed with a majority of them. It was a great experience and I'm excited to see the attention grow around the movement.

    Personally, I've been in software development for nearly 20 years, but I'm new to agile development practices such as XP/Scrum. I've recently started an initiative to adapt agile development at work so I'll certainly write about those experiences as they unfold.

    In the meantime, "Tengo un gato grande en mis pantalones!"

Copyright Los Techies 2007. All rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems