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

Monday, January 5, 2015

Discussing "Inventory" in Software Development - Classifying approaches


Interesting comments of Martin Fowler starting from this idea : "So as an example - one of the principles of lean manufacturing is the elimination of inventory.This leads to the question of whether there is an analogous item to inventory in software development."

http://martinfowler.com/bliki/MetaphoricQuestioning.html

Martin Fowler make a very interesting comment about a IMO less interesting idea "up front documentation is the equivalent of inventory": "Now I agree we need to substantially reduce this kind of speculative documentation; but the rationale for doing so must come from thinking about the software development process, not from purely reasoning by analogy."

Here is my comments on these subjects.

Manufacturing-Software Development Analogies

We should be careful on these analogies because these domains areas are pretty different. Examples: Just-In-Time approach in manufacturing must find solutions for a JIT Production (where the design was previously done "offline") and software development must find find solutions for a JIT Design ("Code is design").

Inventory in Software Development 

Manufacturing inventory mean (simplified) a reserve queue of (done) products, ready to be sold. A similar concept in software development IMO is not the massive up-front documentation (based on too many assumptions) , but rather in the motive of producing a such documentation: a massive set of requirements allocated to the same release/delivery/project. "No inventory" approach means as small is possible set of requirements per release. Indeed from this point of view, the classification is already done:
  • Large set of requirements releases - non-agile, non-lean approach
  • Small set of requirements releases - Agile approach, Lean approach
  • Very small set Small set of requirements releases - Continuous Delivery approach
An explicit description of  lean and Agile life-cycle models could be found in DAD- Disciplined Agile Delivery: https://disciplinedagiledelivery.wordpress.com/lifecycle/ 

More: With an increased construction productivity and/or a higher envisioning productivity, a larger set of requirements could be delivered in the same time. Productivity suppose here here good results and quality 

The resulted formula of "Inventory" for software development:

(Set of Requirements "volume")/productivity.

Comment: the "formula" could be enhanced to:

 (Work volume")/productivity. 

But, in this case, it is too vague.  The main aspects that increase volume or complexity of the "work" must be specified. here are some of them:
  • Requirements volume and complexity at the start
  • Solution that must match the requirement 
  • Team productivity 
  • Process
All elements of the formula are "requirements" for "No Inventory" process in software development:
  • small set of requirements
  • good design
  • no junk stories with associated phantom features
  • high productivity (all contributing aspects)
  • small releases 
  • adapted/effective/efficient process 
Finally, seems that starting with this assumption about a "No Inventory" approach for software development we are very close to the description of a Lean/Agile approach.

See more here:

Tuesday, January 14, 2014

Waterfall - an accident

Origins - the real Waterfall


An article released in 1970 by Winston Royce - "Managing the development of large software systems" -  it is the most known explicitly description of a sequential approach of the development, where the sequence of phases is in fact the sequence of disciplines (one type of activity per phase) : Requirements , Analysis, Design, Coding ,Testing (simplified).  Then, this life-cycle model was adopted by military standards for software acquisition and later was considered as a reference model by the industry.

Anyway, this was an accident! 

The mentioned sequence is just an early picture from that article, that have the following comments from the author:  "I believe in this concept, but the implementation described above is risky and invites failure. […]. The testing phase which occurs at the end of the development cycle is the first event for which timing, storage, input/output transfers, etc., are experienced as distinguished from analyzed."
The real proposed models are describe after that an contains some improvements. Here are some of them:

DO IT TWICE - The development must perform first a pilot model the product  - "If the effort runs 30 months then this early development of a pilot model might be scheduled for 10 months." - to reduce the risks: "Without this simulation the project manager is at the mercy of human judgment."

Somehow Evolutionary design
- preliminary design (high risks are addressed first) must be performed before analysis and design. Also, the design document must be updated after implementation - "AS BUILT". That mean "implementation phase" could change also the design.

History of failures


The single-step Waterfall has a history of failures, with a important rate of project failures on significant  software acquisitions.
1999 Review:   “Of a total $37 billion for the sample set, 75% of the projects failed or were never used, and only 2% were used without extensive modification.” (S. Jarzombek - Proc. Joint Aerospace Weapons Systems Support, Sensors and Simulation Symp., Gov’t Printing Office Press, 1999)   
The software industry was always a "top" domain with the highest rate of project failures , but in the Waterfall dominance era, it was the biggest problem.

Reactions to Waterfall


The DoD and others similar acquirers have reacted to these bad results with changes in the acquisitions standards (evolutionary instead of single step) and with support for new development and improvement approaches.  Unified Process was inspired also from  a big iterative project of DoD. CMM and then CMMI (Capability Maturity Model Integration) become a required process improvement approach.

The community of professionals & software engineers has reacted with the creation of more iterative approaches: Unified Process (Ivar Jacobson, Grady Booch and James Rumbaugh), XP - Extreme programming (Kent Beck and  Ron Jeffries), Scrum (Jeff Sutherland and Ken Schwaber) and others.
Then, the main creators of iterative approaches from the (... later called) Agile family and the main creators of Agile related knowledge published in 2001 the Manifesto for Agile Software Development. From what I know, the idea of the meeting that generate this manifesto belong to Robert C. Martin.

Results "after" Waterfall


The results of the software industry were improved after larger usage of iterative approaches. The most known reports and polls (as chaos reports of the Standish Group) indicates that Iterative and Agile approaches have better results than Waterfall (and Iterative-UP and Agile has similar numbers).

 ?


Waterfall it is still used for software development (with mentioned results), but has no support and no recommendation from known authors from software development area (at least I do not know any). In many cases, the motivation is the need of a "planned" approach instead of adaptive-Agile methods. This motivation is not valid because there are iterative alternatives for "planned" case: Agile works for some projects , Unified Process for others and Spiral for high risks cases.
Remember Wiston Royce words about single-step Waterfall: ("Without this simulation") "the project manager is at the mercy of human judgment."