this post was submitted on 24 Feb 2025
22 points (100.0% liked)

General Programming Discussion

9031 readers
1 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 6 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] yogthos@lemmy.ml 3 points 7 months ago

It's precisely the kind of thing I would not want to figure out by hand, but it's fairly easy to validate that it does what I want it to. The use case here is well defined, and it's pretty easy to write tests for the expected behaviors. In general, I like to treat tests as contracts for the functionality of the app.

Meanwhile, the same argument would apply to hand written regex as well. People write code that works on a happy path, but breaks in some corner case all the time. This is a common occurrence without LLMs.