Live data from Hacker News

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

fastly.com

81–90 of 388 posts

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

#82
post #67
post #47

Earlier quoted context omitted.

I love the split personality vibe here.

Or perhaps the commenter just aged a lot while writing the post.

First line: "I wouldn't say I'm old"

Last line: "Thankfully I'm very old"

Hmm.....

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

#83

Seems about right for me (older developer at a big tech company). But we need to define what it means that the code is AI-generated. In my case, I typically know how I want the code to look like, and I'm writing a prompt to tell the agent to do it. The AI doesn't solve any problem, it just does the typing and helps with syntax. I'm not even sure I'm ultimately more productive.

I didn't see much mention of tab-completions in the survey and comments here. To me that's the ultimate coding AI is doing at my end, even though it seems to pass unnoticed nowadays. It's massive LOC (and comments!), and that's were I find AI immensely productive.

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

#84
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…

Interactive debuggers and printf() are both completely valid and have separate use-cases with some overlap. If you're trying to use, or trying to get people to use, exclusively one, you've got some things to think about.

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

#85
post #68

Earlier quoted context omitted.

Neither are you if that's your understanding of a senior engineer

I think the parent commentors point was that it is nearly trivial to generate variations on unit tests in most (if not all) unit test frameworks. For example: Java: https://docs.parasoft.com/display/JTEST20232/Creating+a+Para... C# (nunit, but xunit has this too): https://docs.nunit.org/articles/nunit/technical-notes/usage/... Python: https://docs.pytest.org/en/stable/example/parametrize.html cpp: https://google.gith…

Parameterized tests are good, but I think he might be talking about exercising all the corner cases in the logic of your function, which to my knowledge almost no languages can auto-generate for but LLMs can sorta-ish figure it out.

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

#86
post #68

Earlier quoted context omitted.

I think the parent commentors point was that it is nearly trivial to generate variations on unit tests in most (if not all) unit test frameworks. For example: Java: https://docs.parasoft.com/display/JTEST20232/Creating+a+Para... C# (nunit, but xunit has this too): https://docs.nunit.org/articles/nunit/technical-notes/usage/... Python: https://docs.pytest.org/en/stable/example/parametrize.html cpp: https://google.gith…

Parameterized tests are good, but I think he might be talking about exercising all the corner cases in the logic of your function, which to my knowledge almost no languages can auto-generate for but LLMs can sorta-ish figure it out.

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.

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

#87
post #47

I wouldn't say I'm old, but I suddenly fell into the coding agent rabbit hole when I had to write some Python automations against Google APIs. Found myself having 3-4 different sites open for documentation, context switching between 3 different libraries. It was a lot to take in. So I said, why not give AI a whirl. It helped me a lot! And since then I have published at least 6 different projects with the help of AI.…

I love the split personality vibe here.

You probably jest, but I'm sure some HN users do actually have split personalities. (or dissociative identities, as they're called nowadays)

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

#88
post #75
post #68

Earlier quoted context omitted.

I think the parent commentors point was that it is nearly trivial to generate variations on unit tests in most (if not all) unit test frameworks. For example: Java: https://docs.parasoft.com/display/JTEST20232/Creating+a+Para... C# (nunit, but xunit has this too): https://docs.nunit.org/articles/nunit/technical-notes/usage/... Python: https://docs.pytest.org/en/stable/example/parametrize.html cpp: https://google.gith…

The useful part is generating the mocks. The various auto mocking frameworks are so hit or miss I end up having to manually make mocks which is time consuming and boring. LLMs help out dramatically and save literally hours of boring error prone work.

Why mock at all? Spend the time making integration tests fast. There is little reason a database, queue, etc. can't be set up in a per-test group basis and be made fast. Reliable software is built upon (mostly) reliable foundations.

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

#90
Really?

I'm not a coder but a sysadmin. 35 years or so. I'm conversant with Perl, Python, (nods to C), BASIC, shell, Powershell, AutoIT (int al)

I muck about with CAD - OpenSCAD, FreeCAD, and 3D printing.

I'm not a senior developer - I pay them.

LLMs are handy in the same way I still have my slide rules and calculators (OK kids I use a calc app) but I do still have my slide rules.

ChatGPT does quite well with the basics for a simple OpenSCAD effort but invents functions within libraries. That is to be expected - its a next token decider function and not a real AI.

I find it handy for basics, very basic.

Post reply on HN