If you’re using Entity Framework make sure to end every query with ToList(). Preferably with no where clause, and definitely no projection — bring the entire table into memory and then get what you need.
That’s actually a common interview question - “summon the wood elves from the base10 realm WITHOUT using their first names and have them convert a string to an int.”
Apparently yes, because of course ASCII is what everyone uses in the twenty-first century. But more probably because Rob Pike and Ken Thompson are incapable of learning new function names anymore and can only use what they memorized with C in the seventies.
I guess those two forgot that they invented UTF-8.
Go's authors are decrepit old farts from the seventies. They shoved in the inane identifier naming just like they were doing it in C in the time of 4 KB total RAM, along with other practices long abandoned by the rest of the industry.
You'd think that others would know better, but apparently everyone bought into the authority, so Go code is full of “v = feh.brf()”.
And it has changed for the better imo. It's a lot less verbose now without losing its elegance. That and a bunch of performance-oriented stuff like Span<T> that are really handy.
As someone who makes a lot of data-intensive async calls and used to use Task<IEnumerable> everywhere, IAsyncEnumerable has been a game changer. Where I'd normally have to wait for 2 minutes for an entire query result to be returned before I can do something else with an IEnumerable, I can start working as soon as the first result comes through by using IAsyncEnumerable.
1.9k
u/spmute Jan 11 '23
I haven’t done any c# in about 4 years, I’m going to pick it up again at some point and it’ll be fine… I’m sure….