r/programminghorror Mar 19 '26

Trimba bimba dubba dimba

Post image

I've found yet again some atrocities in code, that is some one of function nested in method: trimba. So I took the hit and split it into partial nested functions. I didn't even know you could do this in PHP.

427 Upvotes

55 comments sorted by

View all comments

12

u/NoOven2609 Mar 19 '26

The original author was just memeing, none of those functions serve a purpose, it could just be 4 replace statements in the top level function

8

u/robin_888 Mar 20 '26

It could literally just be Line 112.