Monday, July 08, 2013

Develop What's Valuable First


If you were developing a new application where would you start? Would you first create all the supporting frameworks for security, logging, etc.? Would you create the login screen?

Most of the time when  I've worked with new Scrum teams, they initially order the Product Backlogs sequentially along with the flow of the application: Frameworks, Login, User Administration, etc. This seems like a natural flow to creating components since it normally maps to the natural flow of the application itself to some extent.

But one of the basic principles of a Product Backlog is to prioritize by value. What do we mean by value? That could be many things such as ROI, risk, regulatory compliance, etc.

So, is the logging framework a highly valuable backlog item? What's the ROI? Little to none unless your company's primary business is selling logging frameworks. What about risk? Do we mean that it is risky to NOT implement a logging framework? No, when we push items to the top based on risk it is because we are not sure of the technology we are using or the approach we are taking so we want to implement the item sooner so that we can prove the technology or concept early on in case we have to change. So is a logging framework risky? Hopefully not. If you are a developer, with any kind of experience, you have implemented logging countless times and probably know a few out of the box frameworks you can easily integrate. So, it looks like we are simply building the logging framework first because it is our idea of a natural flow of building software applications.

But if we build all of the support frameworks, and the login page, and user management, etc. first, then when do we get to the real functionality that we are actually selling to our customers? Probably late in the game and uncomfortably close to our deliver date. Which means if we have any issues with these features we have less time to react to them and more likelihood we will have to work nights and weekends to "get er done" and probably have some quality issues once we do deliver.

So then what should we build first?

Ask yourself- 'what is the main feature set your customers are going to be paying for?' Build that first.

"What? You're crazy! I can't build that feature until I have all that other stuff you mentioned before."

First, I am not crazy, my mother had me tested.

Second, you can build those types of features first. You will have to unlearn a good bit of what you were taught as a tried and true architect in the layered application design. I am not saying you will not eventually build those things because obviously most of it is something you need to deliver a customer ready application.

I had a client in the financial services industry who was building a new product. Their initial user story sessions started exactly as I described above where the group started listing off the features they needed to build in the order of the application flow with several framework stories at the very top. I asked them what was the primary feature their customers were paying for in the application and they said transferring money from X to Y institution. I pointed out that this would be the best candidate for one of their first stories to tackle and after some convincing they caught on and ran with it.

Once we started breaking that down into smaller stories (since the original one was identified as an Epic) they once again start prioritizing the components of the feature sequentially: create a new X institution, list existing X institutions, create a new Y institution, etc. The story for the actual transfer of funds from X to Y was fairly far down the list. I once again asked what the most valuable part of this feature was to their customers and it was unanimous for the funds transfer.

Then the common questions rose up like: "How can we build the transfer from X to Y when we do not have the functionality to manage X and Y?" Do you sell X and Y management solutions to your customers? "No." You can create the simplest solution to populate X and Y even if it is just a database script. This way you can concentrate of getting the actual transfer part correct and demo that to your stakeholders and customer representatives first. That way you get feedback right off the bat and expose any implementation issues early. Then you can start to get to the other items such as the ability to add X and Y, login, logging, etc.

"You're crazy! How can we design the application architecture without knowing how we are going to implement security, logging, etc.?"

First, I am not crazy, the voices in my head said so.

Second, when building applications incrementally in an Agile environment your should follow the practice of emergent design where you build applications with just enough framework to support the current functionality but using an approach that allows for extension or replacement of these frameworks in the future. This approach includes the principles commonly called SOLID that help build decoupled, independent systems. Understand that there may be some level or rework, but just as we want to embrace change in the requirements in an Agile environment, you have to accept a certain amount of change in your architectural approach as well. We want to build features first and just enough framework to support them now and in the foreseeable future. Too many architects (me included) have gone all "mad scientist" when building glorious architectures that solve all the world's problems (even if they did not ask us to).

To further illustrate my point we talked to another team that had implemented Scrum on a previous project, but had built their features in that logical sequence. They were running on a 4 sprint release cycle and when they spent the first 3 sprints building frameworks and supporting functionality, they found that they had issues when trying to implement the core user functionality. By then it was too late because they were in their last sprint before their release. So what happened? They missed that release date and lost half the team in the next sprint to finishing the functionality. On top of that the rush to get it done left them with a ton of production bugs.

Now all of this is easy to say and harder to execute. Slicing up features this way takes practice since it often goes against your historical methods. While emergent design and SOLID principles sound great for building these types of systems, they do demand a certain level of development expertise and experience. But it is achievable and allows you concentrate on delivering your most valuable items first without weighing your application down with over bloated design from the start.

So when you start to prioritize your Product Backlog, remember to concentrate on value and not fall back on sequential flow.

Tuesday, June 11, 2013

I'll Be Speaking at Agile 2013


The Agile 2013 conference is being held in my backyard here in Nashville (not literally!) the second week of August. I will be speaking with a former colleague of mine, Fahed Sider, on "Agile Quality Assurance: The Long Ugly Tale of How We Got Better". This session goes over our shared experience at a company that was struggling with their adoption of Scrum and how we really turned things around in the Quality Assurance department.

If you are coming to the conference, I hope you can attend our session!

http://agile2013.sched.org/speaker/tommynorman


Thursday, May 16, 2013

Nerds of Rock Event, Thursday June 13th at 7 PM

My company Holland Square is putting on a great event called Nerds of Rock. It will be held on Thursday June 13th starting at 7 PM. We'll have free food and free beer plus a house band laying down some tunes. If you sing or play an instrument you can jump on stage and jam with the band.

We are giving away some great prizes including an iPad Mini, Apple TV, Best Buy Gift Card, and more. Follow us on Twitter at @HollandSquare for updates and information on prizes.

Tweet about the event using the hast tag #NerdsOfRock2013 starting now for a chance to win one of the prizes at the event.

Register now at www.NerdsOfRock.com. See you there!


Wednesday, April 10, 2013

Nashville Agile User Group - April Meeting Recap - "Agile Certifications"



We had a great turnout for the Nashville Agile User Group's April luncheon and there was a good deal of information shared about Agile certifications.

I said I would post some links to online resources and here they are:

Agile Certifications

  • Scrum Alliance is the most well known, providing a variety of certifications for Scrum Masters, Product Owners, developers, coach
  • Scrum.org was created a few years ago by Ken Schwaber when he broke away from the Scrum Alliance in order to make a certifications program more aimed at practitioners and not merely trainers.
  • Recently the PMI added their own Agile certification.
  • The International Consortium for Agile has their own certification track (I don't know much about it) that was primarily started by Alastair Cockburn.
There were many interesting ideas bounced around and here is a basic synopsis:

Advice for an Individual Looking to get Certified
  • Scrum Alliance's CSM is the most well known certification currently. The class content is not regulated so the materials may be different between classes. There are only a handful of courses offered in the Nashville area. Ask around about trainers from people who have already attended the course. Going with a big name in the industry is not necessarily the best choice. Most said the test was realtively easy based on the content from the courses. They did start offering a certification for developers, but no one had heard much about it.
  • The PMI Agile certification requires a good deal of hands on experience. Both attendees who had pursued this certification were audited and had to get signed affidavits around their experience. Overall is a bit more costly than the CSM courses, but seems to have a bit more weight behind it. The material was said to concentrate on project management aspects but covered more than just Scrum. This book was highly suggested for exam prep.
  • Scrum.org offers certifications that basically match all of the Scrum Alliance ones, but their course ware is the same every class so you know what to expect no matter whose class you attend. Some people had some very positive feedback about the developer course when was very hands on with .NET and TFS (they have a Java one too).
  • Even if you are against certifications, many companies perform initial searches and screenings with them so you may be hurting your chances in some places.
Advice for Companies Looking to get Their People Certified
  • If you can afford it, bring someone in house so that the training can be more focused on your company's specific issues.
  • Remember that certification classes only go so far. Follow up hands on coaching was highly suggested.
  • Look for training/certifications for everyone in your organization who will participate in your Agile process. Don't just get your Scrum Masters trained.
  • Don't assume that certified training is better than those that aren't certified. Several people enlisted training without certification and were very happy with it. Look for deep, wide spread experience and references.
  • Several people pointed out that a good many trainers target the project management side of Agile heavily and do not offer practical guidance on the practical engineering side.
Advice for Companies Hiring People with Certifications
  • Certifications only show that the person holding them attended a class and passed a test. While some may be harder to get than others, certifications do not guarantee expertise.
  • Look for people who have experience in multiple environments. Many people claim to be experts with a few years in one environment.
  • Don't just look for certifications. You can miss out on some good people.
If you attended and think of something we covered that I missed, please let me know. See you next month!

Collaborative Sprint Planning

Recently while coaching a client's Scrum team, I noticed that during Sprint Planning the team was starting to concentrate on filling in tasks for their User Stories in the their Agile management tool Team Foundation Server (TFS) and less on the hows and whys around its implementation. This of course immediately drew me back to the basics of Agile from the manifesto of "Individuals and Interactions over Process and Tools". When I thought I had been helping the team by showing them a quick and easy way to enter tasks into TFS with Excel, that had turned around and become the focus of the meeting. This diversion had also started to manifest itself in the work being done in the Sprint as there was more friction between team members when what was being delivered did not exactly fit together initially.

It became clear that we needed to get away from the tool and get the team interacting more when discussing the User Stories so that they all walked away on the same page on how they were going to implement it. The next Sprint Planning only used TFS to bring up the User Stories initially. Once the story was reviewed, we had two members from the team (one developer and one QA) go to the white board where we wrote "Design" on one side and "Test" on the other. The team then discussed how they would test the story and how they would design the implementation to meet those tests concurrently. They drew UI mock ups, work flows, wrote out test scenarios, business rules, etc. Once they were done the tasks for the story organically fell out of what was on the white board. One team member would act as scribe and record all the tasks into Excel to be uploaded to TFS afterwards.



After trying this approach the next few Sprint Plannings (as well as in Product Backlog Grooming), the team agreed that they were coming away with a better idea of how to implement the stories and there was less friction between team members. Another benefit was that more test scenarios seemed to be identified using this technique and thereby increased our test coverage. This also helped make these meetings less tedious since team members were up walking around, drawing, and actively engaging one another.

So if you feel your Sprint Planning and Backlog Grooming sessions are straying from their true meaning, this is a fun approach to try and get them back on track.