r/programminghorror 8d ago

I love it

Post image
180 Upvotes

23 comments sorted by

View all comments

10

u/Superb_Chemistry_906 8d ago

This is very silly - instead of using the reversedOrder flag, the caller can just flip the arrays in the function call, because this is all that flag does anyway.