Live data from Hacker News

Survey: a third of senior developers say over half their code is AI-generated

fastly.com

131–140 of 388 posts

Re: Survey: a third of senior developers say over half their code is AI-generated

#131
post #77

Earlier quoted context omitted.

This is absolutely true. If anything, interactive debuggers are a crutch and actual logging is the real way of debugging. You really can't debug all sorts of things in an interactive debugger, things like timing issues, thread problems, and you certainly can't find the actual hard bugs that are in running services in production, you know, where the bugs actually happen and are found. Or on other people's machines tha…

Both are valid, if your code is slightly complex it's invaluable to run it at least once with a debugger to verify that your logic is all good. And using logs for this is highly inefficient. E.g. if you have huge data structures that are a pain to print, or if after starting the program you notice that you forgot to add some print somewhere needed. And obviously when you can't hook the debugger, logs are mandatory. D…

> verify your logic

This is what unit tests are for.

Re: Survey: a third of senior developers say over half their code is AI-generated

#132
post #86

Earlier quoted context omitted.

We are talking about basic computing for CRUD apps. When you start needing to rely upon "sorta-ish" to describe the efficacy or a tool for such a straightforward and deterministic use case, it may be an indicator you need to rethink your approach.

If you want to discount a tool that may save you an immense amount of time because you might have to help it along the fast few feet, thats up to you. If you can share a tool that can analyze a function and create a test for all corner cases in a popular language, I'm sure some people would be interested in that.

You should look up intellitest and reshaper test generator. Products exist for this.

Re: Survey: a third of senior developers say over half their code is AI-generated

#135
Jesus, that's a staggering figure to me coming from senior developers. I guess I'm the odd one out here, but ChatGPT is nothing more than an index of Stack Overflow (and friends) for me. It's essentially replaced Googling, but once I get the answer I need I'm still just slinging code like an asshole. Copying the output wholesale from any of these LLMs just seems crazy to me.

Re: Survey: a third of senior developers say over half their code is AI-generated

#137

Earlier quoted context omitted.

> invalidating refresh keys after single use That's called refresh token rotation and is a valid security practice.

I know but the RFC doesnt mandate it. https://datatracker.ietf.org/doc/html/rfc6749#section-6 Not sure why Google doesnt do this but Atlassian does.

Google OAuth2 refresh tokens are definitely singe use.

Re: Survey: a third of senior developers say over half their code is AI-generated

#138

Earlier quoted context omitted.

Yeah, [autocomplete: I totally agree] it's so [great to have auto-complete] annoying to constantly [have to type] have tons of text dumped into your text area. Sometimes it looks plausibly right, but with subtle little issues. And you have to carefully analyze whatever it output for correctness (like constant code review).

That we're trying to replace entry/mediocre/expert level code writing with entry/mediocre/expert level code reading is one of the strangest aspects of this whole AI paradigm. There's literally no way I can see that resulting in better quality, so either that is not what is happening or we're in for a rude awakening at some point.

https://www.joelonsoftware.com/2000/05/26/reading-code-is-li...

https://www.joelonsoftware.com/2000/04/06/things-you-should-... (read the bold text in the middle of the article)

These articles are 25 years old.

Re: Survey: a third of senior developers say over half their code is AI-generated

#139
post #63

This article goes completely against my experience so far. I teach at an internship program and the main problem with interns since 2023 has been their over reliance on AI tools. I feel like I have to teach them to stop using AI for everything and think through the problem so that they don't get stuck. Meanwhile many of the seniors around me are stuck in their ways, refusing to adopt interactive debuggers to replace…

The old fogeys don't rely on printf because they can't use a debugger, but because a debugger stops the entire program and requires you to go step by step. Printf gives you an entire trace or log you can glance at, giving you a bird's eye view of entire processes.

Most decent debuggers have condițional breakpoints.

Re: Survey: a third of senior developers say over half their code is AI-generated

#140

Earlier quoted context omitted.

Both are valid, if your code is slightly complex it's invaluable to run it at least once with a debugger to verify that your logic is all good. And using logs for this is highly inefficient. E.g. if you have huge data structures that are a pain to print, or if after starting the program you notice that you forgot to add some print somewhere needed. And obviously when you can't hook the debugger, logs are mandatory. D…

> verify your logic This is what unit tests are for.

And no one has ever written a buggy unit test.
Post reply on HN