This a summarization and translation to English of a presentation prepared by me and an associated researcher in 2008. It was used to support our arguments against detailed one-year plans, a demand from the management of a big and interesting project we've been taking part since 2006.
So, what's the point?
The point is that the starting point is wrong! When people from the software development area sought for references in planning in the industry they thought it was obvious to check the techniques used by the custom production industry - where each product represents a different production project, and therefore, design is done product by product - not from the repetitive production industry, after all, software development is custom production, instead of reproduction of the same design in large quantities.
However, the reality is not that simple. While custom production runs under a low uncertainty environment (given that the product design was done beforehand), repetitive production usually runs under uncertainty - demand uncertainty.
Demand uncertainty is what happens to software. I not saying uncertainty in quantity, but uncertainty in building effort. Therefore, although we are talking here about a custom product, the techniques that apply to its production planning activities are the ones related to repetitive production.
In my opinion, those related to Lean Thinking... I am going to talk about this in future posts, now let's go to our third and last logical chaining.
Third Logical Chaining
From the second chaining:
Knowledge based production AND intangible good → there is no physical metrics
Non physical metrics → inaccurate estimates
We have:
Inaccurate estimates → high uncertainty in the production process
AND
Custom Production → low uncertainty in the production process is expected
Then:
Although software development is custom production, it is not reasonable to use industry's custom production planning methods because they expect low uncertainty in the production process, but what we have is high uncertainty !!!
Now that I have shown, with some formality, that the current effort metrics don't work for software, I feel more comfortable to go forward and explain how to use Agile and Lean Thinking methods for software development planning.
A blog devoted to the discussion of practical techniques for developing Enterprise Information Systems (EIS).
Ideas on Enterprise Information Systems Development
This blog is devoted to ideas on Enterprise Information Systems (EIS) development. It focuses on Lean Thinking, Agile Methods, and Free/Open Source Software, as means of improving EIS development and evolution, under a more practical than academical view. You may find here a lot of "thinking aloud" material, sometimes without scientific treatment... don't worry, this is a blog!
Every post is marked with at least one of Product or Process labels, meaning that they are related to execution techniques (programming and testing) or management techniques (planning and monitoring), respectively.
Every post is marked with at least one of Product or Process labels, meaning that they are related to execution techniques (programming and testing) or management techniques (planning and monitoring), respectively.
Showing posts with label Project Planning. Show all posts
Showing posts with label Project Planning. Show all posts
Wednesday, November 10, 2010
Friday, November 5, 2010
Effort Metrics Sophisma - Part III
This a summarization and translation to English of a presentation prepared by me and an associated researcher in 2008. It was used to support our arguments against detailed one-year plans, a demand from the management of a big and interesting project we've been taking part since 2006.
The (Tough) Software Reality
Unfortunately, software is an intangible good, produced by knowledge workers. An intangible product means that it is not possible to measure its physical features, such as weight or diameter. Production based on knowledge is also hard to measure, because it isn't repetitive: there isn't something like the industry's "medium operation leadtime". Moreover, software development is highly dependent of people*, with all their specificities, problems, way of thinking etc.
(*If MDD were really able to drastically reduce the need for programming, organizations would no longer be hiring lots of programmers ...)
In other words, uncertainty in software development comes from:
- Non-repetitive and creativity-based work.
- Constant changes in technology.
- Some tasks considered as simple behave as complex.
- Frequent changes in requirements.
- Necessity to learn about the domain area during the development
(the above arguments are also valid for defending iterative & incremental cycles...)
Second Logical Chaining
Software → intangible good, non-physical
Software → knowledge based production, knowledge is a non-physical resource
Knowledge based production AND intangible good → there is no physical metrics (by definition)
Non physical metrics → inaccurate estimates
From the first chaining:
Detailed planning needs → detailed estimates
However
Software → inaccurate estimates
Inaccurate estimates → non detailed estimates
Then
Non detailed estimates → Non detailed planning
In other words, it is not feasible to produce detailed planning for software, even when using waterfall cycles !!!!!
The central point for reaching this sad conclusion is
Non physical metrics → inaccurate estimates
I leave this hook here so that people can try to dismantle our arguments: if you prove that you can have accurate estimates without having physical metrics, the argument here is broken.
More Conclusions
Detailed planning works in the hard industry, however some people try to transplant it to the software development industry in carelessly ways. Many organizations insist in this broken model, bringing high costs to the control and (re)planning functions, and in the end the goal is not to deliver a good quality product ontime anymore, but to create a false notion of control and of showing that managers are able of "thinking ahead" (although this "ahead" is unknown in the real word...).
For business people, not being able to create a detailed plan for months ahead is something like signing up a "proof of incompetency", many prefer to create plans that need strict control and even so, their baselines change all the time. At this point, the tail starts to wag the dog...
The (Tough) Software Reality
Unfortunately, software is an intangible good, produced by knowledge workers. An intangible product means that it is not possible to measure its physical features, such as weight or diameter. Production based on knowledge is also hard to measure, because it isn't repetitive: there isn't something like the industry's "medium operation leadtime". Moreover, software development is highly dependent of people*, with all their specificities, problems, way of thinking etc.
(*If MDD were really able to drastically reduce the need for programming, organizations would no longer be hiring lots of programmers ...)
In other words, uncertainty in software development comes from:
- Non-repetitive and creativity-based work.
- Constant changes in technology.
- Some tasks considered as simple behave as complex.
- Frequent changes in requirements.
- Necessity to learn about the domain area during the development
(the above arguments are also valid for defending iterative & incremental cycles...)
Second Logical Chaining
Software → intangible good, non-physical
Software → knowledge based production, knowledge is a non-physical resource
Knowledge based production AND intangible good → there is no physical metrics (by definition)
Non physical metrics → inaccurate estimates
From the first chaining:
Detailed planning needs → detailed estimates
However
Software → inaccurate estimates
Inaccurate estimates → non detailed estimates
Then
Non detailed estimates → Non detailed planning
In other words, it is not feasible to produce detailed planning for software, even when using waterfall cycles !!!!!
The central point for reaching this sad conclusion is
Non physical metrics → inaccurate estimates
I leave this hook here so that people can try to dismantle our arguments: if you prove that you can have accurate estimates without having physical metrics, the argument here is broken.
More Conclusions
Detailed planning works in the hard industry, however some people try to transplant it to the software development industry in carelessly ways. Many organizations insist in this broken model, bringing high costs to the control and (re)planning functions, and in the end the goal is not to deliver a good quality product ontime anymore, but to create a false notion of control and of showing that managers are able of "thinking ahead" (although this "ahead" is unknown in the real word...).
For business people, not being able to create a detailed plan for months ahead is something like signing up a "proof of incompetency", many prefer to create plans that need strict control and even so, their baselines change all the time. At this point, the tail starts to wag the dog...
Tuesday, November 2, 2010
Effort Metrics Sophisma - Part II
This a summarization and translation to English of a presentation prepared by me and an associated researcher in 2008. It was used to support our arguments against detailed one-year plans, a demand from the management of a big and interesting project we've been taking part since 2006.
Interruption
I will interrupt a bit this series because I have just bumped into an "old" article on software metrics, about which I would like to comment briefly: Jones, C. Software Metrics: Good, Bad and Missing, Computer, vol. 27, no. 9, pp. 98-100, Sept. 1994.
Its abstract says
"
Interruption
I will interrupt a bit this series because I have just bumped into an "old" article on software metrics, about which I would like to comment briefly: Jones, C. Software Metrics: Good, Bad and Missing, Computer, vol. 27, no. 9, pp. 98-100, Sept. 1994.
Its abstract says
"
The software industry is an embarrassment when it comes to measurement and metrics. Many software managers and practitioners, including tenured academics in software engineering and computer science, seem to know little or nothing about these topics. Many of the measurements found in the software literature are not used with enough precision to replicate the author's findings-a canon of scientific writing in other fields. Several of the most widely used software metrics have been proved unworkable, yet they continue to show up in books, encyclopedias, and refereed journals.
"
Although it was published 16 years ago, I think the problems listed on this paper are still valid, and the paragraph above manifests my opinion on the use of metrics for planning in software: they only work under certain conditions and may have worked for a given sample of projects, but may not work for my project. In my humble opinion, the current metrics don't present a sufficient level of determinism so that we can use them seriously for planning.
As I said in this series' first post, if I produce a brick here in Brazil, it will present the same size and weight in China, for instance. If I use the correct Engineering units and calculations, someone will reproduce "my experiment" of using these bricks anywhere in the Globe*. But the same doesn't occur with software requirements and thus with source code. I can send the same requirements for different people and they will implement them using different languages, paradigms, algorithms...
*(before someone say that bricks done in Brazil can present different plastic behavior in other regions of the Globe, I say that Materials Science has already developed methods to deal with this, while Software "Engineering" is still far away from doing the same for software.)
It is amazing how people use those constants found in some metrics (such as the one found in Use Case Points, which still gives 47,000 hits in Google...) without thinking that they maybe be not applicable to their specific project!
Therefore, if "So long as these invalid metrics are used carelessly, there can be no true software engineering, only a kind of amateurish craft that uses rough approximations instead of precise measurement.", I prefer to use experience and short iterations for planning.
ps. 1: the cited paper defends the use of Function Points, which I think is not applicable to Iterative & Incremental cycles.
ps. 2: I will repost a previous remark on UCP: Tell me how can you use it in an (really) Iterative & Incremental project (remember that real I&I cycles only details Use Cases when needed, so how are you going to count the number of steps for every use case and then get a "precise" effort estimation?). In spite of this, many teachers still teach UCP and I&I cycles in the same package...
"
Although it was published 16 years ago, I think the problems listed on this paper are still valid, and the paragraph above manifests my opinion on the use of metrics for planning in software: they only work under certain conditions and may have worked for a given sample of projects, but may not work for my project. In my humble opinion, the current metrics don't present a sufficient level of determinism so that we can use them seriously for planning.
As I said in this series' first post, if I produce a brick here in Brazil, it will present the same size and weight in China, for instance. If I use the correct Engineering units and calculations, someone will reproduce "my experiment" of using these bricks anywhere in the Globe*. But the same doesn't occur with software requirements and thus with source code. I can send the same requirements for different people and they will implement them using different languages, paradigms, algorithms...
*(before someone say that bricks done in Brazil can present different plastic behavior in other regions of the Globe, I say that Materials Science has already developed methods to deal with this, while Software "Engineering" is still far away from doing the same for software.)
It is amazing how people use those constants found in some metrics (such as the one found in Use Case Points, which still gives 47,000 hits in Google...) without thinking that they maybe be not applicable to their specific project!
Therefore, if "So long as these invalid metrics are used carelessly, there can be no true software engineering, only a kind of amateurish craft that uses rough approximations instead of precise measurement.", I prefer to use experience and short iterations for planning.
ps. 1: the cited paper defends the use of Function Points, which I think is not applicable to Iterative & Incremental cycles.
ps. 2: I will repost a previous remark on UCP: Tell me how can you use it in an (really) Iterative & Incremental project (remember that real I&I cycles only details Use Cases when needed, so how are you going to count the number of steps for every use case and then get a "precise" effort estimation?). In spite of this, many teachers still teach UCP and I&I cycles in the same package...
Sunday, October 31, 2010
Effort Metrics Sophisma - Part I
This a summarization and translation to English of a presentation prepared by me and an associated researcher in 2008. It was used to support our arguments against detailed one-year plans, a demand from the management of a big and interesting project we've been taking part since 2006.
The goal of this presentation was to show that detailed planning (months ahead) in software development either:
1) Force waterfall cycles.
2) Are inaccurate, leading to a lot of changes in the baselines, which in turn lead to high costs of control function.
Planning in the (hard) Industry
Traditionally, the industry follows waterfall cycles (in spite of Concurrent Engineering), as you can see, for instance, in Gera's lifecycle. In the other engineerings, product metrics are well established, in some cases for centuries. If you say that 10 meters of wall will use 500 bricks, it will use 500 bricks in Brazil, China, or Denmark. In other words, in "traditional" engineering, products are tangible - you can measure them, doesn't matter who made them or where you are. A brick is a brick, and that's it.
(before you say that someone can count lines of code, even this metric is not exact, since I can write the same code using more or less lines, or even write different algorithms with different numbers of lines, and even though, they do the same thing - so please forget that LOC can be exact or tangible)
First Logical Chaining
Detailed planning needs → detailed estimates
Detailed estimates needs → detailed product design (for defining activities in detail)
Then
Detailed planning needs → detailed product's design
So we have
Detailed product's design (in the beginning of the project) → waterfall
Then
Detailed planning → waterfall!
First Conclusions
The arguments could stop here since it would fall into a discussion of whether or not using a waterfall cycle, which is already known to be inefficient in software development.
Still, it could be suggested that in some cases it is necessary to make detailed product design in the beginning, for example, for Government contracts. In the next post I will show that even in that cases - when Law forces Big Design Up Front (BDUF) - the planning won't be accurate.
The goal of this presentation was to show that detailed planning (months ahead) in software development either:
1) Force waterfall cycles.
2) Are inaccurate, leading to a lot of changes in the baselines, which in turn lead to high costs of control function.
Planning in the (hard) Industry
Traditionally, the industry follows waterfall cycles (in spite of Concurrent Engineering), as you can see, for instance, in Gera's lifecycle. In the other engineerings, product metrics are well established, in some cases for centuries. If you say that 10 meters of wall will use 500 bricks, it will use 500 bricks in Brazil, China, or Denmark. In other words, in "traditional" engineering, products are tangible - you can measure them, doesn't matter who made them or where you are. A brick is a brick, and that's it.
(before you say that someone can count lines of code, even this metric is not exact, since I can write the same code using more or less lines, or even write different algorithms with different numbers of lines, and even though, they do the same thing - so please forget that LOC can be exact or tangible)
First Logical Chaining
Detailed planning needs → detailed estimates
Detailed estimates needs → detailed product design (for defining activities in detail)
Then
Detailed planning needs → detailed product's design
So we have
Detailed product's design (in the beginning of the project) → waterfall
Then
Detailed planning → waterfall!
First Conclusions
The arguments could stop here since it would fall into a discussion of whether or not using a waterfall cycle, which is already known to be inefficient in software development.
Still, it could be suggested that in some cases it is necessary to make detailed product design in the beginning, for example, for Government contracts. In the next post I will show that even in that cases - when Law forces Big Design Up Front (BDUF) - the planning won't be accurate.
Monday, September 13, 2010
Process Evaluation X Product Evaluation, How Companies Hire, and Parnassianism
It is usual to companies to post recruitment announces asking for people from given educational institutions (at least here in Brazil): "we seek professionals who graduated from X, Y, or Z...". Do you think companies check these institutions pedagogical material to choose which institutions list? I am talking about the dozens of documents we teachers must fill to show that we are following a giving teaching process. No, companies check the product: the professional that graduated from these institutions. It is something like "usually, students from these institutions are good professionals". You don't see things like "institution X has a nice pedagogical process, I checked their documents...", managers don't care about this, they care about the overall quality of the outputs of these institutions.
It is curious too see the same manager that behaves like this as a "costumer", saying that it is important to fill in dozens of forms showing "how good is their development process...". Funny, isn't it? As a costumer the main thing is the final product, but as a manager it is the process(?). Someone would promptly answer: it's obvious, as a manager you are responsible for the process. Yes, that's right, and we must take care of our management process as a precious thing.
However, what I am discussing here is a question of focus. I am not saying that correctly managing the development process isn't important, in fact, it is very important. I am saying that you should map every process activity into the client's value chain. The client is the important part, and executing tasks that don't aggregate value to the final product is simply waste. Doesn't matter if you "process framework" says they are necessary, it is waste. Sorry for that. Quality must me measured on top of the product, process quality is an indirect measure and don't supply any real proof of product quality. Yes, leadtime and cost are important process metrics but they don't say much about the quality of the product. And unnecessary tasks raise leadtime and costs without aggregating value to the client.
Here at NSI, we know some people who work for certified companies, and they frequently report informally some horrible real-world practices at these companies. The fact that your company got certified only prove that you could fill-in a lot of forms, and while the auditors where in place you managed to show that everything was really perfect. Sorry again, but the only thing that really matters for your customers is the delivery of good quality products, on-time and on-cost! Your certification today can reduce the chances of occurring a disaster tomorrow, but it doesn't give any guarantee to you, your company, and your clients.
Only a process that focuses on keeping product quality - and not showing how good it(self) is - can give you more security that a disaster won't occur. At this point I introduce Parnassianism. According to Wikipedia, "Gerard Manley Hopkins used the term Parnassian to describe competent but uninspired poetry, where a talented poet is merely operating on auto-pilot." When I was in high school I learned that it was "the art for the art" and "poetry for poets (not for the public)."
Certification sometimes becomes Project Management Parnassianism.
You can say that auto-pilot is good, meaning that your process is industrialized, standardized and works smoothly. Ok. Now read the first part: uninspired. Do you really think that in times of highly dynamic Economy and Technology you won't need to be creative to attain competitive advantage? And do you really believe that processes based on taking notes, scheduling and running long meetings, and reporting to various hierarchical levels will allow you to be creative? Processes where workers cannot create, test, and put in production new stuff quickly are really the answer for market shifts? Moreover, what about activities for process control that increase costs and leadtimes, without improving the product?
The truth is that Certification Industry became "an end in itself", you do things because someone said to do that. And the time it takes from a good new idea to appear and to reach the certification documentation is too long to help innovation, someone will have the same idea and will apply it before you do - while you wait for the "new, official, certified documentation."
The best way of detecting that you are not innovating in management anymore is when someone ask you "why you do that?" and you answer "because our certified process says so." Or, even worse, "how this activity aggregates value to the final product?", and you answer "Oh, yeah, not directly, but this is necessary for us too <do something internally>."
That's Parnassianism in Project Management: doesn't matter the people's (that read your poetry) needs or wishes, what matters is to follow standardized metrics.
Beautiful, isn't it?
But who is going to buy pretty formated but non-inspiring poetry?
It is curious too see the same manager that behaves like this as a "costumer", saying that it is important to fill in dozens of forms showing "how good is their development process...". Funny, isn't it? As a costumer the main thing is the final product, but as a manager it is the process(?). Someone would promptly answer: it's obvious, as a manager you are responsible for the process. Yes, that's right, and we must take care of our management process as a precious thing.
However, what I am discussing here is a question of focus. I am not saying that correctly managing the development process isn't important, in fact, it is very important. I am saying that you should map every process activity into the client's value chain. The client is the important part, and executing tasks that don't aggregate value to the final product is simply waste. Doesn't matter if you "process framework" says they are necessary, it is waste. Sorry for that. Quality must me measured on top of the product, process quality is an indirect measure and don't supply any real proof of product quality. Yes, leadtime and cost are important process metrics but they don't say much about the quality of the product. And unnecessary tasks raise leadtime and costs without aggregating value to the client.
Here at NSI, we know some people who work for certified companies, and they frequently report informally some horrible real-world practices at these companies. The fact that your company got certified only prove that you could fill-in a lot of forms, and while the auditors where in place you managed to show that everything was really perfect. Sorry again, but the only thing that really matters for your customers is the delivery of good quality products, on-time and on-cost! Your certification today can reduce the chances of occurring a disaster tomorrow, but it doesn't give any guarantee to you, your company, and your clients.
Only a process that focuses on keeping product quality - and not showing how good it(self) is - can give you more security that a disaster won't occur. At this point I introduce Parnassianism. According to Wikipedia, "Gerard Manley Hopkins used the term Parnassian to describe competent but uninspired poetry, where a talented poet is merely operating on auto-pilot." When I was in high school I learned that it was "the art for the art" and "poetry for poets (not for the public)."
Certification sometimes becomes Project Management Parnassianism.
You can say that auto-pilot is good, meaning that your process is industrialized, standardized and works smoothly. Ok. Now read the first part: uninspired. Do you really think that in times of highly dynamic Economy and Technology you won't need to be creative to attain competitive advantage? And do you really believe that processes based on taking notes, scheduling and running long meetings, and reporting to various hierarchical levels will allow you to be creative? Processes where workers cannot create, test, and put in production new stuff quickly are really the answer for market shifts? Moreover, what about activities for process control that increase costs and leadtimes, without improving the product?
The truth is that Certification Industry became "an end in itself", you do things because someone said to do that. And the time it takes from a good new idea to appear and to reach the certification documentation is too long to help innovation, someone will have the same idea and will apply it before you do - while you wait for the "new, official, certified documentation."
The best way of detecting that you are not innovating in management anymore is when someone ask you "why you do that?" and you answer "because our certified process says so." Or, even worse, "how this activity aggregates value to the final product?", and you answer "Oh, yeah, not directly, but this is necessary for us too <do something internally>."
That's Parnassianism in Project Management: doesn't matter the people's (that read your poetry) needs or wishes, what matters is to follow standardized metrics.
Beautiful, isn't it?
But who is going to buy pretty formated but non-inspiring poetry?
Sunday, September 12, 2010
Why Agile for EIS? - Part III
There is an "ultimate" argument for Agile for EIS: need for speed.
Although this is not mainstream yet, more and more EIS are becoming in reality systems of systems. People talk about Enterprise Mashups and Dynamic Process Integration. During a dinner in Confenis 2010 some of us were discussing about the huge amount of disparate data sources and business processes that must be integrated to achieve better enterprise management, better decisions, and better understanding of customer expectations - in other words, to attain and keep competitive advantage. And new sources appear almost every day.
Although there is a lot of work on automating and reducing the effort for the integration of business processes and data sources, I personally believe that programmers will still have a key role in all this. And for us to give quick response to these new integration needs ("which appear almost every day"), we cannot count on heavy and slow project management processes. Moreover, we cannot count on filling forms to guarantee software quality, simply because forms are not software, and there is no guarantee that the form is telling the truth.
Enter Agile...
Ps.: there is one Agile technique that I am not convinced yet of its applicability in EIS: Open Scope Contracts. I believe that is too hard for most law departments, in special in big companies and government, to accept this. In fact my team faced this problem when we tried to use OSC in an small ERP project for a foreign government some time ago.
Although this is not mainstream yet, more and more EIS are becoming in reality systems of systems. People talk about Enterprise Mashups and Dynamic Process Integration. During a dinner in Confenis 2010 some of us were discussing about the huge amount of disparate data sources and business processes that must be integrated to achieve better enterprise management, better decisions, and better understanding of customer expectations - in other words, to attain and keep competitive advantage. And new sources appear almost every day.
Although there is a lot of work on automating and reducing the effort for the integration of business processes and data sources, I personally believe that programmers will still have a key role in all this. And for us to give quick response to these new integration needs ("which appear almost every day"), we cannot count on heavy and slow project management processes. Moreover, we cannot count on filling forms to guarantee software quality, simply because forms are not software, and there is no guarantee that the form is telling the truth.
Enter Agile...
Ps.: there is one Agile technique that I am not convinced yet of its applicability in EIS: Open Scope Contracts. I believe that is too hard for most law departments, in special in big companies and government, to accept this. In fact my team faced this problem when we tried to use OSC in an small ERP project for a foreign government some time ago.
Saturday, September 11, 2010
Effort Metrics Sophisma (in Portuguese)
A SlideShare presentation on why we at NSI believe that traditional effort metrics simply don't work. In fact, why trying to plan months ahead in software development doesn't work. In Portuguese, in the next days I will start translating it.
Subscribe to:
Posts (Atom)