6 ms·
> It is so intuitive and beautifully designed No it's not. Significant whitespace, underscores that mean things, lack of type system (but people treat variable
by exabrial 7y ago
> It is so intuitive and beautifully designed
No it's not. Significant whitespace, underscores that mean things, lack of type system (but people treat variables as typed anyway), et all, make it quite a difficult language to understand. And we won't get into performance problems that it's cult following turns a blind eye to.
I will say Python has inspired a generation of languages that got away from the C-inspired syntax. We're moved to critically thinking about _why_ we write code the way we do, rather than simply accepting things because "that's the way it's done" and for that we owe Python a great debt.
- dubcanada 7y agoIt's a blog post about the creator of python leaving Dropbox a company who uses a TON of Python. Did you expect them to complain about Python? Of course there is issues, as there is with ANY language. Stop these silly language wars...
- jgwil2 7y agoPython is well-designed for what it is, and it certainly seems intuitive compared to bash or perl or whatever people were using before, but it is opinionated in a way that makes it hard to write anything but procedural-style code. That quality draws some people to it, but it's not a language that can be everything to everyone.
- cookie_monsta 7y ago> it's not a language that can be everything to everyone. Unlike say, for example...?
- jgwil2 7y agoI'll probably get shit on for saying this, but JS comes closer. It's multi-paradigm, performant, and TS provides static type checking for those that want it. Of course, JS is also a language that gets excoriated for being poorly designed, so maybe intuitive design and adaptability are fundamentally at odds with each other.
- FpUser 7y agoNothing can be "everything to everyone". People are different. No point in trying to conquer the world.
- cookie_monsta 7y agoMy point exactly. It's unfair to criticise a language on the grounds that it doesn't do what no other language does.
- cmrdporcupine 7y agoWhen I first learned and took up Python in 1996 I didn't adopt it because it was elegantly designed, but because it was pragmatic and the only reasonable (to me) tool for a job that most people used Perl or Tcl or shell scripts for, which I didn't like. Since then I've watched people use it as an application or systems programming language and I don't really get it. To me it's a great Swiss army knife scripting language. But yes, I think you're right. There are far more "elegant" programming languages. I never got the sense that that was Python's niche, though.
- sword_smith 7y agoI think you mean lack of static type checking. Python is more strongly typed than e.g. Perl and JavaScript.
- chooseaname 7y agoWe all have our preferences. I find Python to be intuitive. I find Ruby to not be. I am sure someone would spend half a day trying to convince me otherwise, but, it's not worth arguing over in the end. There are more languages than most would care to count. Devs should pick a few that speak to them and move on.
- thanatropism 7y agoBut intuition is not something fixed like an extra toe or even ingrained through a lifetime like a sexual fetish. The core of what humans do is acquire new abstractions in such a way that what was previously convoluted is now intuitive. "Intuitive" is a word for "stuff I already know". Symplectic geometry is unintuitive until you learn it. Learn stuff.
- carapace 7y agoYeah. Jef Raskin pointed out that we use "intuitive" to mean "familiar" (in IT.) The computer mouse seems so "intuitive" today, but when he first handed a mouse to someone else, an architect IIRC, to use she turned it upside down and tried to use it like a little trackball. ("The Humane Interface")
- dr-detroit 7y agoSince you brought it up I would like to pile on. There are scads of Academic applications that will remain in use for decades and every single one of them has a half baked Windows port that is used 10000% more often in research institutions where security concerns mandate managed OS not fashion OS or hobby OS. I don't hate python just lazy windows ports.
- ajford 7y agoFor a beginner, compared to many languages out there, it is very intuitive. I taught many 1st/2nd year college students Python as their first foray into programming, and it's flexibility and readability was a great way to get people in the door. I won't defend beauty, as that's extremely subjective. I happen to find the whitespace significantly more intelligible than nested braces and parens, but that's me. I know plenty of people who strongly prefer to have braces and parens, so no argument from me. Everyone loves to bring up performance as a huge drawback to Python, but it never holds up as a fundamental problem. Yes, that means for specific problems, it's not suitable. But the same can be said about many languages. Fortran is a horrible language to try and build a web framework on top of. Lisp is a bad language to write an OS in. Programming languages are tools, choose the right one for the job. If you need blazing fast processing of numerical data, choose the proper tool. If you want fast iterative development with a broad set of packages and an active community, Python is a suitable tool. I do agree that the growth in new languages is amazing, and greatly welcome them to the the toolbox that is programing and software development.
- ummonk 7y agoYou don't need significant whitespace to get rid of nested braces - see every language with a pascal-like syntax.
- earenndil 7y ago> Lisp is a bad language to write an OS in Beg to differ. Lisp machines were huge, back in the day, and there are still hobbyist projects like https://github.com/froggey/Mezzano https://github.com/froggey/Mezzano
- greenshackle2 7y ago"Lack of type system". That is an absurd claim. Python is dynamic but strongly typed.
- jefftk 7y agoPython also can now be optionally typed, which the article discusses. More: http://mypy-lang.org/ http://mypy-lang.org/
- greenshackle2 7y agoI'm sure you know this, but just to explain "optionally typed" a bit more, Python objects are always strongly typed (can't add a string and an int together like in JS, etc.), by default Python variables are not typed - a variable can refer to objects of different types at different times. Python 3 has introduced syntax to optionally declare types in the source (type annotations). This does not affect the runtime. Mypy is a program that does static analysis to tell you where your code is inconsistent with your type annotations, so: a: int = "foo" Will compile to bytecode and run fine, but if you run mypy it will warn you that you're not supposed to assign a string to a.
- MoronInAHurry 7y agoA comment like this being upvoted and responsible for a large portion of the "discussion" on the language creator's goddamn retirement announcement makes me embarrassed for this community. Keep the pointless bickering over programming language superiority somewhere else.
- slightwinder 7y ago> lack of type system (but people treat variables as typed anyway) Python has a type system. The types are on the objects, not the variablenames. If people threat variables as types then it's their misunderstanding.
- shadowgovt 7y agoCorrect. It's not a type system that lends itself to simple static analysis, but it's there. That being said, simple static analysis definitely has its advantages, but it's not so useful that it needs to eat the world.