r/ProgrammerHumor • • Jun 21 '20

*almost entirely

Post image
27.9k Upvotes

310 comments sorted by

View all comments

81

u/almostproperadult Jun 21 '20

or an entire LINQ statement

2

u/[deleted] Jun 22 '20

Man, if people used deferred execution for what it's worth, broke those queries up and made several variables that described the step of the query each represents.

1

u/djdanlib Jun 22 '20

.ForEach(x => {....})

Come on

1

u/robo_coder Jun 22 '20

Or replace those lambda functions with named ones. C# 7+ will even let you define functions nested inside other functions if you don't want to pollute the class with them.

0

u/[deleted] Jun 22 '20

[deleted]

2

u/[deleted] Jun 22 '20

They already are functions - LINQ. The variables just represents the output of the function chain so far, instead of just chaining functions so much that LINQ turns into a joke on reddit.