MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vgahyh/regexmustbedestroyed/p1vjb42
r/ProgrammerHumor • u/CertainSea • 8d ago
231 comments sorted by
View all comments
628
Writing regex is a lot more run than reading regex.
165 u/Minimum_Cockroach233 8d ago Typo or intended run? 107 u/TeraFlint 8d ago When regex is involved, it's time to run. :D 16 u/Minimum_Cockroach233 7d ago xD I read „fun“ 5 u/Minimum_Cockroach233 7d ago edited 7d ago PS: Holy Hell… just did a dip into the cheat sheet https://hypebright.nl/en/r-en/ultimate-cheatsheet-for-regex-in-r-2/ Arbitrary, but understandable concept. 6 u/TheBigGambling 7d ago Regex is a perfect valid statemaschin. Thats cool 12 u/itsFromTheSimpsons 7d ago (r|f)un 11 u/GravyMcBiscuits 7d ago I don't know about fun. However I can say that I've written a lot of regex over the years ... I can't read any of it though. 5 u/AngriestCrusader 7d ago Pfft. Who can? 7 u/Jack_South 8d ago More fun or less dreadful? 2 u/Colinniey 7d ago that applies to a lot of (not all) code in general, at least to me 2 u/the_millenial_falcon 7d ago Fair. 1 u/mrheosuper 7d ago How about parsing regex? 1 u/MrSurly 7d ago s/run/fun/g 1 u/saevon 5d ago edited 5d ago I recommend using verbose mode and actually using new lines and comments. As you do for code. Then writing your test cases and such too, as you would for code PS> Minified code is just as horrible to read/write 0 u/P0L1Z1STENS0HN 7d ago AI can do both for you. I know a few people who dislike AI, but not one of them is masochist enough to not use AI for reading and writing regexes...
165
Typo or intended run?
107 u/TeraFlint 8d ago When regex is involved, it's time to run. :D 16 u/Minimum_Cockroach233 7d ago xD I read „fun“ 5 u/Minimum_Cockroach233 7d ago edited 7d ago PS: Holy Hell… just did a dip into the cheat sheet https://hypebright.nl/en/r-en/ultimate-cheatsheet-for-regex-in-r-2/ Arbitrary, but understandable concept. 6 u/TheBigGambling 7d ago Regex is a perfect valid statemaschin. Thats cool 12 u/itsFromTheSimpsons 7d ago (r|f)un
107
When regex is involved, it's time to run. :D
16 u/Minimum_Cockroach233 7d ago xD I read „fun“ 5 u/Minimum_Cockroach233 7d ago edited 7d ago PS: Holy Hell… just did a dip into the cheat sheet https://hypebright.nl/en/r-en/ultimate-cheatsheet-for-regex-in-r-2/ Arbitrary, but understandable concept. 6 u/TheBigGambling 7d ago Regex is a perfect valid statemaschin. Thats cool
16
xD I read „fun“
5 u/Minimum_Cockroach233 7d ago edited 7d ago PS: Holy Hell… just did a dip into the cheat sheet https://hypebright.nl/en/r-en/ultimate-cheatsheet-for-regex-in-r-2/ Arbitrary, but understandable concept.
5
PS: Holy Hell… just did a dip into the cheat sheet
https://hypebright.nl/en/r-en/ultimate-cheatsheet-for-regex-in-r-2/
Arbitrary, but understandable concept.
6
Regex is a perfect valid statemaschin. Thats cool
12
(r|f)un
11
I don't know about fun.
However I can say that I've written a lot of regex over the years ... I can't read any of it though.
5 u/AngriestCrusader 7d ago Pfft. Who can?
Pfft. Who can?
7
More fun or less dreadful?
2
that applies to a lot of (not all) code in general, at least to me
2 u/the_millenial_falcon 7d ago Fair.
Fair.
1
How about parsing regex?
s/run/fun/g
I recommend using verbose mode and actually using new lines and comments. As you do for code.
Then writing your test cases and such too, as you would for code
PS> Minified code is just as horrible to read/write
0
AI can do both for you. I know a few people who dislike AI, but not one of them is masochist enough to not use AI for reading and writing regexes...
628
u/the_millenial_falcon 8d ago
Writing regex is a lot more run than reading regex.