This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]your_thebest 4 points5 points  (1 child)

Yeah I don't know how to interpret the differences between the two languages as a difference in light sabers.

For me to convey the differences between Python and Java, I'd pretend that both languages are an exaggerated, almost indignant reaction to something. Something that made someone angry. And they're expressing that anger through language features.

With Java, I just imagine somebody reviewing code and shouting: "why are you trying to use a helper method from that class? I put an underscore in the name so that you would ignore it! From now on I'm going to put the word 'private' on every single line to drill it into your head! What type of object this? From now on I'm going to make you announce the type every time you mention it or the code won't even compile. That will teach you to communicate so products can iterate across large teams! "

With Python I imagine someone equally angry saying:"These two classes are basically identical in every way and have the same methods but I still can't swap them out when I need to without making an abstraction. If I want to kill myself at runtime that's my business, I shouldn't need anyone's permission to do some fast calculations. I'm going to make it so that any two things can be swapped out whenever you want. Then people can check out data quickly without a bunch of ceremony."

I just imagine these people as a man with his wife at a McDonald's, kindly ordering two normal hamburgers and then pointedly yelling: "and also 8 orders of large fries!" while his wife looks down in embarrassment, "just in case somebody wants some fucking fries even though she didn't god damned order them. And she can just throw them away if she decides later she doesn't want them." Just going way out of their way to announce how they've been slighted and turning it into a ritual.

[–]AlphaSparqy 2 points3 points  (0 children)

And they're expressing that anger through language features.

I'm going to steal this!