News for hackers. Stuff that matters.
Re:A Student's Guide to Writing with ChatGPT by rjh29 on Wednesday November 13, 2024 @08:41PM (#42132275)
Writing regexes by hand is hard so there will always be some level of testing involved. But reading a regex and verifying it works is easier than writing one from scratch.
Re:A Student's Guide to Writing with ChatGPT by antod on Wednesday November 13, 2024 @09:04PM (#42132410)
My overly snide point about regexes was that most of the time "verifying it works" is more like finding and fixing a few more edge cases on the asymptotic journey towards no more brokenness.
Re:A Student's Guide to Writing with ChatGPT by rjh29 on Thursday November 14, 2024 @07:50AM (#42135712)
Yeah I agree with that! 100% test coverage seems impossible when every part of the regex is basically an if condition.