154 karma · joined June 23, 2016
Before=systemd-user-sessions.service
This means that as long as systemd is trying to (re)start the service, nobody can log in. Which is a problem with infinite restarts.
It's still pretty easy to accidentally set up an infinite restart loop with the default settings if your service takes more than 2s to crash.
If you want to write out Dictionary<Guid, ILookup<int, List<MyEntity>>> instead of having it inferred then go for it I guess.
Operation.summary is typically derived from the documentation for an API operation, and should not be used as the operation title as it is far too long. Instead use the operationId and path.
I can't get it to render schemas for a bunch of my OpenAPI documents, and there are no error messages to guide me. Does this handle recursive schemas (which can never be fully expanded)?
It's yet another double down on object initializers instead of writing constructors and factories, and unlike using a factory you have to fully express the result type of the collection instead of having it inferred (they are "target typed", another feature that probably should not have been added).
Firstly you see analyses like these where the author goes "see, heat pumps work fine in cold climates, look at these success stories!", and then proceeds to list a bunch of places that aren't particularly cold. People think Norway is cold, but if you look at Wikipedia then the average daily low for Tromso (a random northerly Norgewian municipality) in January is -5.6C, with a record low of -18C. Compare this with Calgary, a relatively southerly prairie city with an average low of -13.2C and a record low of -44C.
The second problem is that they say "don't worry, if it actually gets cold it switches to resistive heat!" The problem here is that the extremes absolutely matter, because this is when demand is highest. If a prairie province/state switches everyone to heat pumps, then your grid had better actually be designed for everyone to be using resistive heat for weeks at a time, because that's exactly what's going to happen when you need it most.
To be clear you can get a long way by abusing EF's willingness to try and interpret arbitrarily complex expressions - it just provides zero tooling or guidance on how to build those expressions.
Or projections. It's possible to write a reusable projection for EF like so:
class MyTableProjection {
public static Expression<Func<MyTable, MyTableProjection>> Expression =>
t => new MyTableProjection {
Id = t.Id,
Str = t.Str,
Flag = t.Flag
};
public int Id { get; init; }
public string Str { get; init; }
public bool Flag { get; init; }
}
dbContext.MyTable
.Where(...)
.Select(MyProjection.Expression)
.ToListAsync()
But I have never seen anyone do this because it breaks the promise that you magically won't have to write any code or abstractions.1. Type safety/refactorability
2. Composability (can I reuse my queries)
3. Expressivity (can I generate the queries I want)
Of these, EF only solves the first, which is far and away the easiest of the three.
Composability in EF is possible via expression tree splicing, however it requires such a degree of discipline and insight that I have never seen anyone do it, or even any discussion around it.
Like almost everything in the .NET ecosystem, EF makes a bunch of promises that are fantastic for hello world, but are disastrous as your project grows.
val a = { val x = 2; x + 1 }
the syntax you are describing is just a function-valued block.As an example, some jurisdictions might declare individuals with single doses protected.
Another real example: the EU is unwilling to accept Covishield vaccinations, despite it being AstraZeneca/Vaxzevria manufactured in India.
The main difference is the minimum barrier to entry, however under PoS you have access to various pooling services, which simulate consumer scale mining (complete with the associated inefficiency).
As an example, any sufficiently powerful entity can temporarily and affordably commandeer computational resources with the intention of disrupting the chain.
Under PoS doing so would devalue your (presumably enormous) stake, so participants are at least incentivized to act in the interest of the chain.
I know a lot of people who spend way too much time trying to optimize supplements and other tiny details instead of throwing down and getting on with your life.
Edit: after reading other comments yours makes more sense, but I'd still be more worried about what's actually in a pre-work out beverage than over-exertion.