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

24

u/Astrokiwi Jan 05 '18

It's just useful for different things. Java is definitely more verbose and has more boilerplate to write, but it's also stricter than Python and is a semi-compiled language, which means that it sometimes catches errors more quickly. It also forces you into an object oriented structure, which tends to encourage you to design your programs better rather than jamming a big list of functions into a single file.

I also find they have strengths in different kinds of applications. I tend to prefer Java for writing games (pygame isn't great), python for doing numerical analysis work (numpy and matplotlib are pretty great), and Fortran, C, or C++ for the big parallel numerical simulations.

38

u/Keith Jan 05 '18

It also forces you into an object oriented structure, which tends to encourage you to design your programs better...

Debatable.

2

u/hanpari Jan 06 '18

In my eyes it is rather bad design than advantage. No modern language use this anymore.

1

u/Keith Jan 06 '18

Agree. But did any other language ever force this convention?

1

u/hanpari Jan 06 '18

Not sure what you mean but, apparently, Java and C#. You have to enclose everything in class. For instance, you cannot have single functions in these languages like in Python. Before Java 8 you had to make anonymous class instead of simple anonymous function.

1

u/[deleted] Jan 06 '18

[removed] — view removed comment

1

u/hanpari Jan 06 '18

OK, I see. On the other side, I dont like C# namespace much. The said convention is present as well but differently. To manage C# project without IDE is almost impossible. You can do it manually but the pain is great :)

2

u/Keith Jan 06 '18

To manage C# project without IDE is almost impossible.

Yeah I agree. That's always a good test of a language for me: "Does this require an IDE?"

1

u/hanpari Jan 06 '18

Sure :)

We can make Guide how to categorize programming languages

We have the first point to go :)

For the second one, I would suggest: Has it nullable types?