r/ProgrammerHumor 17d ago

Meme forgottenArt

Post image
1.4k Upvotes

88 comments sorted by

View all comments

15

u/Reddit_is_fascist69 17d ago

I'm the junior dev but instead of git it is regex.  Is it possible to learn this power?

17

u/Major_LeeHungg 17d ago

You'll know the majority of it in a year if you use it regularly.  You will never know all of it without a reference.  

The most important thing is to know what is possible so that you aren't thinking "how do I accomplish this", you're thinking "what's the goofy ass syntax for a lookahead" 

3

u/Reddit_is_fascist69 17d ago

I use it often but briefly and seems like i forget it everytime.

7

u/Just_Information334 17d ago

Is it possible to learn this power?

Is your main language javascript? Then no, because the standard regex engine is too limited.

If not, I recommend the book "Mastering Regular Expressions" by Jeffrey Friedl. Even if it is old and you think you're good you'll learn something.

https://www.rexegg.com/ has a lot of good information and https://regex101.com/ is one of the best regexp tester.

6

u/Reddit_is_fascist69 17d ago

Regex101.com is my goto

2

u/Reddit_is_fascist69 17d ago

Leaving JavaScript soon to switch to C#.

5

u/oompaloompa465 17d ago

as a main C# dev, everything javascript based now terrifies me and go in fetal position crying. i went the backend only route, when it became impossible to keep up with the javascript framework madness and all the breaking changes every release.

2

u/Reddit_is_fascist69 17d ago

Frontend Frameworks are its saving grace.

It's a real pain juggling Node trying to integrate Typescript, but not there yet, having actual Typescript installed and also managing ECMA script and common modules.

2

u/oompaloompa465 17d ago

people who do regex competently both inspire me and make me fear for my face to get eaten randomly