Share article Agile Development Part 2: Agile Development Part 2 Get Interview tutorials and videos on .NET 3.5, 4.0, Agi ...
Get Interview tutorials and videos on .NET 3.5, 4.0, Agile,ASP.NET, SQL Server, CAS, Security, WCF, SharePoint, Azure, OOPS and many more on www.questpond.com
This article is a quick FAQ of Agile. By reading this you will understand fundamentals of Agile and different ways of implementing Agile.
I have been writing and recording lot of architecture related videos on design patterns, UML , estimation and C# projects. You can see the sample videos at http://www.questpond.com.
Par1 Agile FAQ :- http://www.codeproject.com/KB/aspnet/AgilePart1.aspx.
If you read the XP life cycle one of the things after we implement the task is code refactoring. Refactoring the process of changing the software in such a way that it does not change the behavior of the code but on the other hand improves the internal structure. No code can be perfect with architecture, coding conventions, high reusability at the first level itself. Normally it improves over the time. It helps developers to implement the necessary solution today and improve / make the code better tomorrow. Refactoring is the process of changing the system to improve the internal structure with out changing what the system does. Below are three major activities performed during refactoring.
XP is all about light-weight and simplicity. This holds true not only for a process but also for coding. When you see a code can be simplified, discuss the same with your pair developer and
implement the same. For instance below is code which was further simplified in to one equation:
Figure: - Simplify Code
Move similar operations in to reusable code.
If we are having similar operations move them to one reusable code. For instance in the below class we have various sort function which sorts by phone, code, name and date. We can combine the
same in to one function called as sort and make it simple.
Figure: - Reusable code
When a project has constrained time lines it’s very much possible that project can have lot of duplications. So when developers have executed the task they can review for these kinds of duplications. For example the below figure ‘Remove duplication’ shows how the phone number duplication is removed from the customer table. The customer table had repetitive fields like mobile number, land line and office number. In abstract terms these represent telephone numbers. So we split the customer table in to two tables one is the customer table and the other is customerphone and built a relationship between them.
Figure: - Remove Duplication
Below is again one more scenario where we have an invoice class which has two methods (“GenerateInvNo” and “CreateInvNo”) and they do the same thing, generate unique
invoice numbers. We can refactor / improve the code by combining these two methods in to one.
Figure: - Code Duplication
No Code is perfect it has to be made perfect
What is a feature in Feature Driven Development?
Feature is a process which adds value to the end customer and it can be planned. In short it has two characteristics:
Figure: - Feature
In short it’s not necessary that a feature maps with use case or a user story. It should also be planned and manageable. Feature are delivered in a given time box (we will discuss this in detail
in the coming sections).
FDD is an iterative methodology to deliver projects. Rather than delivering projects in one go manner we deliver the features with in time limits. So let’s understand how the FDD cycle moves. We
will have two views one is the over all flow and one is the detail iteration flow.
Below figure ‘Structure of FDD project’ shows step by step approach for FDD project.
Figure: - Structure of a FDD project
The above defined FDD cycle is an overall view. Let’s go deep in to how every iteration will be executed. Below figure ‘Steps in Iteration’ shows how an iteration execution happens in a detailed manner.
Figure: - Steps in a Iteration
Testing is done at end of each iteration. This ensures frequent checks on each deliverable of every iteration.
Every iteration in FDD has to be limited to some kind of timelines. Deciding the length of timelines for every iteration is termed as time boxing. Same has been explained the previous question in
a detailed manner.
Iteration in XP is small i.e. between 1 to 4 weeks. This iteration sounds good for smaller projects, but when it comes to large projects, iteration go in months. That’s where FDD comes under
picture. Iterations in FDD can go in months and probably years.
SCRUM is a methodology which believes rapid changes of customer can not be solved by traditional approach. So it adopts an empirical approach where it believes problem can not be understood or defined. Rather concentrate on the team’s ability to respond to the emerging requirements.
Before we understand the SCRUM cycle let’s get familiar with some terms regarding SCRUM.
Below figure ‘Product Catalog and Sprint’ shows a typical product catalog broken in to sprint. In the left hand side of the figure we have shown two items in the product back log “Create Customer” and “Create Supplier”. To complete “Create Customer” the developer need to the following sprint task “Code Business Logic”, “Design UI” and “Prepare Test Plans”.
Figure: - Product Catalog and Sprint
Below figure ‘SCRUM Flow’ shows how the development flow moves in a project. We will understand the SCRUM flow step by step.
Step 1:- Product owner (i.e. the customer) creates a list of product log (list of functionalities).
Step 2 and 3:- In these phases we sit with the customer and prioritize the product catalog. We discuss with the customer which functionality is must and must be delivered first.
Step 4 and 5:- In both these phases we breakdown the product catalog in to tasks called as sprint backlog.
Step 6:- We start executing the sprint task and monitoring the sprint activity.
Step 7 and 8:- Once we are done with the sprint activity, we take the next sprint / task by again going to the sprint phase.
Step 9:- If there are no more sprint / task the product log is completed, which means the project is completed.
Figure: - SCRUM Flow
SCRUM has some different terminologies when it comes to role names in SCRUM. Below is the list of roles with what actually they mean.
People with pig roles are those people who are committed to the project. If the project fails it affects these people. So of the pig roles are developer, customer, project
manager etc.
Product owner means the end customer or user.
Scrum master is the process driver. These are the people who drive the scrum process. They are consultants for Scrum process.
People with chicken roles work indirectly on the project. They do not really benefit from the project but their feedback is valuable to the project. They can not be held
responsible if the project is not successful.
Figure: - SCRUM Roles
DSDM also termed as Dynamic Systems Development Method has the following characteristics:-
Figure: - DSDM Characteristics
DSDM has three basic phases Pre-project, Project life cycle and Post project phase.
Figure: - DSDM Phases
There are in all five phases in DSDM project life cycle:-
Figure: - DSDM Project Life Cycle
Lean software development has derived its principles from lean manufacturing.
Below figure ‘Principles of LSD’ shows all the principles.
Figure: - Principles of LSD
Let’s understand in brief about the principles.
Eliminate waste: - Only deliver what’s needed to the end user. Anything more than that is a waste. In short anything which does not add value is a waste. In short we can by pass
tasks and still deliver then it should be bypassed.
Decide as late as possible: - Software systems are complex. The more they are near to execution more is the clarity. So delay decisions so that they can be based in facts rather
than assumptions. For instance your team decides to use automation testing, but when you complete execution you come to know changes are delivered every day by the developer. After execution you
conclude manual testing is the best option. Bad part will be if you have already bought an automation tool, its waste of money.
Deliver as fast as possible: - faster a product is delivered, faster you will get user response and faster you can improve in the next iteration. The concept is not fast coding,
but try to deliver is small user identified chunks for better understanding.
Motivate team: - Team members are the most important aspect for success of any project. Motivate them, given them roles; keep your team spirit high and whatever you can do to
make them feel good in the project. A highly motivated team delivers project on time.
Integrity: - Software system should be delivered in loosely coupled components. Every component or module can function individually and when integrated with the project it works perfectly well. It should be a plug and play from the end user point of view. This spirit is derived from how actual production system work. You can assemble a car with wheels from one organization and seats from other organization.
ASD (Adaptive Software Development) accepts that change is a truth. It also accepts in principles that mistakes can happen and it’s important to learn from those mistakes in the future. Below figure ‘ASD Cycle’ shows three important phases in ASD.
Figure: - ASD Cycle
Let’s understand all the three phases in a detail manner.
Speculate (nothing but planning):- This is the planning phase of ASD cycle. Below figure ‘Speculate’ shows in detail what happens in this phase.
Define Project Scope: - This is the first phase in the main speculate phase. In this we set the main goals and what’s the scope of the entire project.
Set Time for Scope: - Timelines are decided for the scope identified in the previous phase.
Decide the number of iterations: - Depending on the time lines and the scope we identify how many iterations will the project have.
Break Scope to tasks: - In this section we break the scope in to tasks. Tasks are nothing but development activity which a developer has to do to complete the scope.
Assign task to developers: - Assign those task to developer.
Now that we know who will do what task, its time for coding / execution.
Figure: - Speculate
Collaborate (coding / execution):-Execute as per the task and test it.
Learn (Review and give feedback to planning):- At the end of iteration see what lessons we have learnt and apply the same for the next iteration.
From all the methodologies shown above, XP is the most used for Agile. One of the important points to be noted about all the XP methodologies described above is that every body believes in accepting change. Principles of all the agile methodologies are more or less same. So do not get confused just understand what every methodology concentrates on. For instance FDD plans around features, Scrum uses product owner and catalog for describing a project, DSDM gives importance to RAD. So understand the main theme of the methodologies but yes the common acceptance is every one believes on ‘Accepting Changes’.
.Net interview questions: - Explain why it is not preferred to use finalize for clean up?
.Net interview questions: - Show the five levels in CMMI?
C# interview questions and answers: – Explain the use of Icomparable in c#?
C# interview questions: - How can we check which rows have changed since dataset was loaded?
C# interview questions and answers: - Can you write a simple c# code to display Fibonacci series?
.NET interview questions and answers: - What is difference betweenIcomparable VS Icomparer ?
C# and .NET interview question: -What is short circuiting in C#?
C# and .NET interview question: - What are symmetric and asymmetric algorithms?
Important c# and .NET interview question on object pooling and Gridview events?
.NETinterview questions and answers: – Will
the finally run in this code?
How to prepare for c# and .NETinterviews?
C# and .NET Interview questions: - What is Thread.Join () in threading?
.NET Interview questions and answers: -What is serialization and deserialization in .NET?
C# and .NET interview question: - What is hashing?
c# and .NET interview question:- what connects dataset and data source ?
.NET interview questions and answers: - What is TPL?
.NET Interview questions and answers: -What are different access modifiers?
MVC ( Model view controller) interview questions and answers
ASP.NET Application and Page Life Cycle
6 important use of Partial/Mock testing
6 important uses of Delegates and Events
7 Simple Steps to Run Your First Azure Blob Program
8 Steps to Create Workflows using SharePoint Designer
C# Code Reviews using StyleCop – Detailed Article
Four real world uses of Partial classes and Partial methods
SharePoint Quick Start FAQ Part 1
SharePoint Quick Start FAQ Part 6 – Workflows, Workflows and Workflows
MVC Interview questions and answers Article
(Model view controller)MVC Interview questions and answers
MVC interview questions with answers video: – What is Web API how to implement the same?
WCF Interview questions videos
C# Interview Questions & Answers Article
6 important use of Partial/Mock testing
6 important uses of Delegates and Events
7 Simple Steps to Run Your First Azure Blob Program
8 Steps to Create Workflows using SharePoint Designer
C# Code Reviews using StyleCop – Detailed Article
Four real world uses of Partial classes and Partial methods
SharePoint Quick Start FAQ Part 1
SharePoint Quick Start FAQ Part 6 – Workflows, Workflows and Workflows
C# (Csharp) interview questions and answers: – What are indexers in .NET?
C# OOP interview questions and answers: - I do not want to implement all the interface methods?
C# design pattern (UNIT of Work Design Pattern)
C# design pattern interview questions – What
is Dependency injection ?
C# interview questions and answers: - What is the difference between
“==” and .Equals()?
How questions are asked in c# interviews?
C# design pattern interview question: - DI vs IOC
8 important C# Interview questions on IL code, JIT, CLR, CTS, CLS and CAS
What is the difference between Reflection and Dynamic in C#?
Algorithm interview questions and answers: – Can you write code for bubble sort algorithm?
Algorithm interview questions and answers: – What is inserted sort algorithm?
SQL Server Interview Questions & Answers Article
SQL Server interview questions and answers: - What is HID data type in SQL Server ?
.NET INTERVIEW QUESTIONS & ANSWERS ARTICLE
.NET interview questions and answers: - How to reverse a string in .NET ( DotNet)?
.NET interview questions and answers: - What is the use of Click Once?
.NET interview questions and answers: - Will the below codes create new instances?
C# and .NET interview questions with answers – What is Nuget?
Dependency injection (DI) VS Inversion of Control (IOC)
.NET interview questions with answers: - What is the difference between Reflection and Dynamic?
WPF INTERVIEW QUESTIONS & ANSWERS ARTICLE
6 important WPF and Silverlight Multi-threading interview questions with answers