Showing posts with label Agile. Show all posts
Showing posts with label Agile. Show all posts

14 December 2012

MS Community : The lean software development talk



Is it proper for my ninetieth post to be about a talk I held today at the monthly MS Community Istra gathering on the topic of "The Lean software development process"? I don't know but well it was a wonderful evening.

There were some news around it. It was the first talk I held as an independent consultant since I left Labirint/Cenosco earlier this month.

And second it was the first talk I held by using only my browser as the presentation medium using the amazing Prezi service and YouTube. Prezi is presentation re-imagined, it allows for a more dynamic and spacial orientated presentations and is easy to use. You can see my work in the frame above this text.

There were around twelve people present which was nice. I started the talk with some ground rules and my estimate how long the talk will run. I said one hour and half, it took me one hour and twenty minutes.

The talk was broken into four sections :

  1. Lean and muda
  2. The cycle
  3. The steps
  4. The practices
In the first section "Lean and muda" (muda is an Japanese words meaning waste, but in Croatian it means "balls" so figure it out ... are balls a waste? ) I introduced the basics of lean in production by focusing on the Toyota production system and the seven wastes (transportation, inventory, waiting,motion, over -processing, over-producing and rework) and their correlation in software development. 

I also introduced the seven principles of lean in software development and the key principle of kaizen whose examples I talked about in the whole talk.

The second section was the most fun for me. I talked about the basic lean software process I used trough out my carrier what are its rules and how can it be constructed. The principal accent was made on limiting cycles and steps into cycles be value delivered not time (time is important but the first delimiter is value not time, time is used to remove the fat of the value delivered to deliver first what the client wants to see more).

There is a note in the second step which is not visible in the prezi, squares represent big chunks of work and circles represent smaller chunks of work.

The group


The third section covered each step in a typical cycle : requirements, architecture, development and deployment. This was the most fun, since I elicited input for the public. For example when I discussed architecture I did a quick collaborative high level architecture diagram about a system for tracking cargo loaded. I asked do we need a database and got answers : " A small database, Oracle, SQL server ". So we picked SQL Server, then we picked stored procedures as a way to interact with the database and then Silverlight as the UI technology. For each decision I asked a dozen questions to show the group that architecture decisions matter and define how the rest of the project will progress. 

In the final section I covered the practices of doing daily standup meetings and pair programming which I consider real important practices. 

After the prezi was done I showed a clip on you tube which was a satire on the "Fall of Hitler" movie about an agile project going wrong oh so typically. This video is not about my political, or religious beliefs and its intent is only to show how agile projects often fail not to offend any one,

28 April 2012

Surviving a distributed software development team


There is an art intrinsic in working with distributed teams. There is also an art in surviving working with distributing teams. This is an article which deals with the latter, the unsung and the unglamorous skill and craft of managing day to day survival working with a distributed team.
The core skill one need to have is relationship building. None other will help you in you daily work. Especially if you want to be great at it.
Why? Teams are group o f people. For a group to function people need to have good relationships with each other. If people are collocated those relationships build only by the fact that people work closely together. Of course this doesn't mean that those relationships are great, but they generally exists in a greater degree then those which naturally occur with distributed teams. Relationships need work and effort and not many people do spend it. Especially in the IT business.
Now, if you work with a distributed team, especially if you never or seldom met or worked in person with other team members chances are that you are not going to have a great relationship with them. Now, you will talk to them and manage your normal day to day assignments but that will generally be all.
Lets say you have a problem. You fouled something up, or you don't know something. Something happened which doesn't ordinary happen and you need help from one of your distributed team mates. And that help is generally something which will distract that person from their regular work for a couple of hours or more. What will happen?
You call that person, if it is a normal person she will try top help you. For an average half of an hour everything will be OK. Then a full hour will pass and that person will became nervous. And then she will find some excuse to continue working her regular work or she will just ditch you. What can you do? You can try calling someone else or try with escalating the issue to get the help you need. Both will generally not result in happy coworkers. If you call someone else that person will also be distracted from their work and be nervous and if you escalate the issue the person which will be dragged to help you (usually your first call) will not be happy that your superior made a point of noticing their failure with help you with your critical problem.
Just for a moment imagine that you spent some time during the start of the project getting to know your coworkers or just re-catching their life story if you worked previously together. Maybe just talking about their families, helping with their problems, discussing general stuff. Building a relationship.
And when you have a problem you need help with that person will be more likely to step in and help and stick to it because she will help a friend not a coworker.
The other scenario which I encounter and is a problem with distributed teams is getting steel cage death match allies. Sometimes during a project you will get into a team wide, or a subteam discussion about a technology solution, or a problem which needs to be solved, or you just need to defend your work. You need allies, you need people backing you up. If you spent some time talking with people and building a relationship they are more likely to be helpful if a problem arises and back you up. And even more helpful if you spent some time before hand asking a their opinion and discussing their ideas with the topic you are going to have a steel cage death match over. People respond well to being asked to express their ideas and opinions, especially engineers. If you want to win people over in a software team you need to ask them what they think and what they want and respect their ideas.
Now this a fallibility of mine which I some times fall into. I forget to do that, and then I get bitten into my humongous ass. If you are in a technical leadership role you cannot just enforce your opinions and ideas on other. You need to ask them what they think, what are their opinions and ideas. And wonder of all even the most junior person of the team will have something valuable to say.
In software development people and relationship matter. No matter the deadline, no matter the cost, think about the people first. Make your coo workers your top priority. And when the proverbial rear exiting stuff hits the fan they are going to be the people sitting next to you at six in the morning fixing last minute defects on the presentation tier of the application for the client presentation in the morning.
There is one thing I almost forgot to write. Talk do not write. All distributed teams use one from of IM communication or other. If you want to solve your problems fast and build relationships talk to the person on the other side do not write. Writing is good for quick ideas and exchanges but if a discussion is in place you need to talk to the other person, you will see how more quickly you will solve your problem.

14 December 2011

Coding Dojo Pula "Agile Architecture" Retrospective

This was the first time I held the same talk consecutively in two different group. Today I held the "Agile Architecture" talk on the monthly Coding Dojo Pula meetup. There was really quite a crowd, eight ten people, all professionals who started asking questions and discussing topics from the start.
I really like when there is an active discussion during a presentation.
From this presentation and the one before I've learned some lessons which I think are worth noting:

  • Stories and concrete examples are worth more then bullet points
  • Break things into multiple slides with real world examples for each slide
  • Be funny and open, use allegories
A couple of slides which I think are the most fun and illustrate the point:



The only thing I'm sad that no one from the local university deigned to show. Either the talk was to complex or people didn't bother. Really a shame, since we put a lot of effort into marketing the thing.

Probably need to schedule somewhere a more basic, begginer level talk.

EDIT 16.12.2011
Andrej Pintar sent a few of his photos he made at the talk. I'm adding them here to show the mood of the place which really great. On the first photo, on the left me is my colleague from Novatec Dejan Dragaš.




24 November 2011

Agile Architecture

There are two core principles to architecture in an agile environment which worked for me real good :

  • Document only small slices of the system one at a time at the time you need them
  • Be as specific as you need without going into too much details
A typical business system, one that is software intensive, is a really big and complex. When developing one such system it is impossible to document everything at once. What I do is to create a general corner stone architectural specification that defines the core architectural areas and principles of the system, a reference architecture around everything will be build and then create a series of small architecture documents (Architectural Notes or Memos) which are slices of architecture targeted at a specific system view or functionality which is developed for a first type. Architecture is a generalized specialization so such documents must convein all the information one needs to implement the designed architecture but not specialized too much in order prevent the multiple variants the same architectural areas can have. 
It is important not to design to early , but at just the right time. The goal is reduce the amount of time passed between the design creation and the implementation and to focus the architectural effort on the architecture which is need right at this moment of the currently developed sprint. 
Designing and documenting and architecture slice is one part of the whole problem, even when you create such a design at the right time with the right amount of detail the majority of the subsequent effort is spent communicating and reviewing the architectural implementation. If the implementation part is done by the architect and the senior team (such as the core of the system) a significant part of the architects effort is spent disemminating through the development team (or teams) the culture and the ideas required by the architecture design. 
Software is plastic, and programming is flexible. Event the most pure architecture can be twisted, scratched and mutated in something recognizable. The best way to insure an architecture to survive is to set up much of its essence in code and build tools which guide the developer down to a certain way of solving problems (which has its own problems , which is why architecture should be approached slice by slice and nothing is one hundred percent fixed in stone and unchangeable) and to integrate its core principles into the development culture of the development team which will ensure it gets adopted by every new team member.
Lots of teams make use of the shared tribal team identity as the only reference how things should be done by the project. This practice is spurned by software engineers, and with good reason, because software cannot be developed with tribal memory and shared culture alone, documentation must exists, tests and build tools must exists in order too enhance the human falabilities to which we all are susceptible : short memory, illness, death, holidays and leaving for a better opportunity. In its essence agile development values people over processes and interaction over rules, it doesn't mean no documentation or processes should be in place. We all are humans, and by definition fallible. Agile architecture should strive to reduce the human error by documenting and the essence of small specific slice of the system such as : grid architecture, background process architecture, form architecture, repository architecture, commenting system architecture etc.
Short is better for software developers, people will more eagerly read a ten page document then a one hundred page document. They will read it more often and learn more from it. It is also really easy to communicate a short document then a large one. Also, less errors are introduced in a short design then in a large one.
The agile manifesto reads as follows:
Individuals and interactions over processes and toolsWorking software over comprehensive documentationCustomer collaboration over contract negotiationResponding to change over following a plan

The agile manifesto clearly indicates that things on the left are more valuable then things on the right, but things on the right have a value. They are second to the things on the left, people have more value to software development over processes and tools, working software is king over documentation. But a balance must be made, without a documentation who will understand what is being developed? Without a set of class diagrams that show the core architecture for a subsystem from top to down and text describing it who will understand the code without someone guiding him through? 
Each day when I start my work I say to my self :

Your job is to enable other people to do their job better

I'm a technician and my focus is technology and the development team that works with it. I'm a software engineer by trade and a craftsman by soul and I really think only three things are important in software development:
working software, people and communication

For me agile architecture is that which maximizes those three things.