this post was submitted on 26 Apr 2025
974 points (99.0% liked)

Programmer Humor

22836 readers
201 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] henfredemars@infosec.pub 101 points 2 days ago (4 children)

I've actually found C# quite pleasant to develop with, so long as I didn't have to worry about targeting non-Windows platforms.

[–] kogasa@programming.dev 49 points 2 days ago (3 children)

It's fully cross platform with .NET Core and later.

[–] Mihies@programming.dev 15 points 2 days ago (1 children)

It was even before through mono/xamarin

[–] Kusimulkku@lemm.ee 2 points 1 day ago
[–] Ziglin@lemmy.world 4 points 2 days ago (4 children)

What does fully cross platform mean? It sounds very vague and a lot like an exaggeration.

[–] kogasa@programming.dev 11 points 2 days ago

The standard .NET C# compiler and CLI run on and build for Windows, MacOS, and Linux. You can run your ASP.NET webapps in a Linux docker container, or write console apps and run them on Linux, it doesn't matter anymore. As a .NET dev I have literally no reason to ever touch Windows, unless I'm touching legacy code from before .NET Core or building a Windows-exclusive app using a Windows app framework.

[–] Rookeh@startrek.website 4 points 2 days ago

Well, I'm currently writing a service and frontend, both in C# (Blazor for the UI), and using docker-compose to build and deploy them to a Raspberry Pi running Linux. So not only cross-platform, but cross-architecture as well.

This is not a new thing either. Since .NET Core was released almost 10 years ago, it has supported cross platform development.

[–] adminofoz@lemmy.cafe 2 points 1 day ago

I feel the pain in your comment.

I too have been burned by "cross-platform" tooling. What I've learned is the more complex your project is, the less likely it is to have simple cross compliation.

But with that huge caveat, I'll say I've had a better time doing cross comp on dotnet than I have rust. Either of them are infinitely better than learning cmake though. That's definitely just my amateur take though. I'm sure smarter people will tell you I'm wrong.

[–] wiezy_lrwi@programming.dev 0 points 1 day ago (1 children)

The sdk and runtime are available on all operating systems. I have used nvim on Ubuntu (wsl) to write and execute C#.

[–] Ziglin@lemmy.world -1 points 1 day ago (2 children)

See all Operating Systems is a steep claim, that is how I originally misunderstood the meaning of fully cross platform.

I'm relatively certain that it won't run on DOS or an Arduino, thereby instantly disproving the 'all operating systems'.

[–] ripcord@lemmy.world 1 points 21 hours ago

Or Haiku or AIX or...

[–] slappypantsgo@lemm.ee 3 points 1 day ago (1 children)

Is there anything out there that’s that literal?

[–] ripcord@lemmy.world 2 points 21 hours ago

I mean, if you mean "the most common", that's way different. There's ones in use it definitely won't run on.

[–] henfredemars@infosec.pub 3 points 2 days ago* (last edited 2 days ago) (1 children)

True, but what I’m really talking about is the unbeatable user experience of having an application that looks and feels as if it were a native Windows application, because it is and has that first-class platform support straight from the vendor.

With that said, most new cross platform applications today are probably more like electron or Web apps.

[–] kogasa@programming.dev 14 points 2 days ago (1 children)

Ok, there's no such thing as native Windows apps for Linux, but there are cross platform GUI frameworks like Avalonia and Uno that can produce apps with a polished identical experience across all platforms, no electron needed

[–] rikudou@lemmings.world 9 points 2 days ago* (last edited 2 days ago) (1 children)

Qt is my favourite, though it's not .NET.

[–] ChickenLadyLovesLife@lemmy.world 11 points 2 days ago (1 children)

Good lord, I've never seen anyone say this in public. I used Qt Creator for a couple of years and I found the combination of C++ for under the hood and Javascript for the UI to be a fantastic way of ensuring a nearly nonexistent base of developers who could competently do both. Maybe they grow on trees in Finland, I dunno. And maybe you're talking about some other "Qt", I also dunno.

I've done C# and Java extensively as well and I would never choose Qt over them. I might choose Qt over Objective-C, however.

[–] rikudou@lemmings.world 5 points 2 days ago (1 children)

QML is such an awesome UI language, the only thing (that I know of) that comes close is Jetpack Compose.

The flavour of JavaScript QML uses is very different from regular JavaScript, it's literally a glue language and any significant non-UI logic should be done in C++.

And Qt C++ is very different to most other C++ framework (or how people usually write pure C++), it feels much more Java-inspired.

Anyway, it really is a great UI toolkit if you want something powerful, cross-platform and efficient.

I suppose Qt's cross-platform aspect is a big checkmark in the plus column. My own opinion of Qt is probably colored by the fact that I was forced into it against my will and that the Finns who initially wrote the app were unhelpful and downright hostile to my attempts to customize it in ways that their customization framework did not support.

[–] cm0002@lemmy.world 35 points 2 days ago (3 children)

Yea this was a crosspost and also just a meme, but C# is my fav

And really cross-platform has come a LONG way...just as long as you don't need UI on Linux lolol

[–] Mihies@programming.dev 13 points 2 days ago

Not really, even GUI is going strong, check Avalonia UI.

[–] kautau@lemmy.world 4 points 2 days ago

Or realistically on Mac. Mac Catalyst is neat but you’re basically building an iPad UI and afaik that’s all that MAUI supports still

ASP.Net Core is a phenomenal backend.

[–] Hugin@lemmy.world 26 points 2 days ago (2 children)

Yeah C# gets a bad rap. I spent a decade developing in C++, and Java before switching to C# because of program requirements. Now I never want to go back.

[–] Arghblarg@lemmy.ca 17 points 2 days ago

C# development was spearheaded by Anders Hjelsberg, one of the brains behind Borland Delphi/Object Pascal.

[–] Draces@lemmy.world 10 points 2 days ago (2 children)

Does it get a bad rap outside of this meme? I've only heard praise. It's by far my favorite language

[–] Hugin@lemmy.world 3 points 2 days ago

It's kind of the opposite of eclipse. People who use it like it and people who don't have experience with it disparage it.

[–] Valmond@lemmy.world 2 points 2 days ago (1 children)

It's IMO getting a bit oldish, it's nice for small projects (up to medium sized I guess, after that I don't see the benefits over say C/C++ but that's just my opinion) but there are a lot of improvements that could be done I think.

The language is open source IIRC, so it could be done I guess, like C/C++ has new versions every some years.

[–] nogooduser@lemmy.world 3 points 2 days ago (1 children)
[–] Valmond@lemmy.world 1 points 1 day ago

Sure, but they don't seem very groundbreaking?

[–] JeromeVancouver@lemmy.ca 11 points 2 days ago (1 children)

I have used many languages in my 25 years of programming. C# is the best.

I've used many languages/platforms in my 30 years of programming (take that!), including Visual Basic, C, C#, Java, Objective-C and C++. I agree that C# is the best but not by much. They all do pretty much the same things - if one language lacks something that other languages have shown to be beneficial, that something tends to get incorporated in a future update in some form or another, and their glaring weaknesses tend to get corrected as well (like when Objective-C mostly did away with the need to explicitly release fucking everything).