Lurker News
Genuine question.

Over the past six months, there hasn’t been a single day where I’ve checked the HN Best RSS feed without seeing a post about how AI “writes bad code,” “introduces bugs,” “creates technical debt,” or something along those lines.
I’ll probably make a lot of enemies by saying this, but do people realize that code is just a means to an end?
Users don’t care whether the code was written by AI or by hand, or which framework you used. They care that the product works.
I say this as someone who has spent more than 20 years honing their craft as a software engineer.
Let’s face it: by the time I manually ship version 1.0 of a product, the AI-assisted version could have been deployed 10x faster. By then, enough real-world feedback would have surfaced to identify the major issues, and tools like Claude Code would make it possible to fix and ship version 2.0 at an incredible pace.
At some point, execution speed starts to matter more than the elegance of the code.

Comments (765) 344 threads

Earlier comments
customguy#
> At some point, execution speed starts to matter more than the elegance of the code.

Yeah, when your code runs on more than one machine, more than once. Then it's worth it to spend some time to make it actually good. RAM usage also matters.

strken1 reply#
I "hate" AI[0] because I believe that elegant code is a different bulding material to ugly code. Ugly code is harder to change. At some point, it becomes impossible to change.

I notice that a lot of people say they'll be able to write 2.0 faster than I can write 1.0. This means that their 1.0 must have been so bad that they had to rewrite it. Why, then, would their 2.0 be any better? Because they got some feedback? At some point, your users are just going to leave for a competitor.
[0] Meaning I use it, think it's neat, and will continue to use it, but would prefer to use it a lot less than my boss wants

ninkendo#
> I believe that elegant code is a different bulding material to ugly code. Ugly code is harder to change. At some point, it becomes impossible to change.

I believe the same thing and it’s also the main reason I hate AI code.
AI tends to not have much regard to “architecture” or even really considering how code should be organized. Need a function to read a base64 string into a private key? “fn base64_to_key” right there next to the code that needs it. Need to take that key and encrypt a blob? “fn encrypt_blob” right next to it. No thought about maybe pushing that code to a crypto module, or representing the invariants as types, or even just putting the functions where they might logically belong, just spews them out everywhere.
But, I have a problem trying to prove why this is an actual problem in the end product. You can say “it’s harder to refactor later” but the LLM is already pretty good at just changing bulk amounts of code to behave differently. In fact, having utility functions “nearby” the code that needs it might be better for its own context management. Most of the reason humans prefer the “single responsibility principle” and “modular design” are to make the code easier for us to change and reason about, but an LLM with a finite context window may actually do better with code that doesn’t match this premise.
I find myself reviewing code that others on my team generated with an LLM, and I tend to focus on these sorts of architectural “problems” the most because it’s the biggest gap between the way I program and what the LLM executes. But sometimes I worry that I’m fighting a losing battle, and that the focus on good architecture isn’t as important as I think it is. Or at least, I’m having trouble proving that it actually matters tangibly. Will it result in an unmaintainable mess? Maybe. It’s not guaranteed that LLM’s have the same limitations we do when it comes to maintaining code.

andyjohnson0#
> Why is the HN crowd so anti-AI

Take your pick: Anxiety over the possibility of redundancy and consequent financial precarity. Concern about our children's futures - their education and careers. Sorrow over the loss of the craft of software construction, with the potential for reduced autonomy and creativity. The atrophying of human cognition. Disgust at the excessive hype. Dismay at the environmental impact. Worries about the social and political impact, including further enabling authoritarians. Horror at the inevitable use of AI in warefare. Just plain exhaustion at the rate that the world is changing.
Like you, I'm a software engineer. 30+ years. I find the technology of AI genuinely facinating. I also enjoy making software.
> do people realize that code is just a means to an end?
This has been extensively discussed here and elsewhere. Its obviously a simplification, but some people prioritise the end-result: the product. Other people prioritise the practice of building the thing: the art/craft/engineering of coding and software construction. There seems to be a certain amount of mutual incomprehension between these two perspectives.
> At some point, execution speed starts to matter more than the elegance of the code.
Ultimately, I think that financial pressures will mean that software inevitably becomes much less the product of a craft and much more an industrial mass-produced product, extruded by AI. So, if you're frustrated by current contrary attitudes on HN and elsewhere, then perhaps you just need to wait a few more years.

sscaryterry#
I think that anti-AI sentiment is caused by the business bunnies, over-selling what AI/LLMs can do. Mass retrenchments, re-hiring engineers again a year later to clean up the shit storm caused by over use of AI.

Put even simpler: We, engineers/tech people/tech heavy industries, we are the ones who's lives get the most disturbed, uprooted, messed up by the use of superlatives, the "promises" of AI.
Don't get me wrong, I use it all the time, got the AI psychosis myself, but it is still daft, thick as bricks. It is no replacement for a human.

Load more comments