HN Debrief

Lines of code got a better publicist

  • AI
  • Programming
  • Management
  • Developer Tools

The post says AI vendors and executives have revived one of software’s oldest bad habits: talking about lines of code as if more of it means more progress. It points to recent AI marketing that boasts about million-line codebases or high percentages of AI-written code while saying little about what was actually built, who uses it, or whether it works better. The author’s core claim is simple: code is not the product. It is a liability you carry, and AI has given that liability a much better PR team.

Treat AI code output as input cost, not delivered value. If you are evaluating AI adoption, measure production outcomes, defects, review burden, token spend, and maintainability before you let lines of code or PR counts turn into targets.

Discussion mood

Strongly skeptical and often sarcastic. People were frustrated that AI hype has brought back lines-of-code thinking, and they saw it as a mix of executive numerology, vendor marketing, and convenient cover for layoffs rather than evidence of real engineering progress.

Key insights

  1. 01

    Goodhart’s Law is the whole story

    Once leaders track lines of code, PR counts, or token burn as productivity, engineers will optimize those numbers whether or not the product improves. That makes the current AI metrics failure feel less new than familiar. The tools changed, but the management mistake is the same old one.

    Audit every AI KPI for how it can be gamed before you socialize it. If the easiest way to hit the number is to generate more code or consume more tokens, kill that metric.

      Attribution:
    • TheGRS #1
    • sebastialonso #1
    • jdw64 #1
  2. 02

    AI helps individuals more than teams

    Implementation speedups are real at the single-developer level, especially when one person can batch more work in parallel. Those gains compress fast at team scale because review, validation, design decisions, and rollout are still serialized. That explains why many engineers feel faster without companies seeing proportional end-to-end gains.

    Measure AI at the workflow stage where you expect value. If review queues, QA, or product decision latency are your bottlenecks, coding assistants will not move the company metric much.

      Attribution:
    • drooby #1
    • sanderjd #1
    • jghn #1
    • gwerbin #1
  3. 03

    The scarce resource is human understanding

    The useful question is not how much code AI wrote. It is how much code humans still reviewed, understood, and can safely change later. That is why prototypes and speed runs look great while production systems get dangerous fast. A fast draft is not the same thing as a maintainable system, especially when managers see the prototype and want to ship it as-is.

    Track reviewability and ownership explicitly. For any AI-heavy change, require a human who can explain the design, the tests, and the failure modes without leaning on the prompt history.

      Attribution:
    • osigurdson #1
    • TheGRS #1
    • prodigycorp #1 #2
    • habinero #1
  4. 04

    Token budgets are ending the free-for-all

    The hype cools down when finance sees the bill. Several people said companies that encouraged token-maxxing are now putting budgets around usage, and that volume targets look absurd once you translate them into token cost and review load. AI output stops sounding magical when every extra line creates both inference spend and downstream human work.

    Put AI spending and review time in the same dashboard as output metrics. A coding workflow that looks faster but costs more in tokens, review, and rework is not actually a gain.

      Attribution:
    • fridder #1 #2
    • Chu4eeno #1
    • satvikpendem #1
    • selicos #1
  5. 05

    Safety-critical software is a reality check

    Industries that need deterministic behavior, traceability, independent verification, and tool qualification are not visibly embracing LLM-generated code in the same way. That is a useful counterweight to general AI triumphalism. Where failure is expensive and auditable, assurance still beats speed, and current models do not clear that bar.

    If your product has regulatory, safety, or high-assurance constraints, do not borrow AI adoption narratives from consumer SaaS. Use standards from your own domain as the acceptance test.

      Attribution:
    • photochemsyn #1
    • discreteevent #1
  6. 06

    Slop is different from technical debt

    People drew a sharper distinction than the usual debt metaphor. Technical debt implies a conscious tradeoff taken for speed with some plan to repay it. AI slop is code that nobody meaningfully understands, often larger than needed, and sometimes produced without anyone even reading the generated explanation or tests. That makes it harder to price and harder to unwind.

    Label AI-generated mess as an ownership and comprehension problem, not just debt. Your remediation plan should focus on shrinking, documenting, and re-establishing human understanding, not merely scheduling future cleanup.

      Attribution:
    • benj111 #1
    • habinero #1
    • adamzwasserman #1
    • VBprogrammer #1
    • strix_varius #1
  7. 07

    AI layoff claims are easy cover stories

    Big companies can cut staff without immediate output collapse because many are already inefficient. That makes it trivial to claim AI replaced the people even when the real causes are over-hiring, investor pressure, or ordinary cost cutting. The absence of a near-term disaster is not proof that AI created the efficiency.

    Do not accept headcount reduction as evidence of AI productivity. Ask what business outcomes improved, what work disappeared, and what risks were deferred into the future.

      Attribution:
    • hcayless #1
    • onlyrealcuzzo #1
    • hbn #1
  8. 08

    Treat code as a cost line

    A more useful language shift is to talk about what a feature cost in lines of code, not how many lines it produced. That reframes code as maintenance burden and future reading load. It also fits what practitioners taking over AI-heavy codebases say they now see: plausible-looking sprawl with weak justification for why it exists.

    Start reporting the smallest durable implementation, not the biggest output. Reward deletion, simplification, and low-code solutions when they preserve the same business result.

      Attribution:
    • sfink #1
    • vova4kin #1
    • cratermoon #1

Against the grain

  1. 01

    Automated porting is a legitimate volume metric

    Counting lines can make sense when the task is bounded transformation rather than greenfield product work. Measuring source lines ported from one language to another is harder to game than measuring freshly generated output, because the volume already exists and the job is supervised conversion. That does not make it safe by itself, but it is more defensible than raw code-generation bragging.

    Separate migration and refactoring workloads from product development in your metrics. A porting pipeline can justify throughput targets that would be nonsense for new feature work.

      Attribution:
    • jkrems #1
    • wongarsu #1
  2. 02

    Correct code throughput still matters

    There is a credible engineering case for wanting more correct code faster, provided the code is actually correct and the domain really requires that amount of implementation. Some systems have irreducible complexity, and overly terse code can hurt readability. The problem is not speed itself. The problem is pretending speed can be measured by raw line count alone.

    Do not let skepticism about bad metrics turn into skepticism about throughput. If AI helps produce correct, readable implementations faster in a complex domain, capture that with quality-linked measures.

      Attribution:
    • esafak #1 #2
  3. 03

    Refusing AI may become a market handicap

    A minority view held that regardless of the current hype, AI use is becoming table stakes for employability and company competitiveness. The argument was less that today's metrics prove huge wins and more that the ecosystem is moving, much like earlier shifts to compilers or cloud tooling. Even critics of the hype conceded that individual developers are often reluctant to give the tools up once they fit their workflow.

    Run your own trials instead of treating adoption as ideology. Even if you reject the hype, you still need firsthand knowledge of where these tools help, because customers, hires, and competitors will expect that literacy.

      Attribution:
    • YtMtBt #1
    • fzeroracer #1
    • dmurray #1
    • bitwize #1

In plain english

Goodhart’s Law
The idea that when a measure becomes a target, people optimize the number and it stops being a useful measure of the real goal.
LLM
Large language model, a type of AI system trained on large amounts of text to generate and analyze language.
PR
Public relations, the practice of managing a company's public image and media coverage.
QA
Quality assurance, the process of checking whether software behaves correctly and meets expectations.
token
A chunk of text a language model reads or generates, used as the basic unit for context length and billing.

Reference links

Story and related essays

AI marketing examples under discussion

Research and measurement

Classic references and analogies

Related industry examples