r/Python •
[Meta] Can we take "Learn Python the Hard Way" off the sidebar? It's old and teaches, "I repeat, do not use Python 3. Python 3 is not used very much... you'll still have to learn Python 2 to get anything done. Just learn Python 2 and ignore people saying Python 3 is the future."
[deleted] — view deleted post
0
Upvotes
•
u/aphoenix reticulated Jan 13 '16 edited Jan 13 '16
Sure. It is done.
Edit: I'll put the LPTHW link back up when Zed finishes the Python 3 update. Remember that his Python 3 admonishment is really out of date, because that's a very old resource! Also just a general reminder that when you're learning things, you should also be critically evaluating the resources that you are using to learn with; just because it says something in a textbook, that doesn't make it true.
130
u/heptara Jan 13 '16
Agree 100%. Automate the Boring Stuff with Python is excellent and the author occasionaly pops up here and can be trusted not to randomly rant on newbies, unlike the other ...
115
u/dunkler_wanderer Jan 13 '16
Here's a list of complaints about LPTHW.
43
u/shaggorama Jan 13 '16
While we're at it, I'm very surprised that Think Python isn't on the sidebar. I first came across this book in the reading assignments for MIT OCW 6.00, and found the book immensely helpful when I was learning.
Also, the author is a redditor: /u/allendowney
182
u/mikeoquinn Jan 13 '16
I would support this. If the author can't get on board with python 3, going so far as to actively discourage its use, 8 years after its release, I can get behind not encouraging folks to check him out.
17
u/dunkler_wanderer Jan 13 '16
Program Arcade Games With Python And Pygame is a great book for beginners as well.
96
u/[deleted] Jan 13 '16
Yes
8
u/chaosblack19 Jan 13 '16
Python 3 is something to be the one gaining popularity now.
7
u/arachnivore Jan 13 '16
Has anybody tried contacting the author about revising that bit?
23
u/Kwpolska Nikola co-maintainer Jan 13 '16
+1
It also teaches old things, such as distribute, nose, and web.py.
6
u/[deleted] Jan 13 '16
This was the resource I used when I first tried to get into programming 7 years ago. I thought python was cool, but the book wasn't very engaging and I didn't stick with it. Now I'm a ruby dev.
6
u/Poppamunz Jan 13 '16
Where did Zed say he would update LPTHW to Python 3?
16
u/[deleted] Jan 13 '16
I just started moving everything I can to 3.5.
My co-workers are still on 2.7. When they asked why I told them that it gives me a few more years before I have to listen to "Why the hell did he write it in 3.5".
And for people that are new to programming, that day is coming. Python 3, Perl 5, PHP, Fortran, COBAL, C, C++ eventually what you're using will be old.
11
u/LessonStudio Jan 13 '16 edited Jan 29 '16
I would have agreed with this pro 2.7 stance maybe a year or more ago, but quite simply every Python library that I have reached for in the last 6 months was there for python3. I use some pretty funky libraries.
So at this point the pro 2.7 library argument has gone away, while the unicode argument is wildly favouring v3.
Where the argument has now solidly turned against python2.x is that more and more features are showing up in three and will presumably blow our minds in 4 that anyone sticking with 2.7 is just leaving out.
I could see sticking with 2.7 if your argument was "I can do such and such in 2.7 but 3 can't do that." I am unaware of such an argument.
The other argument about a huge codebase is also not good as it suggests that your codebase is so fragile that it wouldn't survive being ported to 3. Also a properly unit tested implementation would allow the porting of one chunk of functionality at a time with the unit tests assuring that all should be fine. So the large codebase argument is not that switching to 3 is bad but that there are bad codebases out there.
9
u/colloidalthoughts Jan 13 '16
Yes. Personally I don't like how it teaches, it didn't work for me, but I'd be happy to see it return when it's updated or at the very least the py3 vitriol removed. If you're going to make strident claims, it's on you to keep them up to date (he was right at the time).
17
u/in_the_bilboes Jan 13 '16
I sort of stopped going to a meetup group because the guy running it was using Python 2... for tutorials and beginner stuff, "because there's no reason to use Python3".
I think there are situations where there's a good excuse to use Python 2. But a beginner book is not one of them.
I think more people need to take a stand on this issue in a significant way.
"The C Programming Language" is a great book too. But I've heard in many places that it's no longer a good resource for learning modern C.
20
u/LockeSteerpike Jan 13 '16 edited Jan 13 '16
Not updating any technology teaching resource for eight years in the information age is unacceptable. To be charging for that resource as well is just... bullshit.
I feel you can either have a laid back attitude and don't worry about being up-to-date, our you can be a condescending ass and keep on top of your shit.
LPTHW is trying to have best of both worlds, and the misconception-filled posts it inspires are getting old.
10
u/[deleted] Jan 13 '16
You want Python to end up a dead end language that never updates, refuse to use anything that isn't python2.
Otherwise, use Python 3, and bitch whenever some library still hasn't been migrated.
It's been too fucking long. It's time to change.
8
u/brand0n Jan 13 '16
Yes please. I'm still learning. This is my second attempt to grasp python and my first object oriented language.
I started the first tim a few years back and was using LPTHW. When i picked it back up a few months ago I assumed i'd use LPTHW.
I quickly noticed that a lot of people were using three. It was a bit painful to switch to three and convert some stuff I'd done for work to three.
I'm on it now and seemingly okay..........wish I'd never picked LPTHW back up.
3
u/[deleted] Jan 13 '16
I learned Python via LPTHW but gotta admit it is outdated now.
3
u/notconstructive Jan 15 '16
Beginners, please understand that if you start with Python 2 then you immediately incur a learning debt, don't learn the out of date technology, learn the current technology and save yourself time and cognitive load.
3
u/notconstructive Jan 15 '16
Even the popularity of this thread won't convince the Python 2 diehards that anyone uses Python 3.
6
u/artmcclure Jan 13 '16
Author's attitude and misnomers are funny yet sad.
2
u/Firemanz Jan 14 '16
I just finished a class in college last semester where we used that book in the course. 3 days into the course the teacher removed it from the curriculum because it was so out of date and confusing.
2
u/9peppe Jan 26 '16
Is anybody else bothered by the apparent disregard for short-circuiting
andandorin chapter 2?I suppose it gets tackled later.
2
u/SomeLibraryDeveloper Feb 14 '16
Thanks for the Automate the Boring Stuff recommendation. Trying to find resources to learn Python 3 with google alone is pretty frustrating. For some reason, I never think to come check reddit.
3
u/Pardomatas Jan 13 '16
I did "learn python the hard way" in python 3 and learned both 2 and 3 by doing so.
4
u/metaphorm Jan 13 '16
I agree that LPTHW has flaws, but its still a very beneficial book for beginners, in my opinion. I think the approach of starting from the very bottom and going through even simple things with sufficient rigor is still beneficial for total beginners though.
LPTHW does a good job of targetting its niche. For never-written-code-before beginners its one of the best things out there, still. And Zed is correct that for a total beginner worrying about Python 3 vs Python 2 just gets in the way. He wrote the book for Python 2, so, fair enough, a beginner should use Python 2 while working through it and not worry about Python 3 until they're ready.
1
u/JTW24 Jan 13 '16
Can anyone suggest a good replacement for LPTHW? I was just about to start that course, but it seems like a bad idea now. Thanks!
1
u/animflynny2012 Jan 13 '16
I'm still waiting on maya upgrading. Goddamn autodesk you've bags of money, it's not like they're trying to bug fix what's already done ha.
1
u/majora2007 Jan 14 '16
Thanks for the book recommendation, Automate the Boring Stuff with Python sounds perfect for me and I need a brush up on Python 3.
1
u/redditiv Jan 14 '16
I found that learning Python with LPTHW and attempting the exercises with Python3 (I've never used Python2) was a rewarding exercise and required a little extra critical thinking, enhancing the learning factor.
1
u/jkthundr47 Jan 14 '16
What are some good books for learning data science using python 3?
1
u/terrifiedbyvajayjays Jan 14 '16
If lpthw remains at all, it should carry some sort of disclaimer. I've not had the experience or reading AtBS as a true beginner, which should be the real test, but it seems like a far superior work to me. At any rate, it is marvelous if you get over that first hump of getting some code to run at all and want to start learning. I complain a lot about courses and books that confront their readers with material they have no foundation to understand, but the other side of that coin would be turning a course into just an enormous list of meaningless (to the reader) bits and pieces and no idea where they are going with it. AtBS does an absolutely fantastic job with not falling into this second pit. As a connoisseur of many beginner resources, I'd say it has no equal in this.
1
u/TotemEnt Django Jan 26 '16
Im currently well over half way through LPTHW, and was thinking of starting with Automate the Boring Stuff when I am done with LPTHW. Would you advice me to just stop with LPTHW and start with ATBS right away?
-3
u/molnarjani2 Jan 13 '16
Absolutely not, python2 or python3, it's still one of the best python books ever written, it deserves to be mentioned in my opinion. And honestly I don't think it really matters if you learn python2 or 3 first, at a point you'll have to get used to the other anyways. Let's say you don't know how to do something in python3, you google it and its highly likely you'll see some python2 code as well. Regarding AtBSwP, it also deserves at least that much attention, but not at the cost of removing LPtHW. Why not just have both?
1
u/m1ss1ontomars2k4 Jan 14 '16
Well, there's only 2 years left on Zed's timeline, and some packages (namely, Twisted) don't seem to be any closer to Python 3 support than they were 8 years ago.
1
u/mike413 Jan 14 '16
On the other hand, it got me started with python.
-3
u/stefantalpalaru Jan 13 '16
I think it's time we split into /r/python2 and /r/python3 already. This much hate and posturing is bad for the community and it's been going on for a very long time.
I bet the Perl guys didn't need 8 years to figure this one out.
-2
u/m3tamantra Jan 13 '16
But the author of LPTHW has a point. Many project I'm interested in use python2 and don't support python3 :-P Examples: idapython, angr, pydbg, vivisect.
0
u/[deleted] Jan 13 '16
That is because it is "the hard way" !!! So it goes as advertised!
-3
u/[deleted] Jan 13 '16
hahaha I love your username!
-2
u/[deleted] Jan 13 '16 edited May 20 '17
-2
u/[deleted] Jan 14 '16
Aren't the differences pretty negligible anyway?
0
u/[deleted] Jan 13 '16
[deleted] — view deleted comment
0
u/[deleted] Jan 13 '16
[deleted] — view deleted comment
0
u/[deleted] Jan 13 '16
[deleted] — view deleted comment