nah ...let him live the dream for a bit longer :)
-
-
-
15 years professional experience and I never memorized regex. Please destroy them


1 reply 0 retweets 0 likes -
I can write them without a reference but reading a regex some else wrote is incredibly hard.
1 reply 0 retweets 2 likes -
I've written CFG engines (poorly) and I always remember [] and * and + but I am consistently googling just like how I google cron syntax
1 reply 0 retweets 1 like -
crontab entries are just 5 regexes and a shell command!
1 reply 0 retweets 1 like -
But like, cron4j has 6 regexes! I think, it's been a while. Java frameworks added one for millis I think. Java sucks. Rust, Kotlin, Swift are way better
1 reply 0 retweets 0 likes -
I wouldn’t know about cron4j. That sounds like a thing I’ve never nor will ever need. David is doing some fancy text/pattern matching in rust and, surprise!, he has to learn regexes first. And they are doubly terrible in rust!
1 reply 0 retweets 1 like -
If you were an enterprise javaphile 10 years ago, cron4j was your goto task scheduler (slayed Quartz by a long shot). Great lib. Regex is timeless though (pun?) But I never memorized it. I always google
1 reply 0 retweets 0 likes -
The rust regex crate isn’t exactly PRCE and its api is a little weird. We implemented our own scheduler back when I had a real job. Mostly due to having a minimal 3rd-party dependency requirement.
2 replies 0 retweets 1 like
Could you give more specifics about what you find weird with the regex crate's API? (Disclaimer: I am the author and maintainer.)
-
-
I didn’t mean it as a criticism. Having only used rust for <6mos regex just didn’t jive with my mental model of what I expected. I mean. I have no better ideas. It’s really great software and works perfectly.
1 reply 0 retweets 2 likes -
Replying to @zombodb @burntsushi5 and
Maybe what I found weird about it is that it really isn’t complicated. Coming from Java, maybe I was expecting something more complex.
0 replies 0 retweets 1 like
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.