| ▲ | p0w3n3d 10 hours ago | |||||||||||||||||||||||||
Letting LLM write utility code is a sword that cuts both ways. You often create a throw-away code that is unproven and requires maintenance. It's not a guarantee that the blobutil or toString or whatever created by AI won't fail at some edge cases. That's why e.g. in Java there is Apache commons which is perceived as an industry standard nowadays. | ||||||||||||||||||||||||||
| ▲ | jaapz 8 hours ago | parent | next [-] | |||||||||||||||||||||||||
Exactly. When you assume blob-util to be a utility library that has been in use for quite a while by many people in many different contexts, hasn't seen much changes and just "works", IMHO the risk of weird bugs is a lot larger with LLM-generated code. Code generated by LLM's often have the problem that the code seems logical, but then contain weird bugs that aren't immediately obvious. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | safety1st 5 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
This mostly sounds like a good thing to me from a utilitarian standpoint. Getting all your utility classes from somewhere like npm and creating dependencies on 20 different people and organizations who may or may not maintain their software has been a security nightmare with many highly public examples. If a LLM writes a utility class for me then my supply chain is smaller, meaning less surface area to attack plus I probably benefit from some form of security through obscurity for whatever non-trivial amount that's worth. "Downside" is I don't have some rando, probably unpaid labor out there updating a piece of my app for me... | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | Cthulhu_ 4 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
It's not a new thing either, many years ago there was already the debate whether you should trust utility code copied from SO or use an NPM library. In fact, I'm 99% confident that the slew of single function NPM libraries became a thing because of that mindset. | ||||||||||||||||||||||||||
| ▲ | Menschlio 7 hours ago | parent | prev [-] | |||||||||||||||||||||||||
The proper way to do it, would be to have an industry standard on the default things people blindly but massivly pull through dependencies. I also don't get how code can be so massivly inefficient. left-pad needs 9kb to download and the code is a handful of lines: https://www.npmjs.com/package/left-pad?activeTab=code If my unit tests run through, i don't have 'unproven' code. I have well working code which doesn't need to go through a dependency hell upgrade cycle just because one function in that lib, i don't use, has some CVE too high to be ignored. | ||||||||||||||||||||||||||