| ▲ | pizza234 a day ago |
| > Time only will tell how this plays out. I can imagine things like this happening very easily mid/long term: https://www.reddit.com/r/ClaudeCode/comments/1xq2n3t/a_year_.... As of 2026, I think LLMs still lack vision, and long term, tend to build a very scattered codebase, if maintainers don't pay a lot of attention. LLMs do have cognitive limits as well! |
|
| ▲ | soperj a day ago | parent | next [-] |
| the thing I've found that's produced the most productivity is actually reducing the size of our code base. Makes it way more manageable and easier to add features/fix bugs. I'd guess most code bases you could reduce by about 50% without losing anything at all. |
| |
| ▲ | nxobject 17 hours ago | parent | next [-] | | With luck, SWE culture will change towards caring about large-scale rearchitecture (and reward those who care enough to refactor and polish, polish, polish.) | | |
| ▲ | HPsquared 16 hours ago | parent [-] | | It's all about massaging out those tight spots and untangling knots. A bit like kneading dough, perhaps, or annealing metal. | | |
| ▲ | 0x696C6961 15 hours ago | parent [-] | | I don't think this will ever be appreciated or rewarded. | | |
| ▲ | HPsquared 15 hours ago | parent [-] | | Yeah that's basically craft. Craft and beauty aren't usually rewarded unless it can be used for marketing. |
|
|
| |
| ▲ | BobbyTables2 a day ago | parent | prev | next [-] | | I recently found Opus is pretty good at consolidating very-similar-but-different codebases. Sure, I had to tell it to so, but it trudged through and did it fairly independently… Was especially nice as refactoring test infrastructure code isn’t always very exciting… | |
| ▲ | everforward 15 hours ago | parent | prev | next [-] | | I’ve toyed with the idea of splitting a deeply nested tree of code into separate libraries for this. First impression is that it’s a net negative. It gets a lot better at working within that library, and much worse at making it work within the project as a whole. | | |
| ▲ | rcxdude 15 hours ago | parent [-] | | I think the opposite is probably the way to go: strip out some layers of abstraction, try to keep them to only the really valuable ones. In my experience LLMs are better at dealing with more concrete codebases. It's also a lot cheaper to experiment with different abstractions within a codebase to really get them right, and especially to evolve them as the codebase changes. |
| |
| ▲ | dimitrios1 a day ago | parent | prev | next [-] | | Which again is ironic, because I've been doing that for most of my career whenever I am introduced to a legacy code base: The first thing I try to do is delete code. I think it's just good engineering practice to try and delete code as much as possible. | | |
| ▲ | Cthulhu_ 17 hours ago | parent [-] | | Yeah, the best practices for software engineering haven't changed, it just feels like a lot of people forgot about them for a while. |
| |
| ▲ | rustystump a day ago | parent | prev [-] | | You would lose something but it is because the trade off in complexity isnt worth it. This is the key to keep code low. If there is a thing that is barely used but is 60% of the code, maybe it can go? Ai will try and keep it backward comp forever. | | |
| ▲ | HPsquared 15 hours ago | parent | next [-] | | Backwards compatibility is the biggest source of complexity, I think. Although it does alleviate another type of complexity that results from incompatibility. | |
| ▲ | soperj 8 hours ago | parent | prev [-] | | We've done a refactor recently where we removed over 50% of our code, and we still had the exact same product. |
|
|
|
| ▲ | kvemkon a day ago | parent | prev | next [-] |
| > reddit Discussion (though topic has been flaged): https://news.ycombinator.com/item?id=50433079 |
|
| ▲ | pseudohadamard 20 hours ago | parent | prev | next [-] |
| AI also produces very brittle code through overfitting. A human will look at an issue and produce a generalized solution, an AI will look at it, in vastly more depth than a human can, and see that in combination with this over here and this there and that over there and this thing and that value, here's a fix that will work. However if any of the other conditions that it's identified ever get changed in the future, the whole thing will break. I've seen this overfitting again and again, solutions that cleanly fix the problem but depend on so much of the rest of the code base and/or data being in a particular form that it breaks if anything changes. |
| |
| ▲ | hgomersall 20 hours ago | parent | next [-] | | Right, the thing I find it does really often is to replicate policy through more than one mechanism. For example, this week, I was working on a const structure in rust that i needed to be able to serialize in a const context. It implemented the calculation of the serialized string length independently from the serialization string. It would certainly have worked, and probably for a long time, but it opened a potential bug route that I never would have created. This was on a single module. | |
| ▲ | eddythompson80 18 hours ago | parent | prev [-] | | Just last month I asked someone on the team to add some alerts. We like everything to be declaratively defined in the repo and we push metrics, and we have an alerting system. We just needed some plumbing to be able to define alerts that get created or updated on every deployment. I said to start lets add an alert for X metric, then we can take it from there. He took the instructions, plopped them into an agent, generated ~400 lines of change that add the alert. The problem was the entire 400 lines were custom for that X metric. Meaning if we needed to add a second alert, it’s another 400 lines. The entire thing is generic plumbing and defining resources. Any reasonable engineer would make it so that the second alert to add would be 2 or 3 line change to just define the metric and its alerting threshold (and whatever other parameters for the alert) not re-do the entire setup every time for every metric. I felt stupid having to explain that to another senior engineer. | | |
| ▲ | tonyedgecombe 15 hours ago | parent [-] | | To be fair to your colleague (and the LLM) making things generic too early is a bit of an anti-pattern as well. | | |
| ▲ | eddythompson80 8 hours ago | parent [-] | | But that's exactly the problem. The judgement call on what should be made generic from the get-go vs what making generic early on is too over-engineering is something that you would expect an engineer (or a sufficiently advanced AI I guess) to consider. Something like an alert should be all the way on the "should be generic from the get-go" side of that scale. There is no scenario where we only need one alert for a single metric. Some other scenarios would be an anti-pattern as you said. The judgement call here is important. |
|
|
|
|
| ▲ | szundi a day ago | parent | prev | next [-] |
| [dead] |
|
| ▲ | hmry 20 hours ago | parent | prev | next [-] |
| >The part that actually hurts is who is left. Another AI-generated post complaining about AI? Or maybe the author just started writing like Claude themselves |
| |
| ▲ | myk9001 17 hours ago | parent | next [-] | | That reddit post is written from the perspective of someone who's actually pro AI ("It felt great for about 6 months ...") and only realizes retrospectively they ended up in a mess. So there's no internal inconsistency in the narrative. Anyway most of reddit is dead internet and that post is just engagement farming... As is most of hn. | |
| ▲ | Digit-Al 18 hours ago | parent | prev [-] | | The author specifically claims to have written the article themselves and not used AI, so you are basically accusing them of being a liar. You might want to be a bit more cautious about committing direct defamation. Just sayin' :-) |
|
|
| ▲ | geodel a day ago | parent | prev [-] |
| Since AI agents are free and unlimited in a sense. Companies would be assigning a dedicated agent to a service full time that would keep a long term memory of project design, decisions, history and all. It'd be 10x cheaper and 10x faster (at least thats the thought). They will have their own titles Agent, Sr Agent, Principal Agent, Staff Agent and so on. |
| |
| ▲ | pennomi 14 hours ago | parent [-] | | At least leave the bureaucracy to humans. It’s the only thing we have left. |
|