---
title: "Meaning & Key Takeaway of: If we wish to count lines of code, we…"
description: "\"If we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent.'\" — Edsger Dijkstra"
image: "https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png"
---

#  If we wish to count lines of code, we should not regard…

![“If we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent.'” quote by Edsger Dijkstra](https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png)   [Download](https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png) [Open image](https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png)

> “If we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent.'”

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

## About This Quote

This interpretation was drafted with AI assistance. It is one reading of the quote, not the author's own explanation.

Code should be measured by effort spent, not just lines produced, emphasizing quality over quantity.

**In simple terms:** Measure effort, not lines.

Key Takeaway

Focus on effortful, quality code.

Themes

productivity quality software engineering

Mood

analytical thoughtful

Type

technical philosophical

When to use this quote

- project planning
- code reviews
- software estimation
- team management

Key Concepts

algorithmic thinking efficiency

Questions to Reflect On

- How to assess coding effort fairly?
- What metrics capture quality beyond line count?

A Different Perspective

Hard to quantify effort precisely.

★ ★ ★ ★ ★   No ratings yet

[Code](https://sms4smile.com/quotes/about/code/) [Computer](https://sms4smile.com/quotes/about/computer/) [Computer programming](https://sms4smile.com/quotes/about/computer-programming/) [Learning](https://sms4smile.com/quotes/about/learning/) [Programming](https://sms4smile.com/quotes/about/programming/) [Technology](https://sms4smile.com/quotes/about/technology/) [Wish](https://sms4smile.com/quotes/about/wish/)

## Related quotes

> [“My point today is that, if we wish to count lines of code, we should not regard them as "lines produced" but as "lines…](https://sms4smile.com/quotes/dijkstra/my-point-today-is-that-if-we-wish-to-count-lines-of-code-we-should/)

Dijkstra

> [Simply put, when you have very large pieces of software, most of the tools look at the individual lines of code as text. It…](https://sms4smile.com/quotes/james-gosling/simply-put-when-you-have-very-large-pieces-of-software-most-of-the/)

[James Gosling](https://sms4smile.com/quotes/author/james-gosling/)

> [I've never been someone to count lines, look at it that way.](https://sms4smile.com/quotes/james-badge-dale/i-ve-never-been-someone-to-count-lines-look-at-it-that-way/)

[James Badge Dale](https://sms4smile.com/quotes/author/james-badge-dale/)

> [Some actors count their lines as soon as they receive a script. I'm the opposite. I try to see how many lines I can…](https://sms4smile.com/quotes/glenn-ford/some-actors-count-their-lines-as-soon-as-they-receive-a-script-i-m/)

[Glenn Ford](https://sms4smile.com/quotes/author/glenn-ford/)

> [The tools we use have a profound and devious influence on our thinking habits, and therefore on our thinking abilities.](https://sms4smile.com/quotes/edsger-dijkstra/the-tools-we-use-have-a-profound-and-devious-influence-on-our/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Simplicity and elegance are unpopular because they require hard work and discipline to achieve and education to be appreciated.](https://sms4smile.com/quotes/edsger-dijkstra/simplicity-and-elegance-are-unpopular-because-they-require-hard-work/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [A most important, but also most elusive, aspect of any tool is its influence on the habits of those who train themselves in its…](https://sms4smile.com/quotes/edsger-dijkstra/a-most-important-but-also-most-elusive-aspect-of-any-tool-is-its/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise.](https://sms4smile.com/quotes/edsger-dijkstra/the-purpose-of-abstraction-is-not-to-be-vague-but-to-create-a-new/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [A programming language is a tool that has profound influence on our thinking habits.](https://sms4smile.com/quotes/edsger-dijkstra/a-programming-language-is-a-tool-that-has-profound-influence-on-our/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Beauty is more important in computing than anywhere else in technology because software is so complicated. Beauty is the ultimate defense against complexity.](https://sms4smile.com/quotes/david-gelernter/beauty-is-more-important-in-computing-than-anywhere-else-in/)

[David Gelernter](https://sms4smile.com/quotes/author/david-gelernter/)

> [I think that it's extraordinarily important that we in computer science keep fun in computing. When it started out, it was an awful lot…](https://sms4smile.com/quotes/alan-perlis/i-think-that-it-s-extraordinarily-important-that-we-in-computer/)

[Alan Perlis](https://sms4smile.com/quotes/author/alan-perlis/)

> [If you really want to be a good archaeologist, you have to understand ancient DNA; you have to understand chemical analysis to figure out…](https://sms4smile.com/quotes/sarah-parcak/if-you-really-want-to-be-a-good-archaeologist-you-have-to-understand/)

[Sarah Parcak](https://sms4smile.com/quotes/author/sarah-parcak/)

> [Computer Science is a science of abstraction -creating the right model for a problem and devising the appropriate mechanizable techniques to solve it.](https://sms4smile.com/quotes/alfred-aho/computer-science-is-a-science-of-abstraction-creating-the-right-model/)

Alfred Aho

> [If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it.](https://sms4smile.com/quotes/richard-e-pattis/if-you-cannot-grok-the-overall-structure-of-a-program-while-taking-a/)

[Richard E. Pattis](https://sms4smile.com/quotes/author/richard-e-pattis/)

> [“In programming the World Wide Computer, we will be programming our lives.”](https://sms4smile.com/quotes/nicholas-carr/in-programming-the-world-wide-computer-we-will-be-programming-our/)

[Nicholas Carr](https://sms4smile.com/quotes/author/nicholas-carr/)

## More by Edsger Dijkstra

> [Production speed is severely slowed down if one works with half-time people who have other obligations as well. This is at least a factor…](https://sms4smile.com/quotes/edsger-dijkstra/production-speed-is-severely-slowed-down-if-one-works-with-half-time/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [The computing scientist's main challenge is not to get confused by the complexities of his own making.](https://sms4smile.com/quotes/edsger-dijkstra/the-computing-scientist-s-main-challenge-is-not-to-get-confused-by/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Probably I am very naive, but I also think I prefer to remain so, at least for the time being and perhaps for the…](https://sms4smile.com/quotes/edsger-dijkstra/probably-i-am-very-naive-but-i-also-think-i-prefer-to-remain-so-at/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [In the good old days physicists repeated each other's experiments, just to be sure. Today they stick to FORTRAN, so that they can share…](https://sms4smile.com/quotes/edsger-dijkstra/in-the-good-old-days-physicists-repeated-each-other-s-experiments/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Don't compete with me: firstly, I have more experience, and secondly, I have chosen the weapons.](https://sms4smile.com/quotes/edsger-dijkstra/don-t-compete-with-me-firstly-i-have-more-experience-and-secondly-i/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Computer science is no more about computers than astronomy is about telescopes.](https://sms4smile.com/quotes/edsger-dijkstra/computer-science-is-no-more-about-computers-than-astronomy-is-about/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [The use of anthropomorphic terminology forces you linguistically to adopt an operational view. And it makes it practically impossible to argue about programs independently…](https://sms4smile.com/quotes/edsger-dijkstra/the-use-of-anthropomorphic-terminology-forces-you-linguistically-to/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Teaching to unsuspecting youngsters the effective use of formal methods is one of the joys of life because it is so extremely rewarding.](https://sms4smile.com/quotes/edsger-dijkstra/teaching-to-unsuspecting-youngsters-the-effective-use-of-formal/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [ Please don't fall into the trap of believing that I am terribly dogmatical about \[the goto statement\]. I have the uncomfortable feeling that others… ](https://sms4smile.com/quotes/edsger-dijkstra/please-don-t-fall-into-the-trap-of-believing-that-i-am-terribly/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Brainpower is by far our scarcest resource.](https://sms4smile.com/quotes/edsger-dijkstra/brainpower-is-by-far-our-scarcest-resource/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Programming in Basic causes brain damage.](https://sms4smile.com/quotes/edsger-dijkstra/programming-in-basic-causes-brain-damage/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [Several people have told me that my inability to suffer fools gladly is one of my main weaknesses.](https://sms4smile.com/quotes/edsger-dijkstra/several-people-have-told-me-that-my-inability-to-suffer-fools-gladly/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [I now have had my foggy crystal ball for quite a long time. Its predictions are invariably gloomy and usually correct, but I am…](https://sms4smile.com/quotes/edsger-dijkstra/i-now-have-had-my-foggy-crystal-ball-for-quite-a-long-time-its/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [In this respect a program is like a poem: you cannot write a poem without writing it. Yet people talk about programming as if…](https://sms4smile.com/quotes/edsger-dijkstra/in-this-respect-a-program-is-like-a-poem-you-cannot-write-a-poem/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

> [About the use of language: it is impossible to sharpen a pencil with a blunt axe. It is equally vain to try to do…](https://sms4smile.com/quotes/edsger-dijkstra/about-the-use-of-language-it-is-impossible-to-sharpen-a-pencil-with-a/)

[Edsger Dijkstra](https://sms4smile.com/quotes/author/edsger-dijkstra/)

[Explore all 103 Edsger Dijkstra quotes ](https://sms4smile.com/quotes/author/edsger-dijkstra/)

## More Code quotes

> [At the deepest level, all living things that have ever been looked at have the same DNA code. And many of the same genes.](https://sms4smile.com/quotes/richard-dawkins/at-the-deepest-level-all-living-things-that-have-ever-been-looked-at/)

[Richard Dawkins](https://sms4smile.com/quotes/author/richard-dawkins/)

> [It is no secret that I have read 'The Da Vinci Code' several times. I genuinely believe that 'The Da Vinci Code' and 'Angels…](https://sms4smile.com/quotes/ashwin-sanghi/it-is-no-secret-that-i-have-read-the-da-vinci-code-several-times-i/)

[Ashwin Sanghi](https://sms4smile.com/quotes/author/ashwin-sanghi/)

> [Programmers are always surrounded by complexity; we cannot avoid it… If our basic tool, the language in which we design and code our programs,…](https://sms4smile.com/quotes/tony-hoare/programmers-are-always-surrounded-by-complexity-we-cannot-avoid-it-if/)

[Tony Hoare](https://sms4smile.com/quotes/author/tony-hoare/)

> [One of my most productive days was throwing away 1,000 lines of code.](https://sms4smile.com/quotes/ken-thompson/one-of-my-most-productive-days-was-throwing-away-1-000-lines-of-code/)

[Ken Thompson](https://sms4smile.com/quotes/author/ken-thompson/)

> [Writing code means always having to say you're sorry.](https://sms4smile.com/quotes/paul-ford/writing-code-means-always-having-to-say-you-re-sorry/)

[Paul Ford](https://sms4smile.com/quotes/author/paul-ford/)

> [It would be a piece of ingenuousness to accuse the man of today of his lack of moral code. The accusation would leave him…](https://sms4smile.com/quotes/jose-ortega-y-gasset/it-would-be-a-piece-of-ingenuousness-to-accuse-the-man-of-today-of/)

[Jose Ortega y Gasset](https://sms4smile.com/quotes/author/jose-ortega-y-gasset/)

> [I loved 'Chicago Code;' I watched that a lot. It was great because it really captured the city - I'm from Chicago, too.](https://sms4smile.com/quotes/jessy-schram/i-loved-chicago-code-i-watched-that-a-lot-it-was-great-because-it/)

[Jessy Schram](https://sms4smile.com/quotes/author/jessy-schram/)

> [I kind of pride myself on coming onto things that are well-oiled machines and finding a way to bring what I bring and fit…](https://sms4smile.com/quotes/rob-lowe/i-kind-of-pride-myself-on-coming-onto-things-that-are-well-oiled/)

[Rob Lowe](https://sms4smile.com/quotes/author/rob-lowe/)

> [When we're done simplifying the tax code, getting the lobbyist carve outs our of the tax code, lowering our rates and letting people have…](https://sms4smile.com/quotes/paul-ryan/when-we-re-done-simplifying-the-tax-code-getting-the-lobbyist-carve/)

[Paul Ryan](https://sms4smile.com/quotes/author/paul-ryan/)

> [The tax code is 10 times the size of the Bible with none of the good news.](https://sms4smile.com/quotes/paul-ryan/the-tax-code-is-10-times-the-size-of-the-bible-with-none-of-the-good/)

[Paul Ryan](https://sms4smile.com/quotes/author/paul-ryan/)

> [The Cheney team had, for example, technological supremacy over the National Security Council staff. That is to say, they could read their e-mails. I…](https://sms4smile.com/quotes/lawrence-wilkerson/the-cheney-team-had-for-example-technological-supremacy-over-the/)

[Lawrence Wilkerson](https://sms4smile.com/quotes/author/lawrence-wilkerson/)

> [ \[T\]he tax code has been piling up, year after year, a symbol of everything gone wrong in America, of arrogant rulers and lost freedom,… ](https://sms4smile.com/quotes/dick-armey/t-he-tax-code-has-been-piling-up-year-after-year-a-symbol-of/)

[Dick Armey](https://sms4smile.com/quotes/author/dick-armey/)

> [In open source, you really have to be near the watershed to have an impact on the source code. Customers want to be near…](https://sms4smile.com/quotes/peter-fenton/in-open-source-you-really-have-to-be-near-the-watershed-to-have-an/)

[Peter Fenton](https://sms4smile.com/quotes/author/peter-fenton/)

> [We can use our art to become political, to become something you want to talk about. We make clothes, but we have the chance…](https://sms4smile.com/quotes/olivier-rousteing/we-can-use-our-art-to-become-political-to-become-something-you-want/)

[Olivier Rousteing](https://sms4smile.com/quotes/author/olivier-rousteing/)

> [Your zip code or your income level should not dictate your access to healthy drinking water.](https://sms4smile.com/quotes/alex-padilla/your-zip-code-or-your-income-level-should-not-dictate-your-access-to/)

[Alex Padilla](https://sms4smile.com/quotes/author/alex-padilla/)

[Browse all 1,662 Code quotes ](https://sms4smile.com/quotes/about/code/)

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Quotation",
            "text": "If we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent.'",
            "creator": {
                "@type": "Person",
                "name": "Edsger Dijkstra"
            },
            "isPartOf": {
                "@id": "https://sms4smile.com/quotes/#website"
            },
            "url": "https://sms4smile.com/quotes/edsger-dijkstra/if-we-wish-to-count-lines-of-code-we-should-not-regard-them-as-lines/",
            "about": {
                "@type": "Thing",
                "name": "Code"
            },
            "@id": "https://sms4smile.com/quotes/edsger-dijkstra/if-we-wish-to-count-lines-of-code-we-should-not-regard-them-as-lines/#quotation",
            "image": {
                "@type": "ImageObject",
                "@id": "https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png",
                "contentUrl": "https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png",
                "url": "https://sms4smile.com/quotes/i/adc/edsger-dijkstra-5102_code_if-we-wish-to-count-lines-of-code-we-sho_1004467.png",
                "width": 1080,
                "height": 1080,
                "caption": "“If we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent.'” — Edsger Dijkstra",
                "creditText": "SMS4Smile Quotes",
                "creator": {
                    "@id": "https://sms4smile.com/quotes/#organization"
                }
            }
        },
        {
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://sms4smile.com/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Quotes",
                    "item": "https://sms4smile.com/quotes/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "Edsger Dijkstra",
                    "item": "https://sms4smile.com/quotes/author/edsger-dijkstra/"
                },
                {
                    "@type": "ListItem",
                    "position": 4,
                    "name": "If we wish to count lines...",
                    "item": "https://sms4smile.com/quotes/edsger-dijkstra/if-we-wish-to-count-lines-of-code-we-should-not-regard-them-as-lines/"
                }
            ],
            "@id": "https://sms4smile.com/quotes/edsger-dijkstra/if-we-wish-to-count-lines-of-code-we-should-not-regard-them-as-lines/#breadcrumb"
        },
        {
            "@type": "WebSite",
            "@id": "https://sms4smile.com/quotes/#website",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "publisher": {
                "@id": "https://sms4smile.com/quotes/#organization"
            }
        },
        {
            "@type": "Organization",
            "@id": "https://sms4smile.com/quotes/#organization",
            "name": "SMS4Smile Quotes",
            "url": "https://sms4smile.com/quotes/",
            "logo": {
                "@type": "ImageObject",
                "url": "https://sms4smile.com/quotes/wp-content/themes/sq/assets/icons/icon-512.png",
                "width": 512,
                "height": 512
            }
        }
    ]
}
```
