array, to dotnet
@array@fosstodon.org avatar

Any developer in the room? I want to start learning it, and I'm having a bad time on what to choose for starters. Taking into account that I'm on Linux, can I really do that? And do I have to use Mono, .NET, anything else? And, C#, Visual Basic, both, neither? I'm a bit confused. Thanks! :)

peterdrake, to gamedev
@peterdrake@qoto.org avatar

Capitalization in C# / Unity is an infuriating minefield.

Microsoft and Unity offer slightly different standards and then don't consistently follow them.

There is no entry for "capitalization" in the index for the 1000-page C# 10 in a Nutshell. There is some advice under "identifiers", but it differs from what is given by the previous two sources.

Many sources want to capitalize private and public fields differently. Why would you do that?!

Unity adds spaces and changes the capitalization when displaying class and field names.

If you refactor a name, Unity bloats your code with a FormerlySerializedAs attribute.

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

Folks will have to update their “find the syntax issues in this C# code” interview questions thanks to 12. 😅

wagesj45, to CSharp
@wagesj45@mastodon.jordanwages.com avatar

Can a explain to me what the fuck this is? I've been out of the daily grind for a while now, but is it seriously not allowed to just declare a string property on a class? It's a string. A string is nullable. Why do I have to declare the string nullable? Am I losing my mind? Am I the now? :boomer: :boomer: :boomer:

The suggested "fix" public string? Description { get

fell, (edited ) to programming
@fell@ma.fellr.net avatar
khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar

This a unit test suite for a DateTime Converter, but do you notice what’s missing?

breakpointshow, to dotnet
@breakpointshow@mastodon.social avatar

🎙️🚀Get ready to explore the uncharted territories of .NET in the latest episode of "The Breakpoint Show" podcast! 🎧 In Episode 4, we'll be unraveling "The Missing Parts of .NET" 🕵️‍♂️🌐.

https://www.breakpoint.show/podcast/episode-004-the-missing-parts-of-net/

ramsey, to php
@ramsey@phpc.social avatar

This article is all about how things are looking great for hiring Laravel devs in 2024, and I’m not seeing it.

I’ve been job-searching for 3 months, and very, very, very few of those jobs are decent-paying / jobs. Sure, PHP/Laravel jobs exist, but most (anecdotally) pay far less than the rate others are willing to pay for , , , , , , and developers.

The industry does not value the output of PHP developers.

https://laradir.com/blog/why-laravel-could-see-a-huge-rise-in-adoption-in-2024

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

This is interesting, especially as someone who does . Maybe I should learn some , , or .

JamieMagee, to dotnet

The result of the .NET green thread experiment is here:

https://github.com/dotnet/runtimelab/issues/2398

khalidabuhakmeh, to programming
@khalidabuhakmeh@mastodon.social avatar

You'd think being run by a single mega-corporation would lead to brand consistency. Nope.

C# logo
C# logo
C# logo

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

I was hoping that records, when using the “with” keyword, would copy reference types rather than point to the same instance in memory.

I think this is a semantic failing of the keyword.

wagesj45, to windows
@wagesj45@mastodon.jordanwages.com avatar

Does anyone still use WinForms unironically? Everyone seems to have moved on to XAML for C# projects, be it WPF or Avalonia or Maui or whatever. I've written applications in all of them (except Maui) but I just don't like the new ones like WinForms. It feels better. It makes more sense. Maybe I'm just too stupid for all the binding nonsense. Or too boomer. :boomer:

Am I alone here? Do any of you c# have opinions on this beyond "old bad, new better"?

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

🆕 12 collection literals coming in 8.

📚 You can initialize a collection, but, BUT! You have to use target-type declarations. You can also use the “.." operator to spread one collection into another.

🤔 What do you think? Read more here: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-12.0/collection-expressions

bitbonk, to programming
@bitbonk@mastodon.social avatar

The code that needs to be written to generate complex C# code with source generators becomes hard to read and maintain very quickly.

Wouldn't it make sense to have some sort of templating engine, like Razor or Mustache, but for C# source code?

Maybe it even already exists?

eldamir, to CSharp
@eldamir@hachyderm.io avatar

Looking into the ecosystem after spending a decade on

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

This sounds outlandish, but it would be neat in if you could “name” Func variables and return values.

This would give tooling and developers an idea of what to expect when constructing a lambda.

khalidabuhakmeh, to dotnet
@khalidabuhakmeh@mastodon.social avatar
hassanhabib, to dotnet

Just released: CleanMoq
This is a forked repo and release from the original Moq.NET library
This release will contain ALL the changes from the last merge from Moq.NET without the spyware that was added recently
Moq is published under BSD which permits the modification and redistribution of the library with or without consent from the copyrights owners.
Enjoy CleanMoq!

https://www.nuget.org/packages/CleanMoq/

jhx, to linux
@jhx@fosstodon.org avatar

What is your cross platform toolkit of choice?

I target and (10/11)
( )

Saw that would fit the bill 🙂 (From what I read)

Looking for some experiences 🙂

Languages: #C++

Note: For I use or

khalidabuhakmeh, to rust
@khalidabuhakmeh@mastodon.social avatar

Can someone explain lifetimes to me? Coming from my brain sees generics.

bradwilson, to CSharp
@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

dreamykeaver, to linux
@dreamykeaver@chitter.xyz avatar

Are there reasons why C# is not used much for software ?

Can someone explains me I'm genuinely confused. I haven't heard of Mono a while ago.

bradwilson, (edited ) to dotnet
@bradwilson@mastodon.social avatar

Sad realization for today: using formatted strings hides issues that CA1305 would find.

Overly simple example:

$"{myValue}"

vs.

myValue.ToString()

These are equivalent. Both (usually) implicitly and silently use CultureInfo.CurrentUICulture, but only the latter can be flagged as needing an explicit culture to ensure you're getting the value the way you want.

This kind of makes me want to rip out all instances of formatted strings now.

khalidabuhakmeh, to CSharp
@khalidabuhakmeh@mastodon.social avatar

12 lets you omit the body of an interface or type declaration, as an empty body is redundant.

I sense a great disturbance in the force like a million EditorConfig maintainers were shocked into silence all at once.

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