7 ms·
Python and pip just being there is a huge advantage for newbies. I really think that part of programming is constantly ignored because all the decision-makers a
by Waterluvian 7y ago
Python and pip just being there is a huge advantage for newbies. I really think that part of programming is constantly ignored because all the decision-makers are not newbies.
- arvinsim 7y agoLearning how to install Python and Pip should be part of the learning process for newbies.
- bshipp 7y agoInstalling the version you need when you want to run a script is arguably easier for newbies than all the error messages arising from an out of date implementation originally included with an OS. it's not like installing python is any more complicated than any other piece of software that needs to be installed. Windows users have had no choice but to do that for decades.
- SeanLuke 7y ago> Windows users have had no choice but to do that for decades. You're saying this like it's a good thing.
- bshipp 7y agoIt's not a good thing or a bad thing. I'm saying it's not a thing at all. If someone decides they want to run a custom ruby or python script the least difficult aspect of that decision is installing the interpreter. For example, I was dealing with someone yesterday who decided they wanted to learn how to write apps for Android. Without even seeing a single line of code (or even knowing which language they would have to learn!!) they had already successfully installed Android Studio and Jetbrains IDEA. Without coming across as some gatekeeping greybeard, I think anyone who has even a glancing interest in programming would agree if you can't follow a one-line/click installation instruction you may want to find a simpler tool for the task than writing your own code from scratch.
- Godel_unicode 7y agoLots of people on just this thread, who have far more than a glancing interest, have expressed their disagreement with this exact idea. The hardest part for lots of people in learning to program is getting over the idea that programming is for Special People, or possibly Wizards, who know lots of incantations which are beyond mere mortals. Please stop trying to convince them they're right. Source: I've taught lots of marketing people, admins, call center techs, etc to program in PowerShell or system Python.
- arvinsim 7y agoOn the contrary, not teaching people how to install the interpreter just perpetuates the idea that it is beyond the ken of mere mortals. And that only "Wizards" should do it. Installing the interpreter is nothing special. It should be taught as such.
- Bjartr 7y agoLearning how to install and configure development environments is an important skill in general, but I'm not convinced having those skills as a prerequisite for exploring programming as a newbie is at all valuable.
- benatkin 7y agoIt is valuable if they start out with python 3 instead of python 2.
- Bjartr 7y agoI'd say that depends on what kind of newbie we're talking about.
- drak0n1c 7y agoOn macOS the best config-free entry to programming is Swift and Swift Playgrounds. Everything else can have config and shell hell for further more advanced learning purposes.
- saagarjha 7y agoYou still have to download Xcode, of course.
- SeanLuke 7y agoI'm sure that my kids will certainly love to hear that they have to learn Unix in order to learn a build system in order to try out Python. It's all part of the "learning process for newbies."
- saghm 7y ago> learn Unix in order to learn a build system in order to try out Python I definitely understand that the installation process for things like python can be confusing to non-programmers, but I think this is a bit disingenuous. You don't have to learn a build system to install it; python was the first programming language I ever learned, and I used it years before I ever even had any idea what a build system is.
- photojosh 7y agoGood grief. What's wrong with going to www.python.org/downloads/ and clicking the big button at the top that says "Download the latest version for Mac OS X"? If you can't even download an installer and run it, then yeah, maybe not quite ready for programming either. Please forgive my snark, but this would be exactly my thought process as a reasonably competent computer user who wanted to learn Python.
- jasonkester 7y agoHe’s right though. When I was six years old, learning to program involved turning on the computer and typing 10 print “hello” run That’s what I want for my kids. And there’s nothing even remotely like it in today’s world.
- em500 7y agoOpen Terminal $ echo "hello" seems pretty much the same to me. Even on Windows you can open the browser console and do > console.log("hello") Just for teaching basic prints, variables, loops and functions, terminal bash on macOS/Linux or Javascript console work just as well as Commodore 64 BASIC. The problem is not that the environment is not available or setup is too difficult. The problem is that there's now way more competition from other shinies readily available (web, apps, games, videos). Even if you boot your home PC straight into a terminal, as soon as the kids find the way to a web browser it's game over. Even on 1980s home micros, if the kids got access to (pirated) games, practically none would volunterily keep on programming BASIC.
- AlexeyBrin 7y agoAFAIK, macOS comes with Python 2.7 and without pip. For any serious, modern, Python development you need to install Python 3 yourself.
- Waterluvian 7y agoAgain the word "serious" is there telling me people are absolutely aloof to the kinds of new developers there are and what it's like to be a non programmer.
- AlexeyBrin 7y agoWhat newbie will start with Python 2.7 at this point in time? Most books and tutorials are updated for Python 3. The default Python 2.7 interpreter from macOS is useless for newbies, it does more harm than good by confusing them.
- Wowfunhappy 7y agoApple could solve this problem by including python3 with macOS...
- Twisell 7y agoThey sure could, but is it worthy to maintain an alternative package and deployment system for which you have no use yourself? Will employees be careful and committed to something useless for their jobs? They previously deprecated Java runtime for similar reasons. And I can’t really blame them, roadmap is crystal clear now, they prefer to assign ressources to develop Swift/Swift UI and improve tooling for native code development.
- Wowfunhappy 7y agoI agree overall, but I do think it's a little sad that you can no longer open a Terminal and start writing Python. I think this legitimately matters in terms of increasing overall tech and programming literacy. Mind, there's still a command line and shell built-in, which I consider far more important.
- benatkin 7y agoNot true. It's better for them to install it themselves so they know exactly what they're using, and so they type python for python 3 and not python3.
- loktarogar 7y agono. it's better for newbies to learn programming rather than fight with operating systems trying to set up an environment to learn programming in
- benatkin 7y agoIf you follow a python 3 tutorial when your computer has python 2 installed on it, that's a terribly annoying way of fighting with your tools. I've seen it happen. I'd rather they don't risk it and just start fresh.
- Bonooru 7y agoI'm gonna disagree on this one. When you're just starting, the installation process can be nontrivial and the terminal window is scary. Having less friction there makes it easier to start and build some confidence. Once you have some idea of what you're doing, you can realize that you want different versions of the language.
- daveFNbuck 7y agoI think this is a better argument for Apple providing a package manager with the operating system so that installing python is as easy as typing "brew install python3". Then it'll be just as easy for newbies to learn less standard languages.
- banachtarski 7y agoIf you have a tough time installing software that has maybe a dozen words or so of instructions in a clear easy-to-read format... you really have no business learning to code until you learn how to use your computer first.
- 7y ago
- dcosson 7y agoIt's honestly terrible for newbies. If they try to use it, there's no pip included. So then they easy_install all their libraries which installs things into different places than most python devs will be used to. Or they easy_install pip first. But even still, everything is installing to system paths, so when they try to install things it fails with permission errors. They find a stack overflow post that says just "sudo" everything and they go to town. And there's no way to reset anything when it gets borked either because it's the system install. Compare that to "brew install python". Now you have the most up to date version, with the right permissions for your user, that you can always brew uninstall and reinstall later if you need a different version or a clean install.
- wyclif 7y agoyou can always brew uninstall and reinstall later if you need a different version That is the wrong way to do it. Just install pyenv/pipenv to manage different Python versions. It's dead simple to maintain system Python, Python 2.7x, and Python3.7.3 that way.
- sametmax 7y agoNot only pip is not provided, but virtualenv neither. The alternatuve to the current decision is for apple to assign people to keep updating python and provide previous versions as packages like linux distrib does. But it has never been the way they do business.