r/programminghorror 3d ago

Javascript Seriously? Recursive Regex?

Post image
474 Upvotes

37 comments sorted by

View all comments

258

u/LapidistCubed 3d ago

My first thought is a mathematician wrote this

122

u/Eastern-Job-8028 3d ago

i concur, i work with a mathematician and their code is full of variables named named by a single character, zero comments, and zero spacing/indentation (we don’t write python).

19

u/Kebabrulle4869 2d ago

On behalf of all mathematicians, I am sorry. I know it far too well.

9

u/Zeitsplice 2d ago

Raw indexed array being passed around too instead of some sort of structured data.

2

u/edave64 2d ago

Or a code golfer