VisualStudio

jonspark,
@jonspark@howdee.social avatar

Is C# development still tied to Windows? It's been a very long time since I looked and I’m curious what people's preferred development environment is…?

ggmueller,
@ggmueller@mastodon.social avatar

@jonspark Been developing for 2 years exclusively on Linux (PopOS) now.

Works very good for backend development, deploying via

is my IDE of choice on Linux.

arialdo,
@arialdo@mastodon.online avatar

Apparently, the fastest way to check if an enumerable contains at least 2 elements in #csharp is:

xs.Skip(2).Any()

Unbelievably faster than:

xs.Take(2).Count() == 2

or a foreach list with a counter.

infoq,
@infoq@techhub.social avatar

13 is here in preview!

Microsoft unveils notable updates including params parameter improvements, new extension types, and several performance and memory enhancements.

Dive into the details on 👉 https://bit.ly/4aHKuQJ

peterritchie,
@peterritchie@mastodon.social avatar

@khalidabuhakmeh @infoq I've wanted that since extension methods 😀 But, you can see them here: https://build.microsoft.com/en-US/sessions/689e5104-72e9-4d02-bb52-77676d1ec5bc?source=sessions I've seen demos of language features in the past that didn't make it to release, but 🤞🏽

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@peterritchie @infoq I wanted to play around with it and spike some thoughts and maybe evolve some of my thinking around certain concepts.

I’ve read the article, but I need to play with it directly. 😅

maegul,
@maegul@hachyderm.io avatar

Iceshrimp: A fediverse platform

Was just told (by @Subversivo ) about this: https://iceshrimp.dev/iceshrimp/iceshrimp.net

are rewriting the whole thing (a JS/Node / fork) in C# with Blazor for the frontend.

Cool to see. Should handle the performance issues that have plagued the *key forks and maybe provide a new general branch of fediverse platform.

What lang/stack isn't represented on the fediverse now? C++, Kotlin?

@fediverse
@fediversenews

mima,

@maegul

What lang/stack isn't represented on the fediverse now?

What about shell script ​:satrithink:​

maegul,
@maegul@hachyderm.io avatar

@mima

LOL ... I'm ready!

eldamir,
@eldamir@hachyderm.io avatar

Today, I wasted 2 hours debugging what I thought was very odd behaviour in #csharp until I learned that async Task and async void are two very different things, and now I am very angry about async void. Was about to ban its usage entirely, but this SO article was helpful in explaining how it can be useful and not just a foot-gun

https://stackoverflow.com/questions/12144077/async-await-when-to-return-a-task-vs-void

driggy,
@driggy@mastodon.gamedev.place avatar
eldamir,
@eldamir@hachyderm.io avatar

@driggy that’s a great reference. Thank you for that ❤️

cwoodruff,
@cwoodruff@mastodon.social avatar

Stay updated with the latest network programming knowledge in #CSharp and #DotNet! 📚 Check out the new RSS feed for "Beyond Boundaries - Networking Programming with C# 12 and .NET 8" for tips, updates, and expert insights.

Follow along at https://rssviewer.app/https%3A%2F%2Frss.app%2Ffeeds%2FvKGL7EwYiW9kGoW4.xml

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

Extension types for #csharp FINALLY!

I can create extension properties that feel natural in code.

cecilphillip,
@cecilphillip@hachyderm.io avatar

@khalidabuhakmeh I just saw that. Dunno how I feel about it yet

range_marten,
@range_marten@dotnet.social avatar

@khalidabuhakmeh amazing live coding sessions in tic-80: https://www.youtube.com/watch?v=9Qhg4zJLy4o

heaths,
@heaths@fosstodon.org avatar
anthony_steele,
@anthony_steele@dotnet.social avatar

Automating #formatting in #csharp code on commit with #dotnet format, #git and #Husky .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.

jukka,
@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.
#csharp #dotnet

cincura_net,
@cincura_net@mas.to avatar
poppastring,
@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,
@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,
@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/

cwoodruff,
@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. #csharp #dotnet #networkdev

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

devdigest,
@devdigest@mastodon.social avatar
khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

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

#dotnet

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.

glitchypixel, Spanish
@glitchypixel@mastodon.gamedev.place avatar

Hm is it me or there is some sort of obsession to constantly update a programming language to fill it with "stuff" and "features"

I'm noticing a clear trend for this in and , but I'm sure there are others

I mean people keep asking why C is still widely used. I'm pretty sure that one of the reasons is that the spec has barely changed in 50 years or so and it works

C'mon some programming languages are fine as they are, please don't keep crowding them unless absolutely necessary pls?

asperamanca,

@glitchypixel You can pretty much use C++ like we were living in 1998 if you please, and that's pretty cool. But in the meantime the additions make it possible to write the same programs more efficiently with better performance and safer too, and that's even cooler.

tess,
@tess@mastodon.social avatar

@asperamanca @glitchypixel this. I get that "the way you write programs becomes obsolete every three years" is frustrating, but at least C++ remains backwards compatible. Like you said, you can still code like it's 1990 if you really want. And all those old libraries also still work.

maartenballiauw,
@maartenballiauw@mastodon.online avatar

The "Collection was modified" inspection in #ReSharper is quite handy. Warns you about those accidental collection updates while looping over them, resulting in a runtime error. And can fix them automatically! #csharp #dotnet

video/mp4

lostprototype,
@lostprototype@mastodon.social avatar

An absolute BANGER of a release for Rider 2024!

Thank you @khalidabuhakmeh and co.

Lots of goodies in here, as always, happy to continue being a JetBrains toolbox subscriber.

Also, thank you for unbundling that pesky AI plugin. You did the good thing.

lostprototype,
@lostprototype@mastodon.social avatar

@khalidabuhakmeh - Oooh. Once I get my hands on it, I'll see if it needs any extra poking to use my Intel GPU on Linux.

If I pick up a new laptop this year, I'll do the same for any NPU it is likely to have.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@lostprototype You can download and install FLCC in Rider but the C# model is still being fine-tuned, so results may vary. That’s why we said “coming soon”, we’re not ready to say that it’s ready.

benjaminhirsch,
@benjaminhirsch@mastodon.social avatar

I would argue that Entity Framework Core (#csharp #dotnet) has the same pros and cons like any other ORM no matter what language.

Those ORMs looking appealing at first, but once you start doing more advanced things, they start to get in your way and getting slow.

Instead I use ADO.NET (Npgsql), Dapper and Fluent Migrator. Having the ability to write your queries in plain SQL and using Dapper for object mapping matches they way I do it in #php

bradwilson,
@bradwilson@mastodon.social avatar

I want to see if it's possible to replace runtime reflection in @xunit v3 with #Roslyn source generators (for better performance and to support NativeAOT), but I think I've already hit the first blocking point: no support for #FSharp? Only #CSharp and #VB? #dotnet

KirillOsenkov,
@KirillOsenkov@mastodon.social avatar

@bradwilson @xunit instead of Roslyn source generators you can have a regular MSBuild code generator that generates code during the build, and it can be any code and support C# and F# equally well. I often find that people use Roslyn source generators when all they want is any code generator.

mhutch,
@mhutch@mastodon.social avatar
maartenballiauw,
@maartenballiauw@mastodon.online avatar
eldamir,
@eldamir@hachyderm.io avatar

@maartenballiauw just what I needed. Thank you for this ❤️

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

What are some expensive CPU operations that can be done in #csharp and #dotnet? Something that makes the CPU sweat.

range_marten,
@range_marten@dotnet.social avatar

@khalidabuhakmeh Unrelated but just built my first blazor hybrid app to help a friend evaluate things.

range_marten,
@range_marten@dotnet.social avatar
soltes, Polish
@soltes@mastodon.social avatar

ZX Speculator is a cross-platform ZX Spectrum 48K emulator written in #CSharp using @avaloniaui https://github.com/deanthecoder/ZXSpeculator

smurthys,
@smurthys@hachyderm.io avatar

I have written C# top-level code before, but I'm obviously suffering a "brain freeze" right now: Why does this simple top-level C# statement say "The name 'Console' does not exist in this context", even though I'm compiling with .NET 7.x and .NET 8 (well past .NET 5 that top-level statements need)? 😳

Console.WriteLine("hello world"); //System.Console works

.NET 8: https://dotnetfiddle.net/aAPvYU
.NET 7.0.105: https://sigcpp.godbolt.org/z/3v3Y1Ecbn

Someone, please, set me right. 🥺🙏🏽

smurthys,
@smurthys@hachyderm.io avatar

@khalidabuhakmeh Indeed. Neither .NET Fiddle nor Compiler Explorer support implicit usings. IIUC they'd have to explicitly disable implicit usings, and that perplexes me. But then maybe Implicit Usings is somehow VS specific and that's how they aren't in place. 🥺

https://learn.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates#implicit-using-directives

Too bad, I was hoping to make 101 course examples, and offer a playground, as simple as possible. But the ceremonial "using System;" line will have to get into code.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@smurthys .NET Fiddle likely sandboxes Roslyn in a process and isn't a full blown project. It's understandable why it's not supported.

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