3 ms·
> It's the C++ of scripting languages. This is such a fantastic analogy. Thank you! C++ tries to be all the paradigms, even if they're bolted on. Python is si
by echelon 6y ago
> It's the C++ of scripting languages.
This is such a fantastic analogy. Thank you!
C++ tries to be all the paradigms, even if they're bolted on. Python is similar in that regard. Complex OO, functional, exceptions, decorators, lots of container types, iterators, generators, operator overloads... The only thing it's missing is a macro language.
Python's "batteries included" standard library stance takes it even beyond the C++ analogy in terms of sheer volume of out of the box capabilities you get.
- pansa2 6y agoBut Python still has a reputation of being a simple language for beginners. I’m not sure how that reputation endures. Is it just because of the lightweight syntax?
- type0 6y agoIt is deceptively simple. The Python learning curve looks like a snake - https://fabienmaussion.info/acinn_python_workshop/figures/xkcd_learning_curve_wa.png https://fabienmaussion.info/acinn_python_workshop/figures/xk...
- chriszhang 6y agoDoes this curve really represent everyone's experience? I never experienced the "I hate Python" phase. I think I went straight from "So exciting" to "productive" phase with Python.
- pjmlp 6y agoMy only hate Python is how hard it is to push for JIT adoption versus other dynamic language communities.
- prionassembly 6y agoI hated Python 2 because it did the Wrong Thing with integer division (it didn't cast to floats), so my attempts at simple scripts just didn't work. I reencountered Python at a data science course that was somehow mandatory for my masters in ODE numerics. It has a HUGE availability of standard and third-party packages, so you can be INSANELY productive. I'd write in Brainfuck if it was the only way to have like Pytorch and giotto-tda and networkx and fastapi in the same room.
- Too 6y agoBack to the original question, is there any other language that doesn't look like this?
- pjmlp 6y agoBecause Python is easier to start programming with, BASIC like, but a large majority fails to actually read the official documentation. If they would do that, then they would realize Python is as powerful as Common Lisp, Ada, C++,.... with similar doc size in pages.
- BerislavLopac 6y agoPython has a built-in macro language. It's called Python.
- prionassembly 6y agoCheckout Hylang, a Lispish language that compiles to Python, or maybe a Lispish syntax for Python? You can write pieces of code in .hy files and import them from .py files and vice-versa. And then you have macros like in macros that traverse and transform code.