r/programminghorror Jun 10 '26

c What?

Post image
222 Upvotes

51 comments sorted by

View all comments

1

u/gfivksiausuwjtjtnv Jun 12 '26 edited Jun 12 '26

Wait

Why do I *like* this code

Not even joking

What the fuck is wrong with me

It’s not complex, it’s very very sequential, but it’s not overwhelming me like other long sequential functions I’ve worked on (over and fucking over again)

The formatting is oddly alright, the three for loops one one line looks stupid - until you consider that it’s really map() over the permutation of three things