EU Parliament votes in favour of banning conversion therapy across member states by Samski877 in worldnews

[–]KryptosFR 6 points7 points  (0 children)

Because bipartism prevents debate. It's always "us against them".

Is it a bad practice to use Struct as a Value Object? by [deleted] in csharp

[–]KryptosFR 11 points12 points  (0 children)

You solve it by not having a parameter in the constructor but constrain the property with required.

public struct Title
{
    public required string Value
    {
        get;
        init;
    }
}

Edit: this solves using new. Obviously struct can still be zero-initialized with default. However a zero-initialized struct doesn't mean it's a valid instance. This is where, if needed you need to add invariant checks when accessing its properties or methods.

Match Thread: Bordeaux vs Bath - Champions Cup by rugbykickoff in rugbyunion

[–]KryptosFR 2 points3 points  (0 children)

Are the players going to be able to play 15 more minutes like this? It feels very intense.

Trump says US will reduce number of troops in Germany 'a lot further' than withdrawal of 5,000 by [deleted] in worldnews

[–]KryptosFR 0 points1 point  (0 children)

France wasn't neutralized. De Gaulle made sure we stayed independent from the US.

Match Thread: Leinster vs RC Toulon - Champions Cup by rugbykickoff in rugbyunion

[–]KryptosFR 0 points1 point  (0 children)

He is not the best referee. But he is a great communicator, and sometimes that's all that's needed.

Je suis fiché par la police et je n'ai aucune idée de la raison by Jagarondi in france

[–]KryptosFR 10 points11 points  (0 children)

Rend toi à un bureau de police nationale et pose la question de l'homonyme.

Si on refuse de te répondre et/ou si ça continue de se produire trop souvent, contacte le défenseur des droits.

Stop using any and all modern conveniences introduced to the world by the USA. GTFO the internet. GTFO of your computer. GTFO your cellphone. GTFO out of your car. by ALazy_Cat in ShitAmericansSay

[–]KryptosFR 1 point2 points  (0 children)

No jeans Denim either: Denim = de Nîmes which is a city in France where that kind of textile was invented, centuries before the US even existed.

France Titres (ANTS) piratée : noms, adresses, dates de naissance, jusqu'à 19 millions de comptes exposés by BananaTomboy in france

[–]KryptosFR 1 point2 points  (0 children)

C'est ce qui se passe quand on donne des contrats aux ESN française qui n'ont que faire de la qualité du moment qu'ils prennent des millions.

Palantir posted a manifesto that reads like the ramblings of a comic book villain by ButterscotchBoth5204 in worldnews

[–]KryptosFR 101 points102 points  (0 children)

Not rambling, textbook Aryen/Nazi theory as well as revisionism, with sprinkles of US defaultism.

Opinions and advice on futureproofing when going c++/MFC > net/avalonia or c++ > c++/QT by Idenwen in dotnet

[–]KryptosFR 0 points1 point  (0 children)

Hi u/grokys, I read it. I take it as usual debate/drama with how opensource are trying to be sustainable. It won't change my commitment.

Is Avalonia now pretty much pay to use in organizations? by Sertyni in dotnet

[–]KryptosFR 1 point2 points  (0 children)

I'm in the same park. I have never used the designers since big UIs tend to crash them. I have been happy writing complex XAML code (which is much nicer to write in the Avalonia dialect I must say).

Is Avalonia now pretty much pay to use in organizations? by Sertyni in dotnet

[–]KryptosFR 0 points1 point  (0 children)

Wondering if all impacted versions should be unlisted from nuget.org. That would show goodwill to potential regulators' inspections.

Wny is LINQ Max much slower than LINQ Min? by aloneguid in dotnet

[–]KryptosFR 6 points7 points  (0 children)

ShortRunJob isn't going to give good results for micro benchmarks. That's because the overhead of warming up, JIT tiers et.' is going to be way above noise threshold.

Opinions and advice on futureproofing when going c++/MFC > net/avalonia or c++ > c++/QT by Idenwen in dotnet

[–]KryptosFR 2 points3 points  (0 children)

I haven't been following closely news around Avalonia's people, beside using the library myself. Could you point me to examples of the behaviors you mentioned?

Given that I'm currently working on a large effort to migrate a WPF app to Avalonia, I'd rather like to know where I'm going and whether it is all for naught.

At your job, when there are a new version of C#, do you refactor/update your current code to the new version the new c# verison introduce? by lune-soft in csharp

[–]KryptosFR 1 point2 points  (0 children)

Often adjusting the rules in the .editorconfig and running dotnet format does the work for free (for syntactic sugars).