r/Python • • Jan 05 '18

Really??

Post image
2.0k Upvotes

317 comments sorted by

View all comments

199

u/mistaekNot Jan 05 '18

Isn’t java “harder” than python

38

u/weasdasfa Jan 05 '18

Java is more explicit or verbose. For experienced people, that looks like clutter (and it is, I am an Android dev), but that verbosity might be useful for people just starting out.

-12

u/[deleted] Jan 05 '18

There are certain things I can do in Python that I simply cannot do in Java. Useful things.

19

u/[deleted] Jan 05 '18

Make a simple example of an application you can make in Python but not Java.

8

u/TheGrammarBolshevik Jan 05 '18

I assume /u/jgardner isn't referring to what applications they can make, but rather to what techniques they can employ. Python's dynamic nature makes possible various designs that would be difficult or impossible in Java — for better or for worse.

1

u/[deleted] Jan 05 '18

Exactly.

Given enough lines of code, you've implemented Lisp, but poorly.

1

u/[deleted] Jan 05 '18

I ran out of time trying to make the Java one.

9

u/mrks_ Jan 05 '18

Like what? Java is certainly verbose, but it has been a powerful tool in my skill set.

0

u/[deleted] Jan 05 '18

Globals. Introspection. Duck typing. Lisp-y things.

4

u/[deleted] Jan 05 '18

What you can and can't do doesn't matter when it comes to what can be done in a language.

0

u/KronenR Jan 05 '18

Complexity matters

1

u/Skypain Jan 05 '18

Bullshit.. give me ab example

-1

u/[deleted] Jan 05 '18

Globals, for instance.

1

u/scootstah Jan 06 '18

public static string foo

1

u/[deleted] Jan 08 '18

Is that Java?

1

u/scootstah Jan 08 '18

This is your globals in Java. Although I'm not sure why you're toting globals around as a good thing.

1

u/[deleted] Jan 08 '18

Unterminated lines is Java? Member variable declarations outside of classes is Java?

I am not saying globals are a good thing. I am saying that it is something you can do in Python that you can't do in Java.

2

u/scootstah Jan 08 '18

Uncomplete example for brevity. Perhaps I gave you too much credit to figure it out.

class Example
{
    public static string foo = "bar";
}

Example.foo;
→ More replies (0)