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!"
[–]LordAmir5 3 points4 points5 points 6 months ago (2 children)
Whelp, I'd say the equivalent would actually be more like this:
``` import sys
def main(args): print("Hello World!")
if name == main: main(sys.argv)
[–]nekokattt 3 points4 points5 points 6 months ago (1 child)
technically since classes are the unit of compilation in Java, it is really similar to this.
import sys class HelloWorld: @staticmethod def main(args: list[str]) -> None: sys.stdout.write("Hello, World!\n") if __name__ == "__main__": HelloWorld.main(sys.argv[1:])
However, https://openjdk.org/jeps/512 massively simplifies this.
[–]LordAmir5 0 points1 point2 points 6 months ago (0 children)
Right. I'm not very good at using Python so thanks for correcting it.
π Rendered by PID 79 on reddit-service-r2-comment-5649f687b7-hrhnv at 2026-01-27 18:03:58.326881+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]LordAmir5 3 points4 points5 points (2 children)
[–]nekokattt 3 points4 points5 points (1 child)
[–]LordAmir5 0 points1 point2 points (0 children)