4 ms·
Originally small dynamic languages like Python and Javascript are constantly growing new language/stdlib features but rarely taking anything away. I wonder how
by fulafel 8y ago
Originally small dynamic languages like Python and Javascript are constantly growing new language/stdlib features but rarely taking anything away. I wonder how this affects learnability, how long will it take for a programming newbie to be able to jump into an existing project or read other people's code. I guess this could be measured and studied, I wonder if someone has done it.
I think Python was probably at a pretty good local sweet spot in the complexity:power ratio around the 2.0 version.
- yen223 8y agoPython is definitely heading down that dark path. I wonder how many pythonistas are fully across all of the new syntax coming, like positional-only args or even the infamous assignment expression.
- DonaldPShimoda 8y agoI don't think it's the case that a language needs all of its syntactic sugar to be intuitive or obvious to the initiate. These are things you will acquire over time as you either search the internet for "how do I do X" or you read other people's code that exemplifies them. Though I'd argue that anybody who adopts the "pythonista" label is likely to be somebody who looks through version release notes for these kinds of things. I certainly do!
- sametmax 8y ago2 new syntaxes a years is not a not. I find it quite balanced for a 25 years old language. It's funny, because I always hear people complaining Python move too slowly to stay modern on one side, and then right after some other people saying it goes too fast. My take on this is that people just like to complain.
- voldacar 8y agoYes! Python is getting less pythonic with each new version.
- baq 8y agoi prefer to see it the glass half-full way: the definition of pythonic continuosly evolves.
- sametmax 8y agoPython has taken many things away, hence the 2 to 3 transition. And people didn't like it. Not one bit. We even had to bring features back (u'', %, etc) after taking them away. Now I agree, if I could snap my gantlet I would remove a lot more. We don't need Template(), the wave module or @static and so many other things. And we could have cleaned up Python more deeply in the transition. But reality is very messy. Plus, you gotta realize that the Python community has nowhere near the resources of languages such as Javascript. JS is developed by giants that poured hundreds of millions in it and set dozens of geniuses to work solely on improving the implementations. Python barely (and this is recent, we had less before!) has a few millions for operating the PSF related activities, which includes organizing PyCons all over the world and hosting python.org or pypi.org. Only a handful of people are actually paid to work on Python. So you have a giant, diverse community, with billions of lines of code for so many different activities, and not enough resources to work on cleaning up everything. Welcome to life, this stuff where if you want to get things done, you have to compromise.
- ehsankia 8y agoIn practice, at a workplace, you can probably remove quite a lot through linting or some other form on enforcement. In general, as long as the majority of people out there use the same good style and don't use stuff like Template(), I don't think it'll be an issue for newbies. The real issue is when you have many methods of doing the same thing that are all popular.
- sametmax 8y agoYes but I do understand the problem. E.g learning packaging in python is a terrible experience, not because it's hard, it's really not, but because of the noise we accumulated.
- cosmie 8y ago> not because it's hard, it's really not, but because of the noise we accumulated. In an effort to avoid the noise, would you be so kind as to point me in the direction of the current way to handle packaging in python? I don't work in Python consistently enough to be up to date on this, but every time I do it's hard for me to suss out the best way to package up and distribute the work for internal end users.
- zild3d 8y agobrings to mind C++. If you learned it 15 years ago and haven't kept up, new C++ will look like a new language. Don't think the same is true for python (yet?)