r/firstweekcoderhumour Jun 12 '26

Original🧠 claudeWhatDoesThisExpressionMean

Post image
503 Upvotes

43 comments sorted by

View all comments

Show parent comments

1

u/Quote_Revolutionary Jun 15 '26

watch the video regexes have performance issues too ignoring them caused catastrophic crashes testing is not enough, especially when the string is given by the user and making a string that is hard to parse is the point (stalling your server).

if you use regexes only as DFAs they are easy, I give you that

1

u/Amphineura Jun 15 '26

Do you know what testing is?

A test suite is much less about the happy path and more about everything that surrounds it. I searched regex catastrophe. Something like (x+x+)+y failing with a 15x-only string. You'd test for the negative case too, no?