cross-posted from: https://lemmy.world/post/52447554
cross-posted from: https://lemmy.world/post/52447554
Probably because showing your email regex publicly is a great way to get 1000 messages about obscure edge cases you're not handling π
One star. Too readable, would not write again
Why waste time doing any matching if wantarray == false? Just do:
if(!wantarray) { return 1; }
Before any matching happens, or if you only want one return statement set the value of a variable in if(!wantarray)/elsif(regex) and return that variable at the end.
If regular expressions are your solution, than your problem is wrong.
Counterargument: ctrl+f is a great place for regex. Write once read never problems are a great application for unreadable languages. Imagine if people wrote scripts in the language vi uses for editnigbceediting, which mostly isn't even displayed as it's typed!
But yeah, it's kind of terrible for anything else.
Should be at the top.
That's just sad expression with extra steps
@programming.dev
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
go to feed...
@programming.dev
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
go to feed...
save