9 ms·
It's hard to understand that they could think Python 2 to be the valid choice for this, as though Python 3 was "the future" and things are heading there. Pytho
by andrewstuart 9y ago
It's hard to understand that they could think Python 2 to be the valid choice for this, as though Python 3 was "the future" and things are heading there.
Python 3 is the present, we are there, Python 2 is the past and in 2 short years it will be unsupported and whatever you learned from this resource will need to be re-learned for Python 3 pretty damn quick.
Recommendation to those learning Python: avoid this Google resource and instead use Zed Shaw's "Learn Python 3 The Hard Way" https://learnpythonthehardway.org/python3/ https://learnpythonthehardway.org/python3/
Or you could do things Google's way and then follow up with learning how to use DOS http://people.uncw.edu/pattersone/121/labs/L1_MSDOS_Primer.pdf http://people.uncw.edu/pattersone/121/labs/L1_MSDOS_Primer.p... because I believe things are heading that way.
- CobrastanJorji 9y agoIt's Google deciding to publish their formerly internal documentation as a public service. If they're using Python 2 internally, of course their internal documentation is going to be on Python 2. Releasing it is purely positive. Still, if you need to search for today's reason to switch to DuckDuckGo, I guess Google releasing a free class for the wrong version of Python is as good as any.
- deleted 9y ago[deleted]
- devy 9y ago> Releasing it is purely positive. If you are releasing a free Python class under the Google brand, but the content is almost a decade old[1] and a lot of it will be phased out shortly or unsupported in 2 short years, you are doing the community a dis-service. Stop assuming freebie is always good stuff or Google always release high quality content. Disclaimer: I am a long time python developer and I love Google's service in general. [1] https://www.python.org/download/releases/3.0/ https://www.python.org/download/releases/3.0/
- mieseratte 9y ago> If you are releasing a free Python class under the Google brand, but the content is almost a decade old[1] and a lot of it will be phased out shortly or unsupported in 2 short years, you are doing the community a dis-service. Companies use things that are "out of date" due to various factors. You could shit on a "IBM's COBOL Class" because COBOL is old as shit, but it doesn't change the fact that there is a lot of COBOL out in the world, and a need for folks to learn it so that they may maintain or migrate it. Just because Python 3 is the shiny new version and the future of the language doesn't change that there is going to be a lot of Python 2 out there and folks will need to learn and understand it.
- deleted 9y ago[deleted]
- Cyph0n 9y agoA better analogy would be IBM releasing a tutorial for an unsupported version of COBOL and calling it a tutorial for "modern" COBOL. In a nutshell, it's not about Python 2 being old, it's about calling Python 2 "Python" when that hasn't been the case for a few years now at the least.
- mieseratte 9y ago> A better analogy would be IBM releasing a tutorial for an unsupported version of COBOL and calling it a tutorial for "modern" COBOL. Well, no, they've made no comparable claim. From skimming the material, not only does Google not refer to Python as "modern" but provide the caveat > For Google's Python Class, it's best to use Python 2.7. Although Python 3.x is becoming more popular, this course is designed for Python 2.6 or later. I suppose to some folks they should provide a disclaimer with road flares warning of Danger Ahead, but it's not as if they're intentionally misleading.
- Cyph0n 9y agoThat doesn't sound like a caveat at all. "Becoming more popular" should instead be "will be the only supported version of Python from 2020 onwards". Unless the reader is aware of the state of Python 2 vs. 3, he/she wouldn't even bat an eye.
- JustSomeNobody 9y agoI don't understand what the big deal is. If you learn Python 2, you're 95% of the way to Python 3. Honestly, this is like arguing over spaces and tabs. It gets old.
- PeterMikhailov 9y agoDepending on your opinion, p3 solves Unicode issues.
- JustSomeNobody 9y ago> Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. Python 2 still comes pre-installed on most everything. So, why can't someone coming to Python with little or no experience just be welcomed to use what they have for now? I kid you not, some of these Python3'ers would have a newb bike shed for a week getting a whole Python 3 workflow with virtual environments, etc going before they'd let the person write their first hello, world. They can learn that stuff later, when it matters.
- fermienrico 9y ago>> So, why can't someone coming to Python with little or no experience just be welcomed to use what they have for now? So, why can't someone coming to Python with little or no experience just install the latest version? Just shedding some light on both sides of the argument. I'd prefer people starting out use the latest version because it is not hard to install Python 3 and takes very little effort.
- ehsankia 9y agoYou're not really countering what he said by naming something in the 5%. Yes, there's slightly different string behavior when working with unicode, most things return iterators instead of lists, and print is now a function. Going from knowing Python 2 to 3 is far easier than going from not knowing Python or programming at all to knowing Python 3.
- 9y ago
- rapfaria 9y agoWhy the recommendation for Learn Python 3 The Hard Way? Not only the author was against Python 3 for the longest time (but his Python 2 stuff would be outdated, so less money, right?), his persona was controversial at best here in HN. Don't support Zed Shaw or Terry Goodkind[1], folks. Instead I suggest Real Python[2], which is extensive but to the point, or Automate the Boring Stuff[3], that also has practical examples and free. [1] https://www.theguardian.com/books/2018/feb/26/terry-goodkind-book-cover-shroud-of-eternity https://www.theguardian.com/books/2018/feb/26/terry-goodkind... [2] https://realpython.com/ https://realpython.com/ [3] http://automatetheboringstuff.com/chapter0/ http://automatetheboringstuff.com/chapter0/
- andrewstuart 9y ago>> Why the recommendation for Learn Python 3 The Hard Way? Specifically because even Zed Shaw - probably the most vocal and longest time objector to Python3 has moved on from recommending against Python 3. Thus now that he supports Python 3 then I think he should be supported - history is past. Everyone with a significant industry presence has moved on from recommending against Python 3 - except Google.
- mastazi 9y ago> Everyone with a significant industry presence has moved on from recommending against Python 3 - except Google. Do you have any source confirming that Google is recommending Python 2 as of 2018? Because e.g. the current installation instructions for Tensorflow recommend Python 3.5 or 3.6: https://www.tensorflow.org/install/install_windows https://www.tensorflow.org/install/install_windows
- antoinealb 9y agoThe linked class in about Python 2. But maybe it was just not updated recently.
- wyldfire 9y agoI've never heard of Goodkind before but this particular issue doesn't seem worth any ire. Apparently they didn't like the cover for their book, they made a joke and then apologized. They clarified that the art direction was the problem and not the composition itself.
- sameyolo 9y agoNot really on topic but thought it interesting to see a resource from my alma mater linked here. Do you work with Dr. Patterson or did that randomly come up?
- hsivonen 9y agoThe notion that the Python core devs get to decide when Python 2 should stop being used is not cool. Under the freedoms provided by Free Software licensing, users who have a need to continue to use Python 2 should be able pool their effort to continue to support Python 2. There was an effort called Python 2.8 to do this, but the Python Software Foundation made it change its name and I don't recall what the new name is. It's not particularly nice that the thing that's compatible with what was called Python to begin with is the one that got renamed.
- briffle 9y agoYou seem to not understand how the freedoms of Free Software licensing work. You are absolutely able to go clone their git repo right now (https://github.com/python/cpython https://github.com/python/cpython) and work on it as your own. You can create updates, backport fixes, etc. You can maintain that well after they cease supporting python 2.7. You may not call it Python though, because of trademarks.
- ntnn 9y agoSorry... what? > The notion that the Python core devs get to decide when Python 2 should stop being used is not cool. They don't. They just won't support it anymore, nor provide updates for it. > Under the freedoms provided by Free Software licensing, users who have a need to continue to use Python 2 should be able pool their effort to continue to support Python 2. They can, just not under the name of Python, as this name is owned by the Python Software Foundation. Similarly Canonical would crack down on someone opening a project 'Ubuntu12', continuing to support Ubuntu 12.x versions. > There was an effort called Python 2.8 to do this, but the Python Software Foundation made it change its name and I don't recall what the new name is. And the people who decided to do this are well within their rights to do so - it is free software after all. Just - as explained in the last paragraph - not with the name Python. This isn't only to prevent the brand 'Python' to be influenced by a project out of the reach of the foundation, but also to prevent confusion for newcomers.
- Jedd 9y ago> The notion that the Python core devs get to decide when Python 2 should stop being used is not cool. Not cool, and not true either. Python dev team get to decide - have already decided - when they stop supporting Python 2. Anyone can just it as long as they want, but, of course, without official support. I'm quite happy that some other people were discouraged from misappropriating the name Python 2.8, as that way much confusion lies.
- asdsa5325 9y agoPython 2 being "unsupported" is pretty meaningless.
- cpburns2009 9y agoUnless you discover an internal bug in Python 2 in which case it will never be fixed. Depending on the source of the bug, your options then become: (1) maintain your own patched version, (2) upgrade Python to a version where it is fixed, or (3) use something else. I would personally choose #2.
- coldtea 9y ago>Unless you discover an internal bug in Python 2 in which case it will never be fixed. Or the community -- including companies with huge resources and lots of Python 2 code -- will just fork 2.7 and fix it.
- jamiesonbecker 9y agoExcept the community really can't and live to tell anyone about it (aside from a fringe fork), because the Python Foundation won't let them use the Python name for the fork, even though a fork is in every other way open source and labeled for maintenance purposes only. Anyone who's every ported a very large project from 2 to 3 might end up despising the PSF for this purpose and might tend to search for a new language (Nim? Go? JS? Scala? Ruby?!). So much for the B in BDFL..
- coldtea 9y ago>Except the community really can't and live to tell anyone about it (aside from a fringe fork), because the Python Foundation won't let them use the Python name for the fork Yeah, but a name like "Cobra, a fork of Python 2.7" will do just as well, and everyone that cares enough will know what it is and where to find it.
- dragonwriter 9y agoThe lack of core maintenance isn't meaningless (it's true someone else could step in, but it's not clear they will in any substantial way.) More importantly, the fact that major libraries are dropping Python 2 support is not meaningless. (Again, I suppose, it's possible that people could fork IPython, NumPy, Django, etc., from the last Py 2 supporting version and extend support, but that seems even less likely than the core language getting solid support by way of a community fork.)
- chirau 9y agoYou do know this resource was published circa 2010, right? It's not a new course, and back then Python 3 wasn't anything. Also, you should note that most systems that come with python pre-installed still come with 2.x, so the last update to this (March 2016) could have been accommodating that fact.
- eesmith 9y agoAs evidence to back up this statement, archive.org has a snapshot from Jan. 2013 - https://web.archive.org/web/20130113105850/https://developers.google.com/edu/python/ https://web.archive.org/web/20130113105850/https://developer...
- yorby 9y agothis link appears to be a python 2 book trying to sell you the python 3 version?
- PopsiclePete 9y agoIf this pisses you off, definitely don't read their C++ guidelines, which are straight up from the Clinton Administration.
- blattimwind 9y agoLikely explanation: Not updated in a while and mostly meant for internal use, where developers will mostly interact with Google's legacy systems. I'd also take a guess here and suspect that Google might have a larger than usual share of 2/3 incompatible code (binary-text-boundaries are notorious).
- andrewstuart 9y agoIt's a public facing resource that positions Google as being out of date and backward looking.
- blattimwind 9y agoPossible veracity aside, that's largely a problem of their PR department.
- dwringer 9y agoThat certainly appears to be the perception they've created with many. I don't see it that way entirely, because it seems like any programmer using Python will have to come face to face with the intricacies of how Python 2 and 3 differ. If they write all their projects in Python 3 they may never feel comfortable approaching legacy codebases, but if they start off in Python 2 they're going to be peer pressured into learning 3 as well, and get experience with what goes into porting from one to the other - I'd consider that an invaluable lesson.
- CJefferson 9y agoPython 2 is still the only Python installed by default on many systems, Mac in particular.
- andrewstuart 9y agoIf you're learning a programming language, your decision about which language to learn should not be driven by whether or not the language is preinstalled and you need to go to the trouble of installing one piece of software. "I decided to become a Prolog programmer because it was the only thing installed on my machine."
- JustSomeNobody 9y agoSure it should! A lot of us got started when we only had a choice between BASIC or assembler and we turned out mostly just fine.
- fermienrico 9y agoI disagree. 5 mins of work to install a new programming language impacts so much of what you do with that language and how you would deploy it in production environment. As the GP says - Python 3 is the future. By this logic, we should be using IE on Windows.
- dragonwriter 9y ago> By this logic, we should be using IE on Windows But, if you know nothing about the web and are just learning, and you've got a Windows machine, sure, use IE (or Edge, if it's Windows 10.) Just like if you are starting from zero programming, and self-teaching, sure, use whatever is available in the base install of your OS.
- JustSomeNobody 9y ago5 minutes for you is not 5 minutes for someone new.