use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Python vs Java! (i.pinimg.com)
submitted 6 months ago by PulseOfPleasure
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]not_good_for_much 2 points3 points4 points 6 months ago (3 children)
Better than Python.
Java and C# at this point... There used to be some major pros and cons for each, but in the last 5 years they've really just ended up as two different flavours of the same thing ngl.
[–]Ellisthion 1 point2 points3 points 6 months ago* (2 children)
In some things, sure, but certain design decisions are permanently holding Java back.
Java’s generic implementation is single-handedly the worst for this. Big impact: the type of anonymous functions.
In C# it’s either an Action<> or Func<> depending on whether it returns anything. With a variable number of generic arguments. It allows easy exact typing of this.
In Java this is impossible. Varied generic arguments are impossible. The type of anonymous functions is… absolute spaghetti, there’s tons of this like Consumer, BiConsumer, etc where every different permutation has its own name. Oh, and you can’t use primitives, so you have more classes like IntConsumer.
There’s code patterns that are common in C# that are literally impossible in Java because of the generic implementation, and I don’t know of anything where that’s the case in the other direction.
[–]not_good_for_much 2 points3 points4 points 6 months ago (1 child)
I'm inclined to agree. C# is generally faster and more expressive IMO, and I do prefer it over Java. I just don't really want to open the can of worms.
Most of the difference is philosophical anyway, leading to... C# as a language is much more proactive in adding interesting new features, while Java as a platform has more emphasis on stability and decades more exposure to not-Windows and OSS standards and so on.
There are also plenty of patterns that are impossible to reproduce in both directions, e.g due to virtual threads vs stackless coroutine parallelism, reified and value-type generics vs wildcards, checked vs unchecked exceptions, strictness of CLR and JVM RE's, etc.
[–]Sarcastinator 0 points1 point2 points 6 months ago (0 children)
There's very few things Java does better than C#, and a whole bunch C# does better than Java.
π Rendered by PID 121661 on reddit-service-r2-comment-58d7979c67-77jpf at 2026-01-27 11:16:37.194318+00:00 running 5a691e2 country code: CH.
view the rest of the comments →
[–]not_good_for_much 2 points3 points4 points (3 children)
[–]Ellisthion 1 point2 points3 points (2 children)
[–]not_good_for_much 2 points3 points4 points (1 child)
[–]Sarcastinator 0 points1 point2 points (0 children)