this post was submitted on 04 Mar 2024
944 points (97.6% liked)

Programmer Humor

32710 readers
261 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] waigl 93 points 9 months ago (13 children)

Also, almost all of that is written in C, which is a successor to B, which is a simplified version of the Basic Combined Programming Language. There was never an A.

[–] Agent641 13 points 9 months ago (10 children)
[–] [email protected] 26 points 9 months ago (7 children)

Yes, but I'm not sure if we want to open the "programming language can of worms".

There's B, C, C++, C#, Objective-C, D, E, F, F#, F* and so many more. Also, they may or may not have anything to do with each other

[–] jyte 6 points 9 months ago (1 children)

Also I've read that C# is C++++ (like put those + on 2x2 table, which in turns ressemble a #)

[–] [email protected] 5 points 9 months ago (1 children)

Hahaha I've never heard that before. Seems legit.

C# was originally "Java: The Good Parts" but but these days it's a much more advanced language and runtime compared to Java.

[–] [email protected] 1 points 9 months ago (1 children)

As a dev who works on both Java and C# code, modern Java (17+) and C# feel almost exactly the same (not sure if Java has extension methods though).

Bonus points for using Kotlin instead tho. I dislike both Java and C# just because they both allow any object to be null and that's usually a headache whenever a null exception shows up.

The only thing I like better about C# is the Fixture library for testing. I haven't found any mature libraries like it for Java yet.

[–] [email protected] 2 points 9 months ago

they both allow any object to be null and that's usually a headache whenever a null exception shows up.

C# has nullable reference types now: https://learn.microsoft.com/en-us/dotnet/csharp/nullable-references. If you enable it, you have to explicitly make reference types nullable (like ?string) and you'll get build warnings if you try to use a variable that's potentially null.

load more comments (5 replies)
load more comments (7 replies)
load more comments (9 replies)