VMG 19 hours ago

This is not true.

It may be bad practice, but consider that the median developer does not care at all about the internals of the dependencies that they are using.

They care about the interface and about whether they work or not.

They usually do not care about the implementation.

Code generated by LLM is not that different than pulling in a random npm package or rust crate. We all understand the downsides, but there is a reason that practice is so popular.

6
rurp 14 hours ago

Popular packages are regularly being used and vetted by thousands of engineers and that level of usage generally leads to subtle bugs being found and fixed. Blindly copy/pasting some LLM code is the opposite of that. It might be regurgitating some well developed code, but it's at least as likely to be generating something that looks right but is completely wrong in some way.

emushack 19 hours ago

"Code generated by LLM is not that different than pulling in a random npm package or rust crate"

So I really hope you don't pull in packages randomly. That sounds like a security risk.

Also, good packages tend have a team of people maintaining it. How is that the same exactly?

VMG 19 hours ago

> So I really hope you don't pull in packages randomly. That sounds like a security risk.

It absolutely is, but that is besides the point

> Also, good packages tend have a team of people maintaining it. How is that the same exactly?

The famously do not https://xkcd.com/2347/

emushack 16 hours ago

If you're a developer, you do yourself a disservice by describing it this way.

qudat 19 hours ago

> They usually do not care about the implementation.

[citation needed]

> Code generated by LLM is not that different than pulling in a random npm package or rust crate

It's not random, there's an algorithm for picking "good" packages and it's much simpler than reviewing every single line of LLM code.

VMG 19 hours ago

>> They usually do not care about the implementation. > [citation needed]

Everybody agrees that e.g. `make` and autotools is a pile of garbage. It doesn't matter, it works and people use it.

> It's not random, there's an algorithm for picking "good" packages and it's much simpler than reviewing every single line of LLM code.

But you don't need to review every single line of LLM code just as you don't need to review every single line of dependency code. If it works, it works.

Why does it matter who wrote it?

skydhash 19 hours ago

Everything compounds. Good architecture makes it easy to maintain things later. Bad code will slow you down to a snail pace and will result in 1000s of bug tickets.

marcosdumay 17 hours ago

If you as a developer care so much about stuff that the software users won't care about, you should look for better tools.

lawn 13 hours ago

> Code generated by LLM is not that different than pulling in a random npm package or rust crate.

Yes, LLM code is significantly worse than even a random package as it very often doesn't even compile.