Re:ReX.js – Your RegEx companion
by dgritsko on Monday November 19, 2018 @04:03PM
(#18489736)
Some people, when confronted with a problem, think "I know, I'll use ReX.js." Now they have three problems.
[ Parent
| on HN ]
I know you're meme-ing, but it's a great way to put it tbh. This library struck a nerve with me today because it's a rare example of a library that's actually harmful to its intended beginner audience. The author invented a verbose DSL for what's already a DSL!
For the record, I'd never fault anyone for writing any code they want (unless maliciously ofc). "What would a method-based interface to regular expressions look like?" is a perfectly reasonable question! But the author is doing a disservice to anyone he gets to use this. Just use ''.match().