Live data from Hacker News

Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

blackentropy.bearblog.dev

21–30 of 44 posts

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#21
Thoughtless reliance on AI is a concern, but this post also hearkens back to a halcyon age that never existed. The places where developers use tab-complete now are exactly those where they would have previously copied from Stack Overflow, which suffers from the same issue of convenient but insecure code becoming widely adopted. If anything, LLMs are able to exercise some degree of quality control due to post-training improvements rather than sampling only from the middle of the training distribution, so the average suggestion should be better and less stale than the SO equivalent.

The primary danger here is a substitution effect in which developers who would previously have thought carefully about a given bit of code no longer do, because the AI takes care of it for them. Both anecdotally and in my own experience, developers can still discern between situations where they are the expert, in which case it is more efficient to rely on their own code than AI suggestions because it lowers the chances of error, and situations where they are operating outside their expertise or simply writing boilerplate, in which case AI is the optimal choice.

I challenge anyone to produce a well-documented study in which the average quality of a large codebase declines as the correlates of AI usage rise. Until I see that, I will continue to read "decline of care" posts as "kids these days."

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#22

> Always Review AI-Suggested Code So really the problem is a lack of code review... but I seem to recall that AI is decent at code review too. It won't spot state machine bugs, but SQL injections, no problem.

AI code review can help spot potential problems, but it won't do the most important part of code review for you which is to evaluating if the thing actually works and if the architectural approach is right for the project.

As with all things "AI", it's a great assistive tool for helping make decisions but it's not something to outsource those decisions to entirely.

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#23

There’s good points in this article, especially for new engineers who may not understand what the AI is writing. Also, “lazy” in coding often means you’ve automated something and made it efficient. So I don’t view lazy as bad. Less careful is a concern. Not everyone is great at reviewing code. However we’ll be using AI for code reviews and security audits soon (obviously some are already). I suspect code quality will…

> However we’ll be using AI for code reviews and security audits soon

So the solution to the problems that genAI brings is more genAI? I'm very skeptical about that.

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#24
post #9

> In the old days, developers had to really know their stuff. Coding wasn’t just a checklist—it was a craft, and every line was written with care. you've lost me here. Caring and attention to quality have always been in short supply. Or supply _and_ demand when I think of some of the startups I've worked for.

I mean, given that copilot is just regurgitating common patterns, it's getting the bad practices from it's training data.

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#25

> Always Review AI-Suggested Code So really the problem is a lack of code review... but I seem to recall that AI is decent at code review too. It won't spot state machine bugs, but SQL injections, no problem.

AI code review is better than no code review, and it's also better than a brief glance at the git diff of a codebase too big for the human equivalent of a context window where we all know we shrug and type "lgtm" before clicking accept… but it's definitely not a silver bullet either.

To keep the metaphor, it's an M60: ammo hungry, easily damaged or jammed, still very popular.

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#26
post #7

> In the old days, developers had to really know their stuff. Coding wasn’t just a checklist—it was a craft, and every line was written with care. There's a name for seeing the past through rose-colored glasses, isn't there? "In the old days" developers had various degrees of skill and care, as they do "in the new days".

We could complain about Stackoverflow, Google, automatic memory management, compiler optimization, the fact that a broken program doesn't crash your entire OS, ...

A related point: MIT dropped the SICP curriculum in 1997, the reasoning being:[1]

> Sussman said that in the 80s and 90s, engineers built complex systems by combining simple and well-understood parts. The goal of SICP was to provide the abstraction language for reasoning about such systems. > > Today, this is no longer the case. Sussman pointed out that engineers now routinely write code for complicated hardware that they don’t fully understand (and often can’t understand because of trade secrecy.) The same is true at the software level, since programming environments consist of gigantic libraries with enormous functionality. According to Sussman, his students spend most of their time reading manuals for these libraries to figure out how to stitch them together to get a job done. He said that programming today is “More like science. You grab this piece of library and you poke at it. You write programs that poke it and see what it does. And you say, ‘Can I tweak it to do the thing I want?'”. The “analysis-by-synthesis” view of SICP — where you build a larger system out of smaller, simple parts — became irrelevant. Nowadays, we do programming by poking.

As software becomes more powerful, it must become more complex. And thanks to the internet, we have tons of pre-built solutions out there. Now, much of the problem is combining them together. When doing this, you can't know or care about every line. I totally agree, we must treat a lot more systems scientifically, like an object under observation.

[1]: http://lambda-the-ultimate.org/node/5335

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#28
I feel like this article was written by someone who doesn't code every day but instead looks at tech industry trends.

If you're on the outside looking in, it's easy get the impression that AI is eating the industry but the truth is much more nuanced. Yes devs use AI tools to help them code but as other commenters have pointed out, it just breaks down when you're deep in the trenches with large and complex codebases.

If you're starting a greenfield application then AI can most certainly help cut down on the repetitive tasks but most code out there is not greenfield code and implements lots of business logic for which AI is next to useless unless it's trained on that specific problem.

Where i personally see AI eating up tech is at the lower end, with many folks getting into tech are increasingly relying on AI to help them. I feel like long term this will only exacerbate the issue with the JR -> SR pipeline. Senior folks will only be more and more sought after and it will be hard for many Juniors that grew up on AI assistants to make that jump.

Re: Are Devs Becoming Lazy? The Rise of AI and the Decline of Care

#29
One thing I have noticed with some newer coworkers / fresh grads is that they seem much more willing to copy someone's issue from slack into gpt and regurgitate out a "here's what gpt says", which muddies the water a bit or is at least a bit unhelpful.

Which is fine - developing the feeling of what to say and when takes time and experience. And sometimes it can help, after all - or spark a useful learning opportunity about why a particular llm recommendation looks useful but isn't. Though it takes a bit of energy to walk the line of teaching and encouraging growth without dampening enthusiasm, and spending that energy is its own opportunity cost.

But it does feel a bit different than before - I don't recall seeing as much less-helpful "here's what a stack overflow post said" messages in threads years ago. It did and does happen, but I think it is much more common with LLMs.

Thankfully, that is just a case of someone actively trying to not be lazy; trying to help, using the resources at hand. Decades ago that would have meant looking in some old docs or textbooks or specs, years ago that would have been googling, and now it's something else.

I think the accessibility and availability of answers from LLMs for such "quick research" situations is the culprit, rather than any particular decline in developer behaviors themselves. At least, in this case. I'm sure I would have seen the same rate of "trying to help but getting in the way" posting years ago had stack overflow or google had a way of conjuring answers to questions that simply didn't exist in its corpus.

I think the "in the old days" sentiment from the author somewhat divides things into a before/after AI situation, but IMO it has been a gradual gradient as new tooling and information sources have become available. AI is another one of those, and a big jump, but it doesn't feel like a novel change in "laziness" yet.

Though, there's been some big pushes towards relying more and more on various AI code reviewers and fuzzers in my area. I feel like that is an area where the author's concerns will come more and more into play - laziness at the boundary layers, at the places of oversight; essentially, laziness by senior devs and leadership.

Post reply on HN