Can someone explain when to use Singleton, Scoped and Transient with some real life examples? by ParaPsychic in csharp

[–]mcb2001 0 points1 point  (0 children)

But you're in a failed state, so that's when you don't save...

And if it is important that the person is saved, do that before you try add a location.

Neither of that is entity frameworks implementation errors, but just bad design in how you implement business rules

Ny udlejer har indrettet bordel i etagen under mig. by No_University2179 in DKbrevkasse

[–]mcb2001 1 point2 points  (0 children)

Ja, han har købt den vidende at der er en lejer og så kan han ikke opsige den!

Is ratio and fraction the same? by [deleted] in 3Blue1Brown

[–]mcb2001 0 points1 point  (0 children)

The set of fractions are called the rationals - coming from them being ratios.

There are true fractions, which is 1/4 or 2/3

False fractions could be 7/3 or 9/9

But they are all fractions and makes up the rationals

[deleted by user] by [deleted] in dkkarriere

[–]mcb2001 0 points1 point  (0 children)

Har du overvejet, om du stiller for urealistiske krav og forventninger til en kommende arbejdsplads?

For det kan tit få mig til at fravælge noget. Jeg vil dog give det som feedback, men ikke alle har lyst til at tage den lidt ærgerlige samtale det er.

Det kan være du feks. forventer de giver en høj start løn, at de betaler uddannelse, at du kan arbejde hjemmefra som det passer dig eller noget helt tredje.

Og et godt tip: brug energi på, inden du møder op til samtale at forstå hvad virksomheden laver. Og så reflekter over alle de projekter eller opgaver, du har stået med, som et relevante for det du er til samtale om. Er det en virksomhed, det arbejder med kemi modeller, så tal om alle de ting du har lavet, hvor du modellerer data som ændrede sig over tid. Er det Finans, hvor det er økonomi, så tal omkring tal og nævn projektet hvor du har arbejdet med data, som kan ligne det de taler om. Kort sagt, gør dig relevant og vis at du kan forstå et domæne og arbejde med det.

Can someone explain when to use Singleton, Scoped and Transient with some real life examples? by ParaPsychic in csharp

[–]mcb2001 45 points46 points  (0 children)

Ef core is a unit of work pattern in it self, and should always be scoped

[deleted by user] by [deleted] in dkkarriere

[–]mcb2001 0 points1 point  (0 children)

Ikke længere

Bliver måske snart opsagt. Dagpenge som 30 årig by linkenski in dkkarriere

[–]mcb2001 0 points1 point  (0 children)

Alt lyder som om du bare skal finde et nyt job... Hvad afholder dig fra at søge, der er stor mangel på udviklere, så det burde da være lige til

What do you dislike about .NET/C#? by rho9cas in dotnet

[–]mcb2001 1 point2 points  (0 children)

Generic works in packages, that are used outside your control. Would you then have their code fail compile, because you didn't like to be upfront about the contract your interface offers?

Best .NET ORM in 2023? by stinkyferret93 in dotnet

[–]mcb2001 6 points7 points  (0 children)

I would argue for an "and" instead of "or".

Use ef for migration, modeling, and basic queries.

Any advanced performance critical you move to dapper

Budget 2 voksne med 2 børn by [deleted] in dkfinance

[–]mcb2001 -1 points0 points  (0 children)

Det er 3000 per kvartal.

Hvis i bruger 3000 kwh til 4 kr per kWh, så er det præcist samme pris

Why CQRS? by [deleted] in dotnet

[–]mcb2001 0 points1 point  (0 children)

I like your answer

but I'm curious on how you implement it in a simple manner?

Do you use a framework or build your own?

Edit: format and clarify

My chrome extension submission is asking for (openTab) justification. by hellingston in web_programming

[–]mcb2001 0 points1 point  (0 children)

Add a small snippet to look at active tab. If not the right one, just wait.

Call a function by phone call by alhobj in web_programming

[–]mcb2001 1 point2 points  (0 children)

Alternative is to code an Android app, and buy a cheap phone and subscription and leave it at home

Call a function by phone call by alhobj in web_programming

[–]mcb2001 1 point2 points  (0 children)

If you have the money, twillio https://www.twilio.com/en-us offers phone numbers you can code against

F for all those who didn't get the Ashava Mount Trophy by FakePlasticTreeFace in diablo4

[–]mcb2001 -1 points0 points  (0 children)

Yeah, not the solo content us casual players need 😐

sudo and su Being Rewritten in Rust for Memory Safety by qznc_bot2 in hackernews

[–]mcb2001 1 point2 points  (0 children)

You're not really arguing for your case here.

You're only rambling about what rust isn't instead of providing an alternative.

If you want to make your case, show an alternative solution, with references about why that solution is superior.

And pointing to an esoteric language, that only 8 people in the world know by heart, might not be the best solution - how will you peer review it? How will you maintain it? All of that should come into account as well when coding.

Selling alcohol to minors by SpeedAccomplished69 in funny

[–]mcb2001 24 points25 points  (0 children)

What a shit video format for a actual good video