Live data from Hacker News

Generative AI coding tools and agents do not work for me

blog.miguelgrinberg.com

311–320 of 464 posts

Re: Generative AI coding tools and agents do not work for me

#311
post #275

> What I think happens is that these people save time because they only spot review the AI generated code, or skip the review phase altogether, which as I said above would be a deal breaker for me. In my experience it's that they dump the code into a pull request and expect me to review it. So GenAI is great if someone else is doing the real work.

I’ve experienced this as well. If management is not competent they can’t tell (or don’t want to hear) when a “star” performer is actually a very expensive wrapper around a $20/mo cursor subscription. Unlike the author of the article I do get a ton of value from coding agents, but as with all tools they are less than useless when wielded incompetently. This becomes more damaging in an org that already has perverse inc…

Git blame can do a lot in those situations. Find the general location of the bug, then assign everyone that has touched it to the ticket.

Re: Generative AI coding tools and agents do not work for me

#312

AI is really useful when you already know what code needs to be written. If you can explain it properly, the AI will write it faster than you can and you'll save time because it is quick to check that this is actually the code you wanted to write. So "programming with AI" means programming in your mind and then using the AI to materialize it in the codebase.

Well, kinda? I often know what chunks / functions I need, but too lazy to think how to implement them exactly, how they should works inside. Yeah, you need to have overall idea of what you are trying to make.

Re: Generative AI coding tools and agents do not work for me

#313
post #238

Earlier quoted context omitted.

It is absolutely true, and AI cannot think, reason, comprehend anything it has not seen before. If you're getting answers, it has seen it elsewhere, or it is literally dumb, statistical luck. That doesn't mean it knows the answer . That means it guessed or hallucinated correctly. Guessing isn't knowing. edit: people seem to be missing my point, so let me rephrase. Of course AIs don't think, but that wasn't what I was…

> It is absolutely true, and AI cannot think, reason, comprehend anything it has not seen before. The amazing thing about LLMs is that we still don’t know how (or why) they work! Yes, they’re magic mirrors that regurgitate the corpus of human knowledge. But as it turns out, most human knowledge is already regurgitation (see: the patent system). Novelty is rare, and LLMs have an incredible ability to pattern match and…

> The amazing thing about LLMs is that we still don’t know how (or why) they work!

You may want to take a course in machine learning and read a few papers.

Re: Generative AI coding tools and agents do not work for me

#314
post #238

Earlier quoted context omitted.

It is absolutely true, and AI cannot think, reason, comprehend anything it has not seen before. If you're getting answers, it has seen it elsewhere, or it is literally dumb, statistical luck. That doesn't mean it knows the answer . That means it guessed or hallucinated correctly. Guessing isn't knowing. edit: people seem to be missing my point, so let me rephrase. Of course AIs don't think, but that wasn't what I was…

This doesn't seem like a useful nor accurate way of describing LLMs. When I built my own programming language and used it to build a unique toy reactivity system and then asked the LLM "what can I improve in this file", you're essentially saying it "only" could help me because it learned how it could improve arbitrary code before in other languages and then it generalized those patterns to help me with novel code and…

Programming languages, by their nature of being formal notation, only have a few patterns to follow, all of them listed in the grammar of that language. And then there’s only so much libraries out there. I believe there’s more unique comments and other code explanations out there than unique code patterns. Take something like MDN where there’s a full page of text for every JavaScript, html, css symbol.

Re: Generative AI coding tools and agents do not work for me

#315

Earlier quoted context omitted.

You remember when Google used to do the same thing for you way before "AI"? Okay, maybe sometimes the post about the stack trace was in Chinese, but a plain search used to be capable of giving the same answer as a LLM. It's not that LLMs are better, it's search that got entshittified.

I remember when I could paste an error message into Google and get an answer. I do not remember pasting a 60 line stack trace into Google and getting an answer, though I'm pretty sure I honestly never tried that. Did it work?

Yes, pasting lots of seemingly random context into Google used to work shockingly well.

I could break most passwords of an internal company application by googling the SHA1 hashes.

It was possible to reliably identify plants or insects by just googling all the random words or sentences that would come to mind describing it.

(None of that works nowadays, not even remotely)

Re: Generative AI coding tools and agents do not work for me

#316

Earlier quoted context omitted.

I only generate the code once with GenAI and typically fix a bug or two - or at worst use its structure. Rarely do I toss a full PR. It’s interesting some folks can use them to build functioning systems and others can’t get a PR out of them.

The problem is that at this stage we mostly just have people's estimates of their own success to go on, and nobody thinks they're incompetent. Nobody's going to say "AI works really well for, me but I just pump out dross my colleagues have to fix" or "AI doesn't work for me but I'm an unproductive, burnt out hack pretending I'm some sort of craftsman as the world leaves me behind". This will only be resolved out ther…

My experiences so far suggest that you might be right.

Re: Generative AI coding tools and agents do not work for me

#317
post #275

> What I think happens is that these people save time because they only spot review the AI generated code, or skip the review phase altogether, which as I said above would be a deal breaker for me. In my experience it's that they dump the code into a pull request and expect me to review it. So GenAI is great if someone else is doing the real work.

I don't understand this, the buck stops with the PR submitter. If they get repeated feedback about their PRs that are just passed-through AI slop, then the team lead or whatever should give them a stern talking to.

Re: Generative AI coding tools and agents do not work for me

#319
post #238

Earlier quoted context omitted.

It is absolutely true, and AI cannot think, reason, comprehend anything it has not seen before. If you're getting answers, it has seen it elsewhere, or it is literally dumb, statistical luck. That doesn't mean it knows the answer . That means it guessed or hallucinated correctly. Guessing isn't knowing. edit: people seem to be missing my point, so let me rephrase. Of course AIs don't think, but that wasn't what I was…

It's just Pattern matching. Most APIs, and hell, most code is not unique or special. Its all been done a thousands of times before. Thats why an LLM can be helpful on some tool you've written just for yourself and never released anywhere. As to 'knows the answer', I'm don't even know what that means with these tools. All I know is if it is helpful or not.

Also, most problems are decomposable into simpler, certainly not novel parts. That intractable unicorn problem I hear so much about is probably composed of very pedestrian sub-problems.

Re: Generative AI coding tools and agents do not work for me

#320
post #297

Earlier quoted context omitted.

Why is thinking important? Think about it a bit.

is it more important for a chess engine to be able to think? Or is it able to win by brute force through searching a sufficient outcome? If the outcome is indistinguisable from using "thinking" as the process rather than brute force, why would the process matter regarding how the outcome was achieved?

maybe if programming were a well-defined game like chess, but it's not.
Post reply on HN