this post was submitted on 27 Jul 2023
417 points (95.6% liked)

Programmer Humor

33322 readers
804 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 74 points 2 years ago (1 children)

Finding my own old projects: "What the hell did this guy do and why does it work?"

[–] [email protected] 40 points 2 years ago (4 children)

that is me with regex that I wrote from scratch like 5 mins ago

[–] [email protected] 21 points 2 years ago (1 children)

“Finally! It works! I’ll never touch it again! I’ll just move it in a variable and–… WHYYYY???!?!11!”

[–] [email protected] 2 points 2 years ago

Its always the backslash before the forward slash. Every. Time.

[–] [email protected] 12 points 2 years ago (1 children)

That's why I like to include a comment with a link to an example on regex101.com.

[–] [email protected] 3 points 2 years ago

This is so smart. I'm stealing this.

[–] [email protected] 1 points 2 years ago

Every regex that I write ends up looking like line noise or the holy tome to summon Chtulu.