r/shittyprogramming • • Apr 15 '19

this good code? Is

Post image
308 Upvotes

51 comments sorted by

View all comments

Show parent comment

9

u/phail3d Apr 15 '19

Yeah, your code is more readable than the LINQ snippet. The comment could use some love though. Maybe just copy-paste your reddit commit from above there :P .

8

u/BlackDE Apr 15 '19

Maybe I'm gonna create an enum and use it as index. Then there won't be any confusion about the order.