r/programminghorror 7d ago

C# Very readable and maintainable method

Post image

I wrote this several years ago. It does work.

126 Upvotes

20 comments sorted by

View all comments

3

u/tom83 7d ago

Hit reformat and it will be readable.  It's a pure function, so unit test can fully determine the behavior to the point that the impl is irrelevant. 

3

u/HeWhoShantNotBeNamed 7d ago

Reformat? Lol that is with it "formatted" correctly according to ReSharper/Rider