29 Replies
uh,
string.Join()
and a .Select()
?
Generally speaking, .ForEach()
method is kinda frowned uponWhy?
You can't really do anything with it's output since it's a
void
method, a regular foreach
loop works just fine, and I believe there are some performance concerns as wellYea but is the performance not going to get improved in .net 9? My prof has been talking about the fact that some thing like a
.first
wil get 1000x improvementEvery version of .NET does get performance improvements, true
Never heard anything specific to
.ForEach()
though
Never seen anybody use it in the wild either, tbhUnknown User•4w ago
Message Not Public
Sign In & Join Server To View
So pretty much avoid the
.ForEach()
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
Even a normal foreach loop?
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
Normal loop is fine
It's recommended, even
IIRC under some circumstances it's even faster than
for
?Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
?
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
No it's just something from school to get us used to Entity core and stuff
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
A console app? A website? A window app?
Like starting lectures about it how it can be used to generate code for us
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
Console app
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
Is there a reason to use var? or is that just a personal preference?
why write many letter when few letter do trick
Up to preference, though
Unknown User•4w ago
Message Not Public
Sign In & Join Server To View
I disagree
but this isnt the place so meh
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View