Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
What the fuck is going on ???
How the "intermediate" c# developers can't do a simple null safe average of even numbers in an array ?!
Why they still write loops and shit (without any nul checks ofc) while it can be done in 1 line :
array?.Where(x => x % 2 == 0).DefaultIfEmpty(0).Average() ?? 0
WHY ? Even Junior c# dev is supposed to know that shit
rant