4 ms·
This is truly one thing AI solved. Hard to write, easy to test. No one needs to learn this convoluted syntax in the future and we're all better for it.
by poisonborz 2y ago
This is truly one thing AI solved. Hard to write, easy to test. No one needs to learn this convoluted syntax in the future and we're all better for it.
- mrkeen 2y agoNothing that LLMs produce today is good enough to bypass a developer who can judge whether it's correct or not.
- ykonstant 2y agoI wonder if the problems people are pointing out with the examples (lowercase not being correct under various locales, IP address regex not being conformant etc) would be absent in code furnished by LLMs.
- bazoom42 2y agoHow would you know if a regex is correct if you dont understand it?
- poisonborz 2y agoYou have test strings covering all cases and they match accordingly? The same way you'd know when writing manually.
- bazoom42 2y agoCovering all cases? How would that be possible? Even if we only consider ASCII strings, there are 16.000 possible two-character strings, 2 million possible three-character strings and so on.