frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AI coding is a nightmare. Am I the only one experiencing this?

12•sollawen•2h ago•5 comments

Ask HN: Since when does Craigslist's front page have emojis?

35•argee•2d ago•33 comments

AskHN: Using 'claude -p' for running Mr.Jassy - AWS butler agent

2•anoop_kumar•1h ago•0 comments

Ask HN: Why are so many "AI evangelists" posting such insufferable content?

40•seattle_spring•11h ago•24 comments

Ask HN: Who is hiring? (July 2026)

237•whoishiring•1d ago•276 comments

Reducing AI costs with smart pricing

2•millereffect•2h ago•0 comments

Ask HN: Who wants to be hired? (July 2026)

145•whoishiring•1d ago•397 comments

Ask HN: Once you make your money from vibe coding innumerable products, then?

2•keepamovin•3h ago•5 comments

Ask HN: How do you get your open-source product good traction?

3•akarshhegde18•3h ago•2 comments

Ask HN: Best Local LLM Setup for a 128GB M4 Max Mac Studio?

4•linzhangrun•4h ago•0 comments

Tell HN: Old Reddit now requires login

81•jay_kyburz•1d ago•17 comments

Burned out, how do I get out of the rut?

5•brandgefahr•8h ago•14 comments

Fire and Coast Fire Tracker · Streamlit

3•Rossklot•3h ago•0 comments

Rust sort_unstable_by with more complex closure unexpectedly shrunk binary

5•tracyspacy•16h ago•2 comments

Tell HN: Installing Cursor on iOS irreversibly changes your privacy settings

246•zkldi•2d ago•34 comments

Seattle Just Had an Earthquake

11•tobinfekkes•23h ago•7 comments

Stopping token burn because of agents sticking in a loop

2•driftguard•10h ago•0 comments

Ask HN: Will AI force CS to focus on what to build instead of how to build it?

2•amichail•11h ago•1 comments

Should I go open-source or give free trial and then charge the users?

3•akarshhegde18•11h ago•4 comments

I'm opening VSCode less and less every day

19•othmanosx•1d ago•17 comments

Ask HN: Secure wrapper for coding agents?

20•rjzzleep•2d ago•18 comments

Are Claude models broken with the Fable 5 update?

7•jackjd•1d ago•2 comments

Ask HN: Why aren't companies hoarding AI talent?

5•playorizaya•16h ago•26 comments

Ask HN: What things might help me to become inference engineer?

4•chalshik•1d ago•3 comments

Ask HN: Where is the programming profession going?

165•syntaxbush•1w ago•183 comments

Ask HN: Line by Line Agentic Coding

6•notshore•1d ago•5 comments

Tell HN: I'm not excited for Fable and am disappointed in Karpathy

6•behnamoh•1d ago•10 comments

Ask HN: What books did you enjoy reading recently?

5•JeanMeche•10h ago•4 comments

Ask HN: First day using Fable – how was it?

3•akashwadhwani35•11h ago•1 comments

Ask HN: What do you use computer mode for?

4•aryamaan•1d ago•0 comments
Open in hackernews

AI coding is a nightmare. Am I the only one experiencing this?

12•sollawen•2h ago
Here are my biggest gripes with AI coding assistants right now: Obsessed with reinventing the wheel. You'll often find it writing three duplicate functions for the exact same feature in a single file. Why? Because it's terrified of blowing up the context window, so it only reads a fraction of a large file and completely misses the existing functionality. Why are files so bloated in the first place? Because AI prefers adding new code over modifying existing code, and it rarely deletes anything. After a few iterations, your codebase becomes a mountain of dead code. Zero holistic awareness. It hyper-focuses on the current task and couldn't care less if its changes break other parts of the system. If you point out that the original logic is now broken, it treats it as a brand-new task. It’ll fix that specific bug, but whether its newly written code still works after the fix? "Not my problem." The context window is painfully short. If you try to solve the issues above by dumping all the necessary context into the prompt, you'll hit the 200k token limit in no time. After just two more turns, it triggers auto-compacting, and suddenly it turns back into an idiot. Long context = instant brain damage. Just when you've painstakingly stuffed the perfect amount of context into the window, the model completely loses its mind. The longer the context, the more incoherent its responses become. Logical reasoning is practically non-existent. A simple feature that would take a human dev 3-5 lines of code to tweak in an existing function? The AI will insist on designing an entirely new system architecture for it. The more you tune it, the dumber it gets. You burn through millions of tokens, and every time it replies with "I understand!" or "I've got it completely!", the code it spits out still refuses to run.

Comments

YuriNiyazov•2h ago
What model are you running? With what settings?
tamrix•2h ago
Sounds like more of a rant than a question and for that you get a ranty reply. Ask the AI how to improve your results.
denn-gubsky•1h ago
If you model starves because of small context window (your described symptoms), then I would suggest: a) Split the job between agents, each with it's own context window; b) Use advanced model as orchestrator for multiple coding/testing/reviewing agents; c) Use code indexers like https://github.com/ory/lumen or/and https://github.com/defendend/Claude-ast-index-search d) Use planning and detailed specifications preparation before the coding phase.
nullc•57m ago
Worst negative pattern I've seen is hyper defensive programing. E.g.

  try:
    something_that_should_not_fail_and_if_it_does_our_assumptions_are_all_wrong()
  except:
    fallback_that_will_not_result_in_correct_behavior_but_make_failure_hard_to_detect()
But, of course, it depends a lot on which models you're using and how you instruct them.
quintes•44m ago
My convention file says no mass rewrites. Plan. Assess. Spec. Code review. Depends on your model I guess