Diseconomies of Scale and Lines of Code (2023)

Steve McConnell on diseconomies of scale in software development:

Project size is easily the most significant determinant of effort, cost and schedule [for a software project].*

People naturally assume that a system that is 10 times as large as another system will require something like 10 times as much effort to build. But the effort for a 1,000,000 LOC system is more than 10 times as large as the effort for a 100,000 LOC system.

(Video) Economies of Scale and Long-Run Costs- Micro Topic 3.3

[Using software industry productivity averages], the 10,000 LOC system would require 13.5 staff months. If effort increased linearly, a 100,000 LOC system would require 135 staff months. But it actually requires 170 staff months.

Here's the single most important decision you can make on your software project if you want it to be successful: keep it small. Small may not accomplish much, but the odds of outright failure-- a disturbingly common outcome for most software projects-- is low.

(Video) Y2 6) Economies and Diseconomies of Scale

I don't think the inverted, non-linear relationship between size and productivity on software projects will come as a shock to anyone; the guys at 37signals have been banging their drum on the virtues of small for over a year now. Isn't small the new big already?

But what I really want to focus on here is how you measure a project's size. What's big? What's small? McConnell is using lines of code (LOC) as his go-to measurement. Here's a table that illustrates the relationship between project size and productivity:

(Video) Economies and diseconomies of scale

Project SizeLines of code (per year)COCOMO average
10,000 LOC2,000 - 25,0003,200
100,000 LOC1,000 - 20,0002,600
1,000,000 LOC700 - 10,0002,000
10,000,000 LOC300 - 5,0001,600

Lines of code is a reasonable metric to determine project size, but it also has some problems, which are well-documented in the wikipedia entry on lines of code:

/* How many lines of code is this? */for (i=0; i<100; ++i) printf("hello");

For one thing, different languages vary widely in the number of lines of code they produce. 100 lines of Perl will probably accomplish a lot more than 100 lines of C. So you have to be careful that you're really comparing apples to apples. Furthermore, skilled developers know that the less code you write, the fewer bugs you've created-- so they naturally distrust any productivity metric that weights absolute lines of code. And does code generation count?

(Video) Part 10 Diseconomies of Scale

Even with all its problems, the LOC metric is still where you should start, according to McConnell:

My personal conclusion about using lines of code for software estimation is similar to Winston Churchill's conclusion about democracy: The LOC measure is a terrible way to measure software size, except that all the other ways to measure size are worse. For most organizations, despite its problems, the LOC measure is the workhorse technique for measuring size of past projects and for creating early-in-the-project estimates of new projects. The LOC measure is the lingua franca of software estimation, and it is normally a good place to start, as long as you keep its limitations in mind.

Your environment might be different enough from the common programming environments that lines of code are not highly correlated with project size. If that's true, find something that is more proportional to effort, count that, and base your size estimates on that instead. Try to find something that's easy to count, highly correlated with effort, and meaningful for use across multiple projects.

(Video) Long-Run Average Cost: Determining Economies and Diseconomies of Scale

The wikipedia article features this chart of Windows operating system size, in lines of code, over time:

1993Windows NT 3.16 million
1994Windows NT 3.510 million
1996Windows NT 4.016 million
2000Windows 200029 million
2002Windows XP40 million
2007Windows Vista~50 million

If you're wondering how much code the average programmer produces per day, I think you might be asking the wrong question. Lines of code is certainly a key metric for determining project size, but it's also easily manipulated and misinterpreted. It should never be the only data point used to make decisions; it's just one of many signposts on the road that helps you orient your project.

(Video) Economies of Scale | Diseconomies of Scale | Types | Meaning | Managerial Economics

* what are the other most significant determinants? Number two is the type of software you're developing, and personnel factors is a very close third.


1. Economies of Scale | Diseconomies of Scale | Types | Meaning | Managerial Economics
(College Tutor)
2. Economies of Scale
3. Ch 3.11 - Economies of Scale & Diseconomies of Scale - Economics - CA Foundation Internal Econo mies
4. Quantium Cast Episode 54: Diseconomies Of Scale and Constant Returns to Scale
(Quantium Research)
5. 4(b) Using the concept of economies and diseconomies of scale, explain the shape of a firm’s long
(Educationgym with Rishav Raj)
6. #26, Diseconomies of scale - Internal and external | ugc | bcom | bba | ba | bca | honours |
(Economics on Your Tips)
Top Articles
Latest Posts
Article information

Author: Dong Thiel

Last Updated: 04/03/2023

Views: 5503

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Dong Thiel

Birthday: 2001-07-14

Address: 2865 Kasha Unions, West Corrinne, AK 05708-1071

Phone: +3512198379449

Job: Design Planner

Hobby: Graffiti, Foreign language learning, Gambling, Metalworking, Rowing, Sculling, Sewing

Introduction: My name is Dong Thiel, I am a brainy, happy, tasty, lively, splendid, talented, cooperative person who loves writing and wants to share my knowledge and understanding with you.