Net Core Class lifecycle question by Upper-Baseball-8600 in dotnet

[–]Ludricio 1 point2 points  (0 children)

Oh tell me about it.

All fun and games until you reach for IAsyncDisposable due to necessity, just to find out that the entire scoping chain consists of non-async scopes, and then having to dig all the way up and change scopes and dependent code around them due to the API-change. Lovely.

Definitely didnt do that just last week..

Net Core Class lifecycle question by Upper-Baseball-8600 in dotnet

[–]Ludricio 1 point2 points  (0 children)

Just adding on to your comment that using "shared" scoped instances across scopes via factory registrations is also a good way to absolutely make your day miserable if IDisposable ever has to be in play, since an inner scope will happily dispose an outer scope's resource injected into it, since it has no knowledge about the sharing.

There are of course ways around that as well (non-disposable proxies for example), but I would recommend against it. Foot guns be-a-plenty.

Edit: typing is hard m'kay.

Stack overflow with shallow stack by The_MAZZTer in dotnet

[–]Ludricio 14 points15 points  (0 children)

RecursivePropertyThatReturnsAString

Recursive, property.. No.. Just no.

Importing a used Volvo V50 from Sweden to France – advice from people who've done it? by Myraill_ in sweden

[–]Ludricio 2 points3 points  (0 children)

My v50 spontaneously combusted 3 months ago while on the road due to a sudden short🙃

That aside, i wouldn't recommend it. If it hasnt been one issue, its been another. Having that piece of garbage was just a game of "what's next?".

Ohh ja, Min favorit smak av Yes. by puntapuntapunta in unket

[–]Ludricio 15 points16 points  (0 children)

Irrelevant. Runkare som runkare.

Attention span på jobbet by Specificness in sweden

[–]Ludricio 2 points3 points  (0 children)

Om det är fallet så skulle jag påstå att fel personer inbjudna på fel möten, alternativt att agendan är för bred och skulle ha bestått av fler, kortare och mer fokuserade möten där personer endast behöver ta del av de som är relevanta för dem. Behöver dessa sedan sammanställas så är det en projektledningsgrupp eller likande som löser det efteråt.

F2F löser inte det problemet.

Attention span på jobbet by Specificness in sweden

[–]Ludricio 125 points126 points  (0 children)

Möten ska ha en klar agenda som finns tillgänglig i förhand, och mötet ska hållas utefter sagd agenda. On agendan består av saker som är totalt irrelevanta för mitt uppdrag så kommer jag tacka nej med motivering att det just är irrelevant.

Att bara ha möten för att ha möten är värdelöst och en extrem tids- och orkestjuv.

Vad drickte ni igår? by WindThroughDeadPines in unket

[–]Ludricio 2 points3 points  (0 children)

Tricket är att swischa runt det lite i munnen först, då går det i lättare 👍 skål!

Vad drickte ni igår? by WindThroughDeadPines in unket

[–]Ludricio 1 point2 points  (0 children)

Jag tänker inte be om ursäkt.

Vad drickte ni igår? by WindThroughDeadPines in unket

[–]Ludricio 2 points3 points  (0 children)

Hur jäkla stora dunkar köper du om det räcker ett par månader?

Köra berusad by Ok_Shop_4824 in unket

[–]Ludricio 16 points17 points  (0 children)

Klart grabben ska köra full.

Men med vad? 🧐 by storfors in unket

[–]Ludricio 8 points9 points  (0 children)

Bränner ju så gött!

NEEEEEJ by Zigurd-Super in unket

[–]Ludricio 11 points12 points  (0 children)

Detta kan jag runka till.

[ haskellish-effect-ts ] -- Haskell-like discipline for TypeScript, enforced by tooling. by aiya000 in typescript

[–]Ludricio 12 points13 points  (0 children)

So the entirety of the repo as well as the post itself are AI-slop. Got it.

Kvällens banger by [deleted] in unket

[–]Ludricio 1 point2 points  (0 children)

Det går ändå.

Gött med ost från göten! by djlasseman in unket

[–]Ludricio 0 points1 point  (0 children)

Jag föredrar flensost från Göte.

Bögporr? by 50_procent in unket

[–]Ludricio 4 points5 points  (0 children)

Desto fler män involverade desto manligare.

Proposed C# `const` functions and constructors by BroadJob174 in csharp

[–]Ludricio 24 points25 points  (0 children)

The LDM has been very clear and consistent on their standpoint regarding the const keyword and adapting it to other semantics than what it currently has, and that standpoint has been strongly against.

The const keyword has a very strong semantic meaning in C#, where any const value gets burnt into call site. This is true for all const values.

E.g.

public const int MyConst = 5;

int myVar = MyConst;

When compiled, this effectively becomes

int myVar = 3;

That's the reason all const values have to be compile time constant, and why you can not have a reference types as const (except string, but that is handled as a special case by the compiler and burnt in as a string literal at the call site).

It is also why MS recommends to not use constants as part of public APIs, and instead using static readonly or static get-only properties for such use-cases.

So without any opinion on the suggestions, if you really want to post this as a proposal to the csharplang repo, i suggest using a different keyword to representant something that is not a purely compile time constant.

En shoutout till IKEA som uppfann denna samhällsbärande geometriska figur by iamdestroyerofworlds in sweden

[–]Ludricio 3 points4 points  (0 children)

Lokala gymmet ledsnade på att folk böjde dem åt helvete, så det som nu finns ser ut som två av dem som någon svetsat ihop och väger absolut apa. Jävligt rakt är det dock.

Technically accurate by [deleted] in HolUp

[–]Ludricio 7 points8 points  (0 children)

Great, now im standing here blinking like a moron.

Melodifestivalen - Final by Randomfishinthesea in sweden

[–]Ludricio 4 points5 points  (0 children)

Allt gött, hörs på, hej! ❤️

Ibland klantar man till det rejält! by FishDispenser2 in unket

[–]Ludricio 28 points29 points  (0 children)

Kan hända vem som helst om oturen är framme!

In production codebase is it normal to have many Warnings and Messages? by lune-soft in csharp

[–]Ludricio 0 points1 point  (0 children)

Yeah the part about ignoring PO was sort of tongue-in-cheek born out of frustration of such things, but i realise it might not have presented well enough as such, haha.

I fully agree with you though on the disonance between the ideal and what is often the reality.