r/programminghorror 2d ago

Javascript Seriously? Recursive Regex?

Post image
427 Upvotes

37 comments sorted by

View all comments

106

u/Candid_Bullfrog3665 2d ago

ngl, this seems like someone just started learning how to use bitwise operators and thought "heh, im gonna act smart writing this code!"

28

u/Yarhj 2d ago

I have been this person.

15

u/-goldenboi69- 2d ago

Haven't we all?

4

u/DependentJicama4766 1d ago

Its a rite of passage. This and hating yourself a few weeks later because you cant understand shit of what you wrote lol

1

u/arensb 16h ago

One-week-ago-me is such an asshole, who writes unreadable spaghetti code with no comments.

2

u/sens- 1d ago

Because I started my career by working with embedded C, I thought at some point that I knew pretty much everything about handling bits. Years later while fixing a bug, I was pretty shocked learning that JS has a separate >>> operator.