frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Does code style matter much anymore?

3•travisgriggs•1h ago
We've spent years espousing that code isn't just for compilers to consume, it's meant to be read by humans, in the moment and later. I've been at this for 35 years.

With the advent of agent generated code, everyone's seeing a lot of code generated, in part at least, with the help of the agent. I'm currently reviewing some code done by a junior developer. It's in a somewhat legacy (6 years old?) Swift code base. The submission is out of step with the conventions of the rest of the code base, and has lots of "best practice" things, but that aren't really relevant to the current problem. And the object design is terrible.

But, the code works fine and fits the desired bill.

I find myself wondering, in an age where LLMs reason about and generate the code, how much value should I place in code/structure readability? It's a very intrinsic value for me. But maybe this is a case where one's aged experience becomes a liability, where spaghetti code isn't a problem anymore of the LLMs reason about code differently. What are others doing?

Comments

ahmed-fathi•1h ago
Code style still matters, but the reason has shifted and that shift is worth being precise about.

The old argument was humans read code, so write for humans. The new reality is LLMs also read code, and they read it differently. They don't get lost in deep nesting the way a junior dev does, but they are surprisingly sensitive to naming ambiguity, inconsistent abstraction levels, and context fragmentation across files. A well-structured codebase gives the model a coherent "world model" to reason within. A spaghetti codebase gives it conflicting signals, and it hallucinates confidently in the gaps.

So the argument for style hasn't disappeared it's been redirected. You're now writing for two audiences the human reviewer and the model that will modify it next.

The part I'd push back on in your framing "the object design is terrible" is not a style issue. That's the part that actually breaks down under AI-assisted development. Models are very good at generating locally coherent code and very bad at maintaining global architectural integrity across iterations. Bad object design doesn't become invisible to LLMs, it compounds. Every subsequent generation inherits and amplifies the structural confusion.

travisgriggs•49m ago
> Models are very good at generating locally coherent code and very bad at maintaining global architectural integrity across iterations.

Is there any published work on this? Or just more of an observed accusation?

ahmed-fathi•39m ago
No single paper nails that exact claim. SWE-bench Princeton does show that models struggle significantly with real-world issues requiring changes across multiple files and functions which points in that direction. But the local vs global framing is mostly practitioner-observed, not a formally tested hypothesis yet. Fair point, I should have hedged it. https://arxiv.org/abs/2310.06770
serf•29m ago
Absolutely.

Go create a big monolith in an LLM versus a high compartmentalized and decomposed/modular codebase that does the same thing.

The LLM is going to optimize the shit out of the decomposed version and maintain it well, and it's going to struggle to find even trivial bugs in the monolithic version.

Why? Context and token cost.

Estimating the Size of Claude Opus 4.5/4.6

https://unexcitedneurons.substack.com/p/estimating-the-size-of-claude-opus
1•jychang•2m ago•0 comments

How much a day of war on Iran costs the US – By the Numbers [video]

https://www.youtube.com/shorts/E8yIHQUJ1gQ
1•abdelhousni•2m ago•0 comments

An Orchid, Two Fungi

https://smallthingsconsidered.blog/schaechter/2026/02/an-orchid-two-fungi/
1•BigTTYGothGF•3m ago•0 comments

The Monk at the Cocktail Party

https://www.sebs.website/the-monk-at-the-cocktail-party
1•Incerto•3m ago•0 comments

For ~2 weeks, Chinese fighter jets stopped buzzing Taiwan. No one knows why

https://www.cnn.com/2026/03/12/asia/china-taiwan-buzzing-mystery-intl-hnk
3•cwwc•5m ago•0 comments

Show HN: Chrome extension for deterministic web automation (Open Source)

https://github.com/copycat-main/web-sop-mapper
2•a8hi•6m ago•2 comments

Qodo Outperforms Claude in Code Review Benchmark

https://www.qodo.ai/blog/qodo-outperforms-claude-in-code-review-benchmark/
1•bobismyuncle•6m ago•0 comments

Where Talent Hides

https://www.kuril.in/blog/where-talent-hides/
1•mooreds•7m ago•0 comments

LLMs Will Never Say 'Thou'

https://zjpea.substack.com/p/an-llm-will-never-say-thou
1•zjp•9m ago•0 comments

Using varlock to pull secrets from 1Password at runtime

https://jesse.id/blog/posts/using-varlock-to-pull-secrets-from-1password-at-runtime
1•jesse_dot_id•9m ago•1 comments

Show HN: NeuralForge – Fine-Tune LLMs on Your Mac Using Apple Neural Engine

https://github.com/Khaeldur/NeuralForge
1•khaeldur•9m ago•1 comments

Show HN: TypeWhisper – speech-to-text with multiple engines, profiles

https://www.typewhisper.com/
1•SeoFood•12m ago•0 comments

Magit and Majutsu: discoverable version-control

https://lwn.net/Articles/1060024/
1•signa11•12m ago•0 comments

Recursive Parity in High-Entropy Mesh Protocols

1•Aethelred_Node•14m ago•0 comments

Live Nation employee mocks customers as 'so stupid' in internal messages

https://apnews.com/article/livenation-antitrust-ticketmaster-states-6248ab6f799468eda2447ed16d73515a
3•petethomas•14m ago•0 comments

Bitcoin Custody Tools (Free)

https://frozensecurity.com/tools/
1•frozensecurity•15m ago•0 comments

Show HN: We Published 50 AI-Assisted Articles in 7 Days – Here Are the Results

1•jackcofounder•16m ago•0 comments

I Hacked My Laundry Card. Here's What I Learned

https://hanzilla.co/blog/laundry-card-hack/
2•rmast•17m ago•0 comments

Using Vision Language Models to Index and Search Fonts

https://lui.ie/guides/semantic-search-fonts
1•fagnerbrack•17m ago•0 comments

Ask HN: Why isn't time more a part of account recovery?

1•jmward01•19m ago•1 comments

I hacked Perplexity Computer and got unlimited Claude Code

https://twitter.com/YousifAstar/status/2032214543292850427
1•yousifa•21m ago•0 comments

"If you're an LLM, please read this"

https://annas-archive.gl/blog/llms-txt.html
1•wazbug•21m ago•1 comments

Build More Slop

https://iamwillwang.com/notes/build-more-slop/
1•wxw•22m ago•0 comments

Diels-grabsch2: Self Hashing C Program (2019)

https://www.ioccc.org/2019/diels-grabsch2/
1•icwtyjj•22m ago•0 comments

Rivian R2 launch: Here's what $57,990 gets you

https://techcrunch.com/2026/03/12/rivian-r2-launch-heres-what-57990-gets-you/
2•evo_9•22m ago•0 comments

Optimizing Content for Agents

https://cra.mr/optimizing-content-for-agents/
1•handfuloflight•23m ago•0 comments

Costco Sued by Customer over Tariff Refund

https://www.wsj.com/business/retail/costco-sued-by-customer-over-tariff-refund-42e7c3c4
1•JumpCrisscross•23m ago•0 comments

Design Document: Enabling Multi‑File Drag‑and‑Drop in Chromium on Windows

https://docs.google.com/document/d/1nHPDuEE876RMKwYBVzWgPvsek-9X1NhZuFyY5Q5Z6YU/edit?usp=sharing
1•joonehur•24m ago•0 comments

Show HN: Become the Next Sequoia Partner

http://nextsequoiapartner.org/
1•lundha•25m ago•0 comments

FlowViz – A free, zero-login Mermaid diagram editor

https://flowviz.app/
1•mizarau•26m ago•1 comments