heaths, to rust
@heaths@fosstodon.org avatar

“Dev by a thousand cuts”

That’s often what feels like. I started learning C in the late 80s and BASIC before that. Since then I’ve become an expert in several languages and proficient in several others. I’m an experienced and though the rust compiler is by far the most helpful - and pushing other compilers to improve - there’s a lot of sharp edges in the grammar itself. Some other polyglots I’m getting into the language agree.

heaths,
@heaths@fosstodon.org avatar

@ekuber totally agree. But when we’re ready, I haven’t seen any good sources for guidance about perf. Flame graphs are nice, but knowing what to do first to avoid most problems - or how to fix code after finding problems - is important. #csharp, for example, has a lot of authoritative articles on performance, going into details of spans and such.

xoofx, to unity
@xoofx@mastodon.social avatar

Somes folks have been wondering what is happening with the .NET Modernization in Unity and the migration to .NET 8 and CoreCLR, so here is an update https://forum.unity.com/threads/unity-future-net-development-status.1092205/page-54#post-9848724 🤗

heaths, to CSharp
@heaths@fosstodon.org avatar
khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

Extension types for FINALLY!

I can create extension properties that feel natural in code.

maartenballiauw, to dotnet
@maartenballiauw@mastodon.online avatar

A fresh live stream is coming up! Oren Eini will be joining us:

📺 Building a Database Engine in C# and .NET
🗣 Speaker: Oren Eini

📅 Jun 18, Tue, 8pm EDT / 10am AEST / 5pm PDT
🤗 Open to all, welcome!


https://blog.jetbrains.com/dotnet/2024/05/16/oren-eini-building-a-database-engine-in-csharp-and-dotnet-june-18th-livestream/?utm_medium=social&utm_source=mastodon&utm_campaign=oren-eini-building-a-database-engine-in-csharp-and-dotnet-june-18th-livestream

darkcisum, to cpp
@darkcisum@swiss.social avatar

Cross-platform, cross-language development is quite tedious... 🙃

You need to wait for builds to finish, then test on three different OS with different ways to load things.

At least with a Windows machine, you get a Linux environment via WSL2 for free, although it doesn't launch via dotnet run.
And finally you also need access to macOS somehow.

But it's quite satisfying seeing the library build automatically on all the different configurations: https://github.com/SFML/CSFML/pull/249

#c

anthony_steele, to CSharp
@anthony_steele@dotnet.social avatar

Automating in code on commit with format, and .NET

https://www.anthonysteele.co.uk/HuskyAutoformat

When I wrote this about a month ago, I didn't geta round to linking it from the index https://www.anthonysteele.co.uk/

So, now I have.

This is detailed, step-by-step instructions of getting this set up, with screenshots to help with commands and outcomes. An "idiot's guide" if you like, because I was that idiot.

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.

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.

: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.

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.

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/

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

I don’t know if it’s just my memory playing tricks on me, but looks more noisy every time I look at it.

It's harder to visually parse the flow of a codebase.

Cowthulu,
@Cowthulu@mastodon.social avatar

@khalidabuhakmeh I agree. In the early days, the cleanness of & was one of its big selling points.

Now a lot of things have been added that might be nice in some situations, but definitely make it harder to read.

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

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

📢 Hey, folks! We are accepting presentations for .NET Days 2024. This is always a fun event, and you can submit talks of 30, 45, or 60 minutes.

As a presenter, you're not alone. We're here to support you every step of the way. You'll receive assistance from our team (including me and other advocates) to prep your talk, do dry runs, and receive feedback before the big day.

🙏 Boosts appreciated.

https://blog.jetbrains.com/dotnet/2024/05/02/jetbrains-dotnet-days-online-2024/

thejvmbender,
@thejvmbender@techhub.social avatar

@khalidabuhakmeh next year I want to talk about how I transition from to in 1 week and start writing in , thanks to you guys whoever put that intellij shortcut chooser option at the begining I felt like I did not change 😎

Here is the intro: I was happy with VS.NET(2004-C#-2 or something) at the begining then I needed to write java and used around 10 years then everyone moved to and I used it 7 years after that I moved to Rider....(I just need to spend more time and write more code)

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! 🥳

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.

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, 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

khalidabuhakmeh, to godot
@khalidabuhakmeh@mastodon.social avatar

🕹️ I wrote a tutorial to help you build a pong game using the latest version of and with .

🏓 I'm pretty proud of the guided part, as I was able to break down working in the Godot editor and then code, so the only bouncing back and forth is in the game of .

🧑‍🚀 Give it a try, and let me know what you think.

🙏 Boosts are appreciated :)

https://www.jetbrains.com/guide/gamedev/tutorials/rider-godot-pong/

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