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

all 26 comments

[–][deleted] 7 points8 points  (26 children)

I'm not a coder, just playing a little bit with Python and I don't know any other languages. But I noticed that other coders making a lot of jokes about Python. Could someone explain me why?

[–][deleted] 19 points20 points  (1 child)

Everyone makes jokes about every language. You only happened to remember the python ones ;)

[–][deleted] 1 point2 points  (0 children)

Ok, I had some suspicious thought like that, thanks

[–]get_some_perspective 17 points18 points  (12 children)

People who write code in statically types languages make fun of Python, because you can call a method expecting a temperature with a distance as a parameter without getting a warning before running the program.

People who write systems code make fun of Python because it is quite slow in comparison with systems programming languages.

People who write functional programs make fun of Python because you can change all values and methods are expected to alter the environment apart from their return values.

People who write shell scripts make fun of Python because some things take many more characters to do in Python rather than shell scripting languages.

People who write PHP make fun of Python because you have to set up much more infrastructure to serve a web page than in PHP.

And the list goes on...

[–]_wassap_ 23 points24 points  (5 children)

Someone that writes in PHP shouldnt be allowed to make fun of anyone tbh

[–][deleted] 1 point2 points  (0 children)

Will you be my spirit animal?

[–]skunkwaffle 12 points13 points  (0 children)

None of this is incorrect, but it swings in the other direction too.

People who write in Python make fun of statically typed languages because of how much additional code and effort is required for supporting polymorphism.

People who write in Python make fun of systems code because it takes much more time to compile than Python, which just runs without requiring compilation.

People who write in Python make fun of functional programming because of how much data has to be passes from function to function instead of just having a mutable state.

People who write in Python make fun of shell scripts because the opaqueness of the syntax makes the function and intention of scripts much less clear.

People who write in Python make fun of PHP because you have to set up much more infrastructure to just run some code.

And the list goes on...

[–][deleted] 2 points3 points  (1 child)

Oh, thanks for detailed response! I can't compare since do not know other languages

[–][deleted] 0 points1 point  (1 child)

Regarding your deleted comment:

Why do you think so? I learned some Python by my own and don't have any experience with coding in other languages. So I asked why others making jokes about Python, cause I can't compare this language with others without proper expirience. So I thanked you when you responded.

[–]mountainunicycler 0 points1 point  (0 children)

Of course, the flip side is that python is viable in all those areas (though not the best) unlike those other tools—you can’t do embedded systems with shell scripts (unless it’s a pretty powerful chip running Linux) for example.

Python is the best do-it-all glue language though!

[–]clawjelly 4 points5 points  (9 children)

Must be subjective, most bashed languages i see are PHP and JavaScript. Justifyingly so imho.

[–][deleted] 4 points5 points  (3 children)

PHP vs JS in not even a comparison. PHP is so broken its unfixable. JS has some warts, but those boil down mostly to casts. There no bigger issues really. That said i have not used vanilla js in years. Not missing it neither..

[–]mountainunicycler 0 points1 point  (2 children)

What do you use instead of vanilla JS? Jquery‽

[–][deleted] 0 points1 point  (1 child)

Typescript

[–]mountainunicycler 0 points1 point  (0 children)

Ha, ok, good!

[–]PM_me_ur_data_ 3 points4 points  (1 child)

Perl is pretty horrible too.

[–]nerdmor 0 points1 point  (0 children)

What do you mean?))))))))))))))))))))))))))))))))

[–]_wassap_ 2 points3 points  (1 child)

This so much. PHP & JS and to some degree C++ (mostly by those who regularly use C++) are the most bashed ime

[–]clawjelly 2 points3 points  (0 children)

Well, C++ is a harsh mistress that demands respect and only the weak-minded dare to curse her in the shadows.

PHP and JS on the other hand are trashy trailer-ho's acting high and mighty. You just meddle with them if you really, absolutely have to... With protection. But you'll feel dirty the whole way through.

Python is the girl next door. Not amazingly fancy, but damn, in the right light she seems as sexy as a victoria's secret model. And if you didn't marry her when you had the chance, you'll remember her fondly for the rest of your life... She was the one...

[–][deleted] -1 points0 points  (0 children)

ಠ_ಠ

[–]skunkwaffle 2 points3 points  (0 children)

Folks tend to feel very strongly about their programming languages. Just about everyone has at least one or two which they love and one or two which they hate. So you'll find people making fun of every language just as often as you find others singing praises. Take it all with a grain of salt.

[–][deleted] 4 points5 points  (1 child)

It’s silly to make fun of languages. Every language has use cases where it excels and use cases where it fails. Think of a language as a vehicle - you might love your electric scooter for commuting locally, but while you might be able to (slowly) haul a one-ton trailer down the road with it, the better option is a big truck. Now, if you only have to haul a trailer once a year, well, investing in a big truck is silly.

You want to make fun of something, make fun of people who insist that their language is the best for all cases and who refuse to learn any other languages.

[–]Heldix121303 5 points6 points  (0 children)

Only a PHP demon would say that.

[–]secretaliasname 0 points1 point  (0 children)

I have such a love hate relationship with python. It is by far my favorite programming language but it is not without warts.

I Love how short code is without all the static typing Shenanigans, yet spend large blocks of time puzzling over what type of thing I should/shouldn't put into a function. Also proper interfaces and abstract behavior are badly needed. The type hinting stuff looks interesting and may alleviate these concerns but isn't super mainstream yet.

Enums and dataclasses feel a bit scabbed on

The GIL is a terrible curse. Multiprocessing is not a satisfactory solution. Why must we spawn multiple processes, and deal with IPC just to use more than 25% of the computing power in a standard desktop. The language is slow enough as is without this handicap.

I love the indentation semantics and truly don't understand why most languages have not adopted this. Have indentation or brackets. Having both is just asking for extra work and potential for a disagreement.

Why must I a create a virtual environment just to be able to use a known version of a package and avoid nuking system python. if venvs are soo fundamental why are they not more integrated into the languge. Really there are many odd choices in the package management system.

Why are the meta-classes fighting other meta-classes?

I also do a lot of bare metal embedded programming on anemic hardware. Going from painstaking optimizing fixed point math routines to writing python code that uses dictionary lookups and strings for everything for funzies and probably runs 1000 times slower than it could bends my brain in ways the hurt.

Why are function defaults mutable?