4 ms·
> I asked an LLM to write a Levenshtein distance function instead of adding a dependency to my project. Which you likely failed to review thoroughly, so may b
by bryanlarsen 3mo ago
> I asked an LLM to write a Levenshtein distance function instead of adding a dependency to my project.
Which you likely failed to review thoroughly, so may be subtly wrong.
- AlienRobot 3mo agoOn the negative side, the code may not work. But on the positive side, no dependencies.
- Fordec 3mo agoOr put the dependency in the unit tests so it's not part of the code base but able to be compared to the canonical implementation.
- My_Name 3mo agoHow many dependencies do you review the source code of?
- fluoridation 3mo agoThe expectation is that someone has already done that with a dependency. If the code has just been sharted out by an LLM, it has by definition been reviewed or even understood by no one.
- My_Name 3mo agoThere is nothing about a LLM 'sharting out code' that blocks it being reviewed or understood by a human.
- bryanlarsen 3mo agoWhat good would that do me? Levenshtein distance is one of those things that's trivial on the surface, but I have no idea if there are tricky edge conditions. I do one better: I pull from a trusted creator or I review things like GitHub issues to ensure better people than me have reviewed it.