nietras, to dotnet
@nietras@mastodon.social avatar

What options are there to improve Parallel.For runs when WorkerThreadStart is taking 70% of CPU usage?

jukka, to CSharp
@jukka@dotnet.social avatar

Just saw this C# rule, and I have to say I disagree: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1860

For the performance, sure, maybe, depending on the situation, but for readability, I find collection.Any() more readable than collection.Count() > 0.

cincura_net,
@cincura_net@mas.to avatar
poppastring, to CSharp
@poppastring@dotnet.social avatar

NuGet Commands in C# Dev Kit -

You can now manage your NuGet packages directly from Visual Studio Code using the new commands in the command palette.

#csharp #devkit #vscode :vscode: :csharp:

https://devblogs.microsoft.com/nuget/announcing-nuget-commands-in-c-dev-kit/

andrewlock, to CSharp
@andrewlock@hachyderm.io avatar

Blogged: An introduction to primary constructors in C#12

https://andrewlock.net/an-introduction-to-primary-constructors-in-csharp-12/

In this post I introduce C#12 primary constructors, describe the various ways to use them and how they work behind the scenes.

#csharp #dotnet

cwoodruff, to CSharp
@cwoodruff@mastodon.social avatar

I'm working on chapters 7 and 8 of the C# Networking Book. I hope to have Chapter 7, Data Serialization Techniques, out early next week and Chapter 8, Network Performance Optimization, out the following week.

With Chapter 8 finished, I will have the basics done.

#csharp #dotnet

https://csharp-networking.com/

WetHat, to HowTo
@WetHat@fosstodon.org avatar

Advanced C# Tricks for Developers 🔥 | Medium

Ten methods to boost code efficiency and readability for experienced developers.

https://medium.com/@kmorpex/10-advanced-c-tricks-for-experienced-developers-26a48c6a8c9c

bradwilson, to dotnet
@bradwilson@mastodon.social avatar

I spent roughly six hours today writing a new @xunit sample that inverts parallelism: tests are grouped by namespace, which are run sequentially; tests within a namespace are all run in parallel (even tests from the same class). Came from a question someone posted this morning.

https://github.com/xunit/samples.xunit/tree/main/NamespaceParallelization

cwoodruff, to CSharp
@cwoodruff@mastodon.social avatar

Excited to unveil the latest chapter in my C# book on Error Handling and Fault Tolerance Strategies! Dive deep into advanced techniques to elevate your network programming, ensuring your systems and applications are more resilient and user-friendly.

https://csharp-networking.com/chapter06/

devleader, to dotnet
@devleader@hachyderm.io avatar

Check out my C# course that will guide you through more advance topics including things like OOP and asynchronous programming!

Perfect for advancing your C# skills beyond the basics!
https://dometrain.com/course/deep-dive-csharp?affcode=1115529_nl-teyzg

janriemer, to CSharp

Collection expressions in 12

https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/collection-expressions

Basically allows to init collections with "[" and "]" syntax.

It allows you to e.g. do this:

IEnumerable<int> elements = [5, 12, 42];

devdigest, to CSharp
@devdigest@mastodon.social avatar
xoofx, to dotnet
@xoofx@mastodon.social avatar

Hey, late Saturday night, but I just released a new .NET library https://github.com/XenoAtom/XenoAtom.CommandLine Finally a lightweight command line parser compatible with NativeAOT, a direct fork/descendant of NDesk.Options/Mono.Options supporting all its features - and more! and the easiness of using it! 🥳

#dotnet #csharp

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@xoofx very cool. I'd love to read a blog post about it. 😁

xoofx,
@xoofx@mastodon.social avatar

@khalidabuhakmeh Ah, yeah, having enough time to code in my sparetime for all the things I want to do is already challenging, so blog posts are even harder! 😅

aeveltstra, (edited ) to Java
@aeveltstra@mastodon.social avatar

Reflection considered harmful

In the and OOP programming languages, is used to not only review an object’s private fields and methods, but also to access and change them.

This is used for instance by large libraries and frameworks, by preprocessors, and of course by the standard library itself.

It is dangerous because it can break a class’ definition of what should be private and inaccessible.

Every programmer should know.

infosec812,
@infosec812@foojay.social avatar

@aeveltstra
Which is why Java is creating better APIs for managing this in newer versions of the language and compiler.

aeveltstra,
@aeveltstra@mastodon.social avatar

@infosec812 Awesome! Looking forward to it.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

🔮 We’re doing a in the FUTURE today with Chris Simon. (Actually, he’s just in Australia, but he’s a full day ahead!)

👨‍🏫 He’ll teach us about , , and . Please come hang out in the chat. It's always so lively and fun.

👍 Boosts appreciated.

https://www.youtube.com/watch?v=gXz7gKtRVpM

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@davidwengier I gave your YouTube video a thumbs up, but we need to talk about this alignment strategy.

KirillOsenkov,
@KirillOsenkov@mastodon.social avatar

@khalidabuhakmeh @davidwengier yeah, don't do that...

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I’m hosting Chris Simon on a to discuss , , and . Not to be confused with D&D, which is about wizards, dragons, and dungeon masters… wait it's pretty similar.

https://www.youtube.com/live/gXz7gKtRVpM?si=Uc_kn-GzdEIvSR_p

jitterted,
@jitterted@sfba.social avatar

@khalidabuhakmeh Awesome!

If JetBrains ever wants someone to do a similar talk for Java and IntelliJ IDEA, let me know (I livestream doing exactly that 10+ hours a week). 😁

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jitterted @maartenballiauw might be interested.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • thenastyranch
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • slotface
  • modclub
  • everett
  • Durango
  • rosin
  • cisconetworking
  • tacticalgear
  • khanakhh
  • vwfavf
  • ngwrru68w68
  • Leos
  • normalnudes
  • ethstaker
  • tester
  • cubers
  • osvaldo12
  • anitta
  • provamag3
  • JUstTest
  • All magazines