231
Anon discovers .NET (programming.dev)
submitted 5 months ago by starman@programming.dev to c/greentext@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Pencilnoob@lemmy.world 19 points 5 months ago
[-] Varyk@sh.itjust.works 10 points 5 months ago

Do you know why sharp is added to the end of programming languages? Like c sharp and f sharp?

Actually, I don't even know if it is pronounced c sharp or f sharp. I just assumed it was the same as music.

[-] starman@programming.dev 33 points 5 months ago

Do you know why sharp is added to the end of programming languages? Like c sharp and f sharp?

There was (and still is) a language called C. Then C++ was invented. And then C#, maybe because # looks kinda like 4 pluses.

There is also another programming paradigm, called functional programming. F# is a functional programming language and runs on the same platform as C# (that platform is called .NET). That's why they named it F#.

Actually, I don't even know if it is pronounced c sharp or f sharp. I just assumed it was the same as music.

Yes, it's pronounced see sharp.

[-] Varyk@sh.itjust.works 6 points 5 months ago

Very cool, thank you for explaining that.

[-] starman@programming.dev 8 points 5 months ago
[-] dank953@lemmy.world 6 points 5 months ago

a sharp symbol is ++ stacked on top of ++ So C ++ ++ becomes C#

Phonetically, It is C sharp because it sounds cooler than C hash or C pound.

[-] Hawke@lemmy.world 15 points 5 months ago

Also because in music, C# is a half-note higher than C.

[-] Varyk@sh.itjust.works 3 points 5 months ago

Rad. Thanks! What do the pluses denote in a programming language? What's the difference between c+, c++ and c sharp?

[-] lili_thana@lemmy.blahaj.zone 16 points 5 months ago

++ is the increment operator in C, which increases a value by 1. C++ was intended to be an improvement on C, and so it's saying that C++ is C incremented. C# is C++ ++ or C++ incremented. It's just a bunch of programmer jokes. There isn't a C+ afaik.

[-] Varyk@sh.itjust.works 4 points 5 months ago

Oh, haha, got it. Thanks

[-] mozz@mbin.grits.dev 1 points 5 months ago* (last edited 5 months ago)

"We did make C better, but what you're getting back from us isn't the better thing."

🙂

[-] orivar@lemmy.dbzer0.com 8 points 5 months ago

There is no c+. The reason is that ++ means "increment by 1" in c itself (and many other languages).

[-] Varyk@sh.itjust.works 3 points 5 months ago
[-] hawgietonight@lemmy.world 1 points 5 months ago

It's funny that in spanish only the "c" is translated.

We say "ce sharp"

[-] callyral@pawb.social 1 points 4 months ago

Same in Brazilian Portuguese

[-] AdamBomb@lemmy.sdf.org 2 points 5 months ago

It’s sick as hell!

[-] dank953@lemmy.world 1 points 5 months ago* (last edited 5 months ago)
this post was submitted on 09 Jun 2024
231 points (79.7% liked)

> Greentext

7551 readers
1 users here now

founded 2 years ago
MODERATORS