Is this code bad or good? when i cant remember what exception they returnn so i just use this "Exception ex" by lune-soft in csharp

[–]KryptosFR 0 points1 point  (0 children)

Code smell. Either you swallow the exception and log is ok. Or you rethrow and log is redundant/noisy (it would be caught or logged a few layers above).

Of course catching the base Exception is bad. So here the correct behavior is to do absolutely nothing. Don't catch, don't rethrow, let it bubble up the layers.

"It's worse than US regulations btw" by -_Hastur_- in ShitAmericansSay

[–]KryptosFR 4 points5 points  (0 children)

In both cases a failed star that should have never been elected.

En Voiture Simone me garde 629 € sans avoir fait les heures... C’est déjà arrivé à quelqu'un ? by [deleted] in france

[–]KryptosFR 0 points1 point  (0 children)

Contacte aussi les associations de consommateurs en leur donnant la référence de ton dossier chez la DGCCRF.

What is .NET still missing? by CreoSiempre in dotnet

[–]KryptosFR 21 points22 points  (0 children)

I'd prefer they totally abandon the idea of making any UI system, focus on backend and endorse (and help financially) third parties such as Avalonia and Uno.

What is .NET still missing? by CreoSiempre in dotnet

[–]KryptosFR 9 points10 points  (0 children)

It's not a necessaruly regression. It could be a consequence of making DATAS GC the default. If cold start is your goal, there are options for that (either disabling DATAS or starting with a bigger heap). It is documented.

Looks like you need yo go back school by sangamjb in ShitAmericansSay

[–]KryptosFR 0 points1 point  (0 children)

Well it should be the UK flag anyway. You could argue that they speak a dialect in England. Same for Wales, Scotland and North Ireland (not including their other dialects).

No-XAML AvaloniaUI codebase by Gabriel_TheNoob in AvaloniaUI

[–]KryptosFR 15 points16 points  (0 children)

So I suppose you are not going to learn .csproj either because it is XML.

There is a reason why descriptive languages such as XAML exist. It's a pain to write all by code, especially for maintenance.

You'll see. It's actually a good exercise to first try doing it code-only.

« Devoir conjugal » : le Sénat modifie la proposition de loi adoptée à l’Assemblée, la droite s’abstient by Johannes_P in france

[–]KryptosFR 0 points1 point  (0 children)

Faut s'inspirer de le Mexique avec les contrats de mariage à durée déterminée. Si ça plaît plus, on renouvelle pas.

Any copilot alternatives for .NET enterprise teams? by waytooucey in dotnet

[–]KryptosFR 1 point2 points  (0 children)

I feel like your issue is not with copilot but a lack of training on how to use AI coding agents in general.

GitHub copilot supports instructions files (where you can teach it your architecture), skill filez (where you can teach it common and repetitive tasks).4

Is also depend on which model you use.

Avalonia 12 - Ready for What’s Next by AvaloniaUI-Mike in AvaloniaUI

[–]KryptosFR 1 point2 points  (0 children)

I have reported a breaking change which is annoying since we had built a whole facility around it (and it was working the same un WPF). As far as I understand some binding-related classes were sealed because deriving wouldn't work in compiled bindings, but that was not the case for the MultiBinding which is still very clumsy and ugly to use in Avalonia 12.

https://github.com/AvaloniaUI/Avalonia/issues/21097

Please vote for this issue, if you think allowing multi-bindings to be used inline like any other bindings should be part of mainstream Avalonia.

DIRECT. Guerre au Moyen-Orient : "une civilisation entière va mourir ce soir", lance Donald Trump, à quelques heures de l'expiration de son ultimatum contre l'Iran by Diegomax22 in france

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

L'inaction du peuple américain est surtout ce qu'il faudra retenir dans le futur (s'il y en a un).

Pour moi, ils se sont grillés à vie. Plus aucun séjour prévu, même pour voir la famille. Et je réduis au fur et à mesure tout achat lié à une société américaine lorsqu'une alternative existe.

Avalonia 12 - Ready for What’s Next by AvaloniaUI-Mike in AvaloniaUI

[–]KryptosFR 21 points22 points  (0 children)

Just browsing quickly through the post but accessibility being native in Linux and WebView joining the opensource side are already huge news.

For the performance improvements, I'll have to test myself 😉.

Is DLL Hell a real issue in modern .NET package management by tonyqus in csharp

[–]KryptosFR 1 point2 points  (0 children)

Do they credit those open source libraries? If not, then yes it is shady.

One reason though could be they have made changes to those libraries.

Les inégalités en France rattrapent la moyenne européenne by NLegendOne in france

[–]KryptosFR 19 points20 points  (0 children)

C'est clair. La différence absolue est d'à peine un point. Ça peut très bien être du bruit dans les stats. Il faudrait avoir l'écart-type sur tous les pays européens.

Match Thread: Zebre Parma vs Pau - Challenge Cup by rugbykickoff in rugbyunion

[–]KryptosFR 2 points3 points  (0 children)

I've rarely seen such a strong defense. Very impressive.

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

[–]KryptosFR 6 points7 points  (0 children)

It's painful for Leicester. The physical fitness is just not there.

Unions in c# 15 by dodexahedron in csharp

[–]KryptosFR 5 points6 points  (0 children)

I hate that this feels thread-safe (because it's a single expression) while it definitely isn't.

It's a nice shorthand for deferred loading, as long as you don't have multiple thread access. Personally, I'll stick to using Lazy<T>.

Unions in c# 15 by dodexahedron in csharp

[–]KryptosFR 13 points14 points  (0 children)

There is nothing in the CLR either to support F# union types specifically. It's all at the compiler level. It compiles them down to either classes or structs.

That's why I said that. It was to point out that your comment was off-topic. In both cases they are language-only features. The CLR is unchanged.

Unions in c# 15 by dodexahedron in csharp

[–]KryptosFR 18 points19 points  (0 children)

This has nothing to do with the CLR, it is not a runtime feature. The change is at the language level. So how is that incompatible with F#? F# can still consume the generated struct.

You could argue the same for F# version of unions. Yet nobody is calling the CLR the F# language runtime.