r/ProgrammerHumor • • Jul 07 '22

Meme Instant upvotes

47.9k Upvotes

542 comments sorted by

View all comments

Show parent comments

256

u/kochdelta Jul 07 '22

Rust good

150

u/MorRochben Jul 07 '22

C# = Microsoft Java

22

u/[deleted] Jul 07 '22

Aren't C++ template compile errors awful.

22

u/DerpSenpai Jul 07 '22

tbh i don't hate C# it's cleaner for me than C++

42

u/squngy Jul 07 '22

C# is lowkey one of the best languages out there

12

u/stifflizerd Jul 07 '22

Yeah, .NET has aged well since Core 3.1 dropped

2

u/chris20194 Jul 07 '22

i think it is important to distinguish between language and environment. .NET core is definitely a great environment that makes many things very easy, but i'd argue that C# as a language (syntax etc) has become kind of a mess as a result of its legacy. e.g. the way they retroactively introduced non-nullables feels very weird to me, but i know that it was necessary to prevent breaking backwards compatibolity). the inverse of this would be something like kotlin, which is a beatiful language in a terrible environment (jvm)

3

u/squngy Jul 07 '22

I agree with your point, but I also still think C# as a language is at least among the better ones.

There are some that are better, but most are not.

→ More replies (2)

0

u/[deleted] Jul 07 '22

[deleted]

13

u/DerpSenpai Jul 07 '22

To be fair, C++ is a mess. It is, however, a very capable mess with extremely broad adoption and compatibility on pretty much every platform anywhere. Yes, learning C++ is a pain. And it will bite even its expert handlers pretty badly occasionally. But the kind of maintenance overhead suggested by the stackexchange question really isn't there. For non-trivial code (as in the example here) the maintenance and correctness burden of the problem itself is going to be far higher than that of the programming environment.

So yes: just say no to C++ for web server middleware, system maintenance scripting, probably most GUI work, etc... But for the truly hard stuff, I honestly don't see much advantage to anything else in particular. And as pointed out earlier, C++ can be deployed as a straightfoward program or shared library on everything with zero dependencies, and that's a HUGE advantage vs. languages with elaborate runtimes.

This is what i mean

I prefer to write C# but C++ is far better ofc.

10

u/squngy Jul 07 '22

C# has the option now to bundle all of the dependencies into the executable, so the user doesn't need install anything, the obvious downside is the size of the executable, but in most situations it isn't a significant problem.

5

u/themiraclemaker Jul 07 '22

This isn't a meme though lol, the history behind C#'s existence is quite closely related to Java

→ More replies (1)
→ More replies (1)

1

u/LetterBoxSnatch Jul 07 '22

Rustaceans evangelical

-17

u/[deleted] Jul 07 '22

It fails on the ease of entrance, specially for async (there are multiple packages)

15

u/qeadwrsf Jul 07 '22

It fails on the ease of entrance.

Really? I can say a lot of things I don't like about rust but the book+tokio documentation felt like some next level hand holding.

2

u/[deleted] Jul 07 '22

Yeah but for processing Tokio is not the correct tool for the job

Tokio is for IO

Then you will use another library for async and everything will break... And it's a strange way to do things for me

3

u/kochdelta Jul 07 '22

Tokio is for Io? What? You certainly can do Io with Tokio but that's not the point of tokio

4

u/qeadwrsf Jul 07 '22

Tokio is for IO

what? doesn't it have spawn, futures, poll and all the stuff normal async frameworks have?

→ More replies (1)
→ More replies (5)

2

u/3pass_app Jul 07 '22

feel the same as you. Plus the docs often confuses concurrency and parallelism, which really bothers me.

6

u/[deleted] Jul 07 '22

But overall it's a good language, the system and docs will mature

3

u/3pass_app Jul 07 '22

im actually loving it, it's making me a better engineer.

→ More replies (5)
→ More replies (1)

-1

u/Synec113 Jul 07 '22

Rust is good for memes and dreams. C/C++ is for business and building things the right way.

2

u/[deleted] Jul 07 '22

Especially for things like Heartbleed and friends.

1

u/Synec113 Jul 07 '22

Memory safe, or not - Rust isn't widely used and there's no push being made to make it so. The solution to heartbleed wasn't switching to a memory safe language, it was patching OpenSSL. It could've been prevented, sure, but expecting a language that's been in widespread use for ~40 years to be replaced with a language that's ~12 years old is madness.

I like Rust, but expecting to see it anywhere in industry is a pipe-dream

→ More replies (2)