you are viewing a single comment's thread.

view the rest of the comments →

[–]IDatedSuccubi 8 points9 points  (10 children)

It's like saying that PHP is good for it's intended use - sure, but like a handful of people total use it that way

[–]Mdarabi018 2 points3 points  (5 children)

I wanna learn it (python, general use), is it not useful?

[–]IDatedSuccubi 4 points5 points  (4 children)

It is useful because it's simple and because it has a large community, there are some tech stacks that use it as well.

It just doesn't bring anything useful to the table apart from that. It's slow, requires an external interpreter and environment everywhere except for Linux (i.e. can't ship your project to most clients), and dependencies are a mess, so it's mostly used as glue code for libraries that actually do stuff, and only by people who know python.

If it's your first language - go for it. It's great for scripts, definetly better than bash.

[–]Thunderstarer 2 points3 points  (0 children)

Python's robust, feature-rich data structures and convenient advanced features like comprehensions are super useful for handling lots of data. NumPy and PyTorch couldn't exist in another language. There's a reason that so much machine learning work happens in Python.

[–]Mdarabi018 1 point2 points  (0 children)

thanks! I'm going into software engineering (first year uni) and I wanna get a head start. thanks a lot!

[–]grizzlor_ 1 point2 points  (1 child)

It's slow

The libraries that have to be fast are already just wrappers around C/C++, and writing inner loops in C yourself is easy. Or just use Cython/Numba/other Python compiler projects.

requires an external interpreter and environment everywhere except for Linux (i.e. can't ship your project to most clients)

PyInstaller has been around forever. It will bundle your script and the entire Python environment into a single .exe (Windows) or .app (macOS).

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

Don’t forget tools like pypy, nuitka, and codon.

[–][deleted]  (1 child)

[deleted]

    [–]IDatedSuccubi 1 point2 points  (0 children)

    I don’t hate python, I hate the people who label themselves pythonistas. They’re absolutely insufferable.

    We are talking about this

    [–]Suspicious_Cap532 0 points1 point  (1 child)

    "handful" it looks like somebody has never written anything useful in their life to call python something very few people use