this post was submitted on 14 Sep 2023
390 points (79.2% liked)

Programmer Humor

24736 readers
1737 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
 
top 50 comments
sorted by: hot top controversial new old
[–] onizuka89@programming.dev 224 points 2 years ago (2 children)

For those wondering, it's most likely a jab at unity with it's new license model, as you could code in C# in it.

[–] M500@lemmy.ml 34 points 2 years ago (5 children)

Is c# mainly just used in this engine?

[–] GigglyBobble@kbin.social 87 points 2 years ago (1 children)

It's probably a tiny fraction of the C#/dotnet ecosystem. But hobbyist meme creators mostly care about games, I guess.

load more comments (1 replies)
[–] onizuka89@programming.dev 51 points 2 years ago

No, as other's have pointed out it's not. There are plenty of other areas to use it, even in other game engines. OP is just trying to make it seem funny by making the exaggerated narrative that it's the only use case for C#. If Boo was still around in Unity this joke would been accurate with that, don't think that was used anywhere else

[–] amio@kbin.social 45 points 2 years ago

No, C# is a general purpose language that Unity has a botched, outdated version of.

load more comments (2 replies)
load more comments (1 replies)
[–] amio@kbin.social 114 points 2 years ago (2 children)

You think C# is a Unity thing?

[–] EnderMB@lemmy.world 75 points 2 years ago

I doubt the number of C# developers would drop even 1% due to Unity fucking itself.

[–] GlitchyDigiBun@lemmy.dbzer0.com 18 points 2 years ago (3 children)

Me writing my silly little forms apps in silly little VS Pretty drop-down fields :)

[–] amio@kbin.social 10 points 2 years ago (6 children)

Oh, VS is not "little", it's one of the bloatiest pieces of software on earth.

Also, Forms? How dare you. :p

load more comments (6 replies)
load more comments (2 replies)
[–] makingStuffForFun@lemmy.ml 104 points 2 years ago (1 children)

Ok. What am I in the dark about this time?

[–] turbodrooler@lemmy.world 90 points 2 years ago (2 children)

Guessing it’s about Unity changing their royalty structure.

[–] Serinus@lemmy.ml 87 points 2 years ago (1 children)

Which is kind of weird because most C# devs aren't doing games.

[–] r00ty@kbin.life 12 points 2 years ago

Yeah. Maybe c# game developers will drop. But they're actually a drop in the ocean.

[–] makingStuffForFun@lemmy.ml 42 points 2 years ago (4 children)

Surely other engines use it? I know godot supports it. Not to mention half the business software of the world (pre cloud) seemingly built with it. etc

[–] turbodrooler@lemmy.world 48 points 2 years ago (1 children)

Unreal, Unity’s primary competitor, doesn’t. Mainstream gamers seem to only know about the two. Anyway, it’s a meme. I use C# for exclusively boring corporate stuff, and will continue.

load more comments (1 replies)
[–] lobut@lemmy.ca 7 points 2 years ago

It's a joke built in hyperbole for sure. A lot of my friends are C# devs they're not going anywhere.

[–] squiblet@kbin.social 7 points 2 years ago

A whole lot more than game engines uses C#.

load more comments (1 replies)
[–] Omgarm@lemmy.world 72 points 2 years ago (1 children)

Look at all these C# dev who don't know the witch hunts are starting in 2024.

[–] TheFerrango@lemmy.basedcount.com 18 points 2 years ago (2 children)

Time to become a Visual Basic .Net developer

[–] Wild_Mastic@lemmy.world 7 points 2 years ago (4 children)

Jokes on you, I am already one! (yes my company chosen dev language is really vbnet)

[–] Heavybell@lemmy.world 7 points 2 years ago* (last edited 2 years ago) (1 children)

My old boss loved VB.Net. I still remember a time when I helped him out by solving mysterious bug for him.

He used to have this class he copied about to do database stuff. Not the worst thing of itself, but it was oddly specific in some ways for reused code. E.g. It had a function that took an enum value and returned connection string. And of course what options were in the enum varied.

So I come in one day and two other devs are already peering over his shoulder trying to help. The program is crashing when it tries to connect to the database and they can see for some reason the connection string is a single letter. I ask to see the function that is getting the connection string and see he's removed the parameter, but the compiler didn't pick up on it because:

  • VB.net lets you call functions that have no parameters without parentheses
  • VB.net is type lax, so an enum can be treated as an integer without casting
  • VB.net uses parentheses for array indexation as well as method invokation
  • .Net strings can be indexed like an array of characters
  • VB has no character type so VB.net treat characters as 1-length strings

So instead of passing an enum to a function, it was calling the function with no parameter, then using the enum value to index the returned string into a single character, which was then treated as a string and passed to the SqlClient constructor.

load more comments (1 replies)
[–] amio@kbin.social 6 points 2 years ago

I'm so sorry.

[–] TheFerrango@lemmy.basedcount.com 6 points 2 years ago (1 children)

All I’m saying is “AndAlso”

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)
[–] PixxlMan@lemmy.world 68 points 2 years ago (4 children)

Thinking that C# is just Unity is a MASSIVE disservice to C# and dotnet imo. Unity's usage of C# is really crummy, basically relegating a very powerful language to working as a weird scripting language.

[–] modulojs@programming.dev 16 points 2 years ago* (last edited 2 years ago) (2 children)

Absolutely. C# in Unity always seemed to me like a square peg in a round hole.

From my perspective (teaching game programming classes), it's incredibly clunky for beginners when compared to others. Unity needed a tightly integrated, noob-proof scripting language. Despite C# being the primary language, it's integration and setup with the rest of Unity seems surprisingly lacking, and, like you're referencing, you don't even get convenient use of the broader C# / Mono / .net ecosystem, which makes skills more portable. Even the "bad old days" of Flash/ActionScript were much easier for students, and results in more portable coding skills (e.g. at least transitioning to Web / JavaScript from Flash / ActionScript is easier)

It's much easier to teach same lessons / concepts using Godot, though sadly Unity is much better known. Hopefully the present pricing chaos might shift the needle a bit on this!

load more comments (2 replies)
[–] dylanTheDeveloper@lemmy.world 9 points 2 years ago (2 children)

I'd say the same with Unreal and C++

load more comments (2 replies)
[–] kryllic@programming.dev 9 points 2 years ago (2 children)

Agreed, I feel like if someone starts their C# journey exclusively in Unity, they won't have a solid foundation in the actual language, just that specific implementation of it as a scripting language.

[–] Eloise@lemm.ee 6 points 2 years ago

Can confirm as someone who did exactly that before starting over with c++

load more comments (1 replies)
[–] xantoxis@lemmy.world 8 points 2 years ago

Not to mention C# is also the best way to write a Godot project.

[–] Rentlar@lemmy.ca 65 points 2 years ago* (last edited 2 years ago) (5 children)

Nice meme. I'll just ignore the fact most C# devs aren't game devs but...

Many other engines use C#. Godot is compatible with it, for example.

load more comments (5 replies)
[–] Ddhuud@lemmy.world 53 points 2 years ago (1 children)

Because the only possible thing to do in c# is unity stuff.........

.

.

.

...

[–] fuck_u_spez_in_particular@lemmy.world 17 points 2 years ago (3 children)

I mean why else would you want to use C# when there's Rust 🦀 and all the awesome tooling and libraries around it...

[–] areyouevenreal@lemm.ee 13 points 2 years ago (11 children)

Rust really isn't all that. Plus C# is used for all kinds of corporate stuff where Rust levels of performance aren't needed. It's also used in several other game engines

load more comments (11 replies)
[–] brezelradar@feddit.de 6 points 2 years ago

Yea, there are 50 game engines written in rust - or so I heard.

[–] Lazycog@sopuli.xyz 29 points 2 years ago* (last edited 2 years ago) (1 children)

Wait what? What happens in jan 2024?

Edit: ah, unity's new install based pricing.

[–] turbodrooler@lemmy.world 20 points 2 years ago (1 children)
[–] Lazycog@sopuli.xyz 8 points 2 years ago
[–] ledtasso@lemmy.world 20 points 2 years ago (9 children)

Hot take (maybe?) C# looks like a great language, better than Java. I wish I had an excuse to use it.

load more comments (9 replies)
[–] Pfnic@feddit.ch 19 points 2 years ago

Because ASP.NET isn't a thing at all...

[–] gratux@lemmy.blahaj.zone 16 points 2 years ago (1 children)
[–] HolyDuckTurtle@kbin.social 10 points 2 years ago (1 children)

I hear Godot's own scripting language is preferable to C# if you're willing to learn it.

[–] jmcs@discuss.tchncs.de 19 points 2 years ago (1 children)

C# is technically faster, but according to one of the cassette beasts' co-directors, you can maximize productivity and performance by doing most stuff in gdscript and skipping directly to c++ for the bottlenecks.

[–] AshLassay@kbin.social 6 points 2 years ago* (last edited 2 years ago)

Also currently no C# iOS support in Godot 4. And probably makes porting to non-MS consoles difficult since it relies on .NET

[–] tomjuggler@lemmy.world 14 points 2 years ago

Fun meme but corporate job listings in my town contradict the premise.

Let them C# I'm sticking to C++ and Python.

[–] pkill@programming.dev 10 points 2 years ago (3 children)

Rooting for Bevy so much rn

load more comments (3 replies)
[–] pleasemakesense@lemmy.world 10 points 2 years ago (6 children)

Is it pissible for programmers to encounter a silly little meme without taking it serious and going into a frenzy explaining that actually its premise is wrong

[–] samus12345@lemmy.world 14 points 2 years ago (1 children)

No, it would be pretty painful to piss something like that.

load more comments (1 replies)
load more comments (5 replies)
load more comments
view more: next ›