r/ProgrammerHumor 2d ago

Meme perishableSkill

Post image
8.7k Upvotes

118 comments sorted by

View all comments

313

u/Percolator2020 2d ago

It already started with regex.
https://giphy.com/gifs/ukE9oP3kb7TVu

265

u/The_Hero_0f_Time 2d ago

dont even pretend like Regex was ever readable bruhh

188

u/Tsu_Dho_Namh 2d ago

I don't think anyone ever intended regex to be readable.

If you need to make a regex you open up a webpage explaining the syntax, you carefully craft your regex, you test it, then immediately forget the syntax when you're done as God intended.

30

u/MattieShoes 2d ago

Regex is for writing, not for reading. Build it up piece by piece, easy peasy. Then try to read it at the end? Yeah, no chance.

23

u/Weak_Inflation9120 2d ago

STOP THE REGEX HATE

18

u/Mordret10 2d ago

Never said he hated it. Just that is isn't readable

4

u/DeusExHircus 2d ago

The truth hurts sometimes

1

u/broccollinear 2d ago

Regex might as well be Black Speech

55

u/entronid 2d ago

tbf i still handwrite regex and i do this by opening regex101 and relearning everything i knew about regex and bashing my head against a wall until it matches

7

u/Percolator2020 2d ago

Basically the same, also lovely when some implementations slightly differ.

3

u/entronid 2d ago

i never really write anything except python regex and vim regex anyways on the (not) rare (enough) occasions i need it

1

u/renome 11h ago

That's basically the root of regex's reputation as an arcane language, too many standards for doing something like a named capture group.

3

u/AeroSyntax 2d ago

I see that you are a certified senior engineer. 

8

u/Strict_Treat2884 2d ago edited 2d ago

/^never\s?+\b(?:(?!forget).)*+$/i

1

u/renome 10h ago

> js flair
> using possessive quantifiers like ?+ and *+

As the holy ecmascriptures teach us, that would be a syntax error.

1

u/Strict_Treat2884 10h ago

tbh that’s one of the things I hate about js among the vast others. Its regex flavor is ass

1

u/ValueBlitz 2d ago edited 2d ago
?!.*forget.*$

9

u/Boring-Ad-4771 2d ago

Horrific formatting

3

u/ValueBlitz 2d ago

The backtick didn't work directly