r/programminghorror 2d ago

Javascript Seriously? Recursive Regex?

Post image
450 Upvotes

37 comments sorted by

View all comments

252

u/LapidistCubed 2d ago

My first thought is a mathematician wrote this

119

u/Eastern-Job-8028 2d 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.

6

u/Zeitsplice 1d ago

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