frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Am I holding it wrong?

4•notpachet•4h ago
I've been steadfastly trying my best to incorporate the latest-and-greatest models into my workflow. I've been primarily using Codex recently. But I'm still having difficulties.

For example: no matter what I do, I can't prevent Codex from introducing linter errors.

I use tabs instead of spaces for indentation. It seems like the model is massively weighted on code written using spaces (duh). Despite having a very well articulated styleguide (that Codex helped me write after examining my codebase!) that clearly specifies that tabs are used for indentation, the model will happily go off and make a bunch of changes that incorporate spaces seemingly at random. It will use tabs correctly in certain places, but then devolve back to using spaces later on in the same files.

I have a linter that I've taught the model to run to catch these things, but A) that feels like such a waste of tokens and B) the model often forgets to run the linter anyway.

It's like having a junior developer who has never used the tab key before. They remember to ctrl-f their spaces->tabs sometimes before opening a PR, but not all the time. So I wind up giving them the same feedback over and over.

This example -- tabs instead of spaces -- is just one specific case where the model seems to invariably converge on a local maximum that is dictated by the center of the software bell curve. But in general I'm finding it to be true of just about any "quirky" style opinion I want to enforce:

- Avoid Typescript's `any` or `unknown`: the model will still happily throw these in to make the compiler happy

- Avoid complex ternaries: nope, the model loves these

- Avoid inscrutable one-letter variables versus longer, self-descriptive ones: nope, `a` it is

It just seems like I'm using a tool that is really good at producing the average software output by the average software developer. It's not able to keep my aesthetic / architectural desires at the front of its thinking as it's making my desired changes. It's as if I hired the guy from Memento as an intern.

How do people get around this, other than slathering on even more admonitions to use tabs no matter what (thereby wasting valuable tokens)?

Beyond syntax, I'm still able to use the models to crudely implement new features or functionality, but the way they write code feels... inelegant. There's often a single unifying insight within grasp that the model could reach for to greatly simplify the code it wrote for a given task, but it's not able to see it without me telling it that it's there.

Comments

atsaloli•4h ago
I can't address all your points, but if you add your linter as a pre-commit hook, the AI won't be able to open a PR if it doesn't pass your linter. That could catch the tabs-versus-spaces issue.
aristofun•3h ago
> I use tabs instead of spaces for indentation. It seems like the model is massively weighted on code written using spaces (duh)

LLMs by nature are not very good at peeing against the wind. Also on average they are only as good as the average codebase they been trained on. By design.

notpachet•3h ago
For me, it's tabs-vs-spaces, but doesn't every codebase have its own peeing-against-the-wind patterns that are necessary because of some historical reason or another? What's the way to mitigate against this trend towards the center other than throwing up my hands and admitting defeat?
aristofun•1h ago
Absolutely not. Every codebase has some nuances but majority folows very similar rules and patterns. There is nothing to mitigate just don’t expect that something trained on A would suddenly be good at B

Ask HN: What are you working on? (February 2026)

302•david927•1d ago•1023 comments

AI Isn't Dangerous. Evaluation Structures Are.

3•clover-s•2h ago•3 comments

Ask HN: Am I holding it wrong?

4•notpachet•4h ago•4 comments

Ask HN: Are past LLM models getting dumber?

3•hmate9•4h ago•2 comments

Ask HN: What do you want people to build?

3•billsunshine•5h ago•2 comments

Tell HN: Increased 403's on the Cloudflare Dashboard

2•TimCTRL•8h ago•2 comments

Ask HN: Do provisional patents matter for early-stage startups?

20•gdad•1d ago•17 comments

OrthoRay – A native, lightweight DICOM viewer written in Rust/wgpu by a surgeon

6•DrMeric•22h ago•7 comments

Ask HN: Anyone Using a Mac Studio for Local AI/LLM?

55•UmYeahNo•4d ago•35 comments

A Deep Dive into Nova – A Web Framework for Erlang on Beam

3•taure•18h ago•0 comments

I Built a Browser Flight Simulator Using Three.js and CesiumJS

9•dimartarmizi•23h ago•1 comments

Ask HN: What made VLIW a good fit for DSPs compared to GPUs?

7•rishabhaiover•1d ago•3 comments

Ask HN: Ideas for small ways to make the world a better place

38•jlmcgraw•3d ago•39 comments

Ask HN: 10 months since the Llama-4 release: what happened to Meta AI?

52•Invictus0•4d ago•12 comments

Ask HN: Open Models are 9 months behind SOTA, how far behind are Local Models?

10•myk-e•1d ago•12 comments

What Is Genspark?

6•powera•1d ago•2 comments

What do you use for your customer facing analytics?

3•arbiternoir•1d ago•4 comments

Ask HN: Non AI-obsessed tech forums

45•nanocat•3d ago•38 comments

Ask HN: Has your whole engineering team gone big into AI coding? How's it going?

23•jchung•5d ago•18 comments

The $5.5T Paradox: Structural displacement in the GPU/AI infra labor demand?

2•y2236li•2d ago•1 comments

AI Regex Scientist: A self-improving regex solver

7•PranoyP•3d ago•2 comments

Ask HN: Is it just me or are most businesses insane?

14•justenough•4d ago•8 comments

Ask HN: Opus 4.6 ignoring instructions, how to use 4.5 in Claude Code instead?

3•Chance-Device•2d ago•4 comments

The string " +#+#+#+#+#+ " breaks Codex 5.3

8•kachapopopow•2d ago•5 comments

LLMs are powerful, but enterprises are deterministic by nature

6•prateekdalal•3d ago•14 comments

Ask HN: How does ChatGPT decide which websites to recommend?

5•nworley•4d ago•12 comments

Ask HN: Non-profit, volunteers run org needs CRM. Is Odoo Community a good sol.?

4•netfortius•3d ago•5 comments

You've reached the end!