News for hackers. Stuff that matters.
Re:Using go fix to modernize Go code by HumblyTossed on Tuesday February 17, 2026 @01:02PM (#47050689)
The use of LLMs will lead to homogeneous, middling code.
Re:Using go fix to modernize Go code by munk-a on Tuesday February 17, 2026 @02:46PM (#47052191)
Middling code should not exist. Boilerplate code should not exist. For some reason we're suddenly accepting code-gen as SOP instead of building a layer of abstraction on top of the too-onerous layer we're currently building at. Prior generations of software development would see a too-onerous layer and build tools to abstract to a higher level, this generation seems stuck in an idea that we just need tooling to generate all that junk but can continue to work at this level.
Re:Using go fix to modernize Go code by nobleach on Tuesday February 17, 2026 @03:33PM (#47052913)
But Go culture promulgates this practice of repeating boilerplate. In fact this is one of the biggest confusion points of new gophers. "I want to do a thing that seems common enough, what library are you all using to do X?". Everyone scoffs, pushes up their glasses and says, "well actually, you should just use the standard library, it's always worked just fine for me". And the new gopher is confused because they really believe that reinventing the wheel is an acceptable practice. This is what leads to using LLMs to write all that code (admittedly, it's a fine use of an LLM).
Re:Using go fix to modernize Go code by kimixa on Tuesday February 17, 2026 @03:16PM (#47052691)
LLMs have always been great at generating code that doesn't really mean anything - no architectural decisions, the same for "any" program. But only rarely does one see questions why we're needing to generating "meaningless" code in the first place.
Re:Using go fix to modernize Go code by munk-a on Tuesday February 17, 2026 @03:23PM (#47052787)
This gets to one of my core fears around the last few years of software development. A lot of companies right now are saddling their codebases with pages and pages of code that does what they need it to do but of which they have no comprehension.

For a long time my motto around software development has been "optimize for maintainability" and I'm quite concerned that in a few years this habit is going to hit us like a truck in the same way the off-shoring craze did - a bunch of companies will start slowly dying off as their feature velocity slows to a crawl and a lot of products that were useful will be lost. It's not my problem, I know, but it's quite concerning.

Re:Using go fix to modernize Go code by hackerbrother on Tuesday February 17, 2026 @07:58PM (#47055647)
The "LLMs shouldn't be writing code" take is starting to feel like the new "we should all just use No-Code."

We’ve been trying to "build a better layer" for thirty years. From Dreamweaver to Scratch to Bubble, the goal was always the same: hide the syntax so the "logic" can shine. But it turns out, the syntax wasn't the enemy—the abstraction ceiling was.

Re:Using go fix to modernize Go code by slibhb on Wednesday February 18, 2026 @09:43AM (#47061463)
Where are the amazing no-hassle, no-boilerplate tools from last generation? Or the generation before that? Give me a break: it's easy to post this but it's proven very hard to simply "pick the right abstraction for everyone".
Re:Using go fix to modernize Go code by cedws on Tuesday February 17, 2026 @01:52PM (#47051423)
It does. I’ve been writing Go for long enough, and the code that LLMs output is pretty average. It’s what I would expect a mid level engineer to produce. I still write code manually for stuff I care about or where code structure matters.

Maybe the best way is to do the scaffolding yourself and use LLMs to fill the blanks. That may lead to better structured code, but it doesn’t resolve the problem described above where it generates suboptimal or outdated code. Code is a form of communication and I think good code requires an understanding of how to communicate ideas clearly. LLMs have no concept of that, it’s just gluing tokens together. They litter code with useless comments while leaving the parts that need them most without.

Re:Using go fix to modernize Go code by rdfc-xn-uuid on Wednesday February 18, 2026 @07:26AM (#47060287)
I am also of the opinion that LLMs are still pretty bad at what's called "Low level design" - that is structuring functions and classes in a project. I wonder if a rule like torvalds' "No more than 4 levels of indentation" might make them work better.
Re:Using go fix to modernize Go code by meowface on Tuesday February 17, 2026 @03:35PM (#47052944)
For a few years, yeah. Eventually it will probably lead to the average quality of code being considerably higher than it was pre-LLMs.
Re:Using go fix to modernize Go code by bee_rider on Tuesday February 17, 2026 @02:32PM (#47051974)
Do LLMs generate code similar to middling code of a given domain? Why not generate in a perfect language used only by cool and very handsome people, like Fortran, and then translate it to once the important stuff is done?
Re:Using go fix to modernize Go code by pklausler on Tuesday February 17, 2026 @03:53PM (#47053173)
This might work if Fortran were portable, or if only one compiler were targeted.
Re:Using go fix to modernize Go code by saghm on Tuesday February 17, 2026 @02:23PM (#47051829)
You might even say that LLMs are not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.
Re:Using go fix to modernize Go code by rdfc-xn-uuid on Wednesday February 18, 2026 @07:24AM (#47060268)
This is a rob pike reference for the uninitiated: https://news.ycombinator.com/item?id=30688969
Re:Using go fix to modernize Go code by awesome_dude on Tuesday February 17, 2026 @01:24PM (#47051015)
I'm not sure if that's a criticism or praise - I mean, most people strive for readable code.
Re:Using go fix to modernize Go code by candiddevmike on Tuesday February 17, 2026 @01:28PM (#47051079)
LLM generated code reminds me of perl's "write-only" reputation.
Re:Using go fix to modernize Go code by coldtea on Tuesday February 17, 2026 @02:21PM (#47051798)
Does it really? Because I see some quite fine code. The problem is assumptions, or missing side effects when the code is used, or getting stuck in a bad approach "loop" - but not code quality per se.
Re:Using go fix to modernize Go code by awesome_dude on Tuesday February 17, 2026 @01:54PM (#47051452)
In all honesty I've only used LLMs in anger with Go, and come away (generally speaking) happy with what it produced.
Re:Using go fix to modernize Go code by shoo on Tuesday February 17, 2026 @04:30PM (#47053662)
middling code, delivered within a tolerable time frame, budget, without taking excessive risk, is good enough for many real-world commercial software projects. homogeneous middling code, written by humans or extruded by machines, is arguably even a positive for the organisation: lots of organisations are more interested in delivery of software projects being predictable, or having a high bus-factor due to the fungibility of the folks (or machines) building and maintaining the code, rather than depending upon excellence.