<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n" -->

---
title: Lines of code are useful | daily.dev
description: Lines of code (LOC) is widely dismissed as a meaningless metric, but research consistently shows it correlates strongly with established complexity measures...
canonical: https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Lines of code are useful | daily.dev
og:description: Lines of code (LOC) is widely dismissed as a meaningless metric, but research consistently shows it correlates strongly with established complexity measures...
og:url: https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n
og:image: https://api.daily.dev/og/posts/NmiQPfz9N.png
og:image:alt: Lines of code are useful
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Lines of code are useful

**[Lobsters](https://daily.dev/sources/lobsters)** · 12 min read · 3 upvotes · 1 comments

## Summary

Lines of code (LOC) is widely dismissed as a meaningless metric, but research consistently shows it correlates strongly with established complexity measures like cyclomatic complexity and Halstead volume — often as well as or better than those more complicated metrics. LOC reliably measures total code complexity, which directly maps to software cost (development and maintenance). The distinction between essential complexity (inherent to the problem) and accidental complexity (introduced during implementation) is key: LOC captures both, making it a good cost proxy but a noisier productivity proxy. Practical rules of thumb are offered: roughly every 25,000 lines of open source code requires one additional maintainer, and every 100,000 lines costs ~$200/day in maintenance at modest developer rates. LOC is most defensible as a cost metric; using it as a productivity metric requires stable ratios of essential to accidental complexity, which is a strong assumption.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://entropicthoughts.com/lines-of-code>

## Community discussion

Top comments from developers on daily.dev.

**@ezpie** · 0 upvotes

> OK firstly that's clickbait, secondly it's actually what we mean when we dismiss LOC... or maybe just me, but anyways, LOC is a bad metric for productivity but a good metric for cost, more the LOC, more the cost of maintenance.

## Similar posts on daily.dev

- [Lines of Code Are Back \(And It's Worse Than Before\)](https://daily.dev/posts/lines-of-code-are-back-and-it-s-worse-than-before--vz8rhgd2f) · Hacker News · 7 upvotes · 3 comments
- [Your code is worthless](https://daily.dev/posts/your-code-is-worthless-pxaqncbmy) · Lobsters · 2 upvotes · 0 comments

---

Tags: [#technical-debt](https://daily.dev/tags/technical-debt)

[View this post on daily.dev](https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Lines of code are useful","url":"https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n"},"datePublished":"2026-03-27T07:01:30.679Z","dateModified":"2026-03-27T07:02:00.831Z","description":"Lines of code (LOC) is widely dismissed as a meaningless metric, but research consistently shows it correlates strongly with established complexity measures...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/78c0020ec198c162c886435cda2d9a66?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/78c0020ec198c162c886435cda2d9a66?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"technical-debt","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Lines of code are useful"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/lines-of-code-are-useful-nmiqpfz9n","comment":[{"@type":"Comment","text":"OK firstly that’s clickbait, secondly it’s actually what we mean when we dismiss LOC… or maybe just me, but anyways, LOC is a bad metric for productivity but a good metric for cost, more the LOC, more the cost of maintenance.","datePublished":"2026-04-05T11:19:00.181Z","url":"https://daily.dev/posts/NmiQPfz9N#c-EzeSrkhEw","author":{"@type":"Person","name":"Ezpie","url":"https://daily.dev/ezpie","image":"https://avatars.githubusercontent.com/u/104765117?v=4"}}]}
```

