Hacker News new | ask | show | jobs
by piker 20 days ago
> It is more ok to refuse to take dependencies now. It used to be the go-to solution to avoid writing anything moderately complex. As recently as this morning, I asked an LLM to write a Levenshtein distance function instead of adding a dependency to my project.

The trap here is that LLMs love to YOLO out reinvented wheels and that leads to a lot of verbosity and untested complexity. Levenshtein distance is one thing, but I've seen an LLM try to hand roll an ORM which obviously will lead to buggier code and a context window bloated with irrelevant noise. Better, as always, to let the ORM maintainer leverage LLMs for the more local issue.