r/learnpython • • Sep 28 '19

Automate The Boring Stuff 2ND EDITION

https://nostarch.com/automatestuff2

Did you get the first edition? what are your thoughts on it and what what great books you recommend written in latest Python syntax and features?

404 Upvotes

45 comments sorted by

151

u/shiftybyte Sep 28 '19

I hope you know this book is available for free digitally.

And its much more updated then any printed version you will find of it.

https://automatetheboringstuff.com/chapter0/

Free to read under a Creative Commons license.

44

u/[deleted] Sep 29 '19

the online version features heaps of depreciated functions.

see: http://automatetheboringstuff.com/chapter12/

I was hoping the release of the new book would see the online version updated.

8

u/semidecided Sep 29 '19

Which are depreciated in that chapter?

Are you implying that the print version has updated but the online version has not? Or that they are both ot of date?

36

u/strutt3r Sep 29 '19

I’ve found that there are so many tutorials online it was hard to stay focused, so books from the library or buying them helped me personally but I didn’t realize this was available online and it is nice to know I have this option in addition to my hard copy, so thanks!

9

u/Shinhosuck1973 Sep 29 '19

I purchased the 1st edition and I have to say it is a great book. I switched from Learn Python 3 the hard way. But the topic that I can't seem to find is "Class Object ( Inheritance and Composition) in "Automate the boring stuff." Does the second edition contain this topic. I tried to learn "Class and Object" off internet, but so much different information. I managed to learn the basics, but for intermediate or advance, can't seem to find any text or tutorial on line. Any ways, thank you for the information.

1

u/kaluuee Sep 29 '19

Learning python by o'Reilly is what you want

1

u/Shinhosuck1973 Sep 30 '19

Thank you very much.

9

u/Mellon2 Sep 29 '19

I support the writer so I purchased it

1

u/[deleted] Oct 17 '23

This book was last updated in 2020, for version 3.8.0, so if anyone's looking at this sometime in the future just make sure to buy the 2020 revision if you want a hard copy.

0

u/[deleted] Sep 28 '19

[deleted]

5

u/[deleted] Sep 29 '19

Try Impractical Python Projects as your second book.

It does a great job at introducing more complex topics and uses for existing data structures which you have already learnt.

His approach to tackling the problems really makes you think like a programmer too, and he introduces the concept of pseudocode right from the start.

Some of the projects are very hard (for me) and quite humbling because I know that I would never have come up with the solution by myself.

0

u/[deleted] Sep 28 '19

[deleted]

14

u/[deleted] Sep 28 '19

Python 3 https://automatetheboringstuff.com/chapter0/

Downloading and Installing Python
Warning
Be sure to download a version of Python 3 (such as 3.4.0). 
The programs in this book are written to run on Python 3 and 
may not run correctly, if at all, on Python 2.

0

u/[deleted] Sep 28 '19

[deleted]

4

u/Paul_Engineer Sep 29 '19

I know that Learn Python The Hard Way was in Python 2. That freakin guy.

4

u/AirSetzer Sep 29 '19

Yeah, I tried that one a while ago. Didn't care for it.

0

u/[deleted] Sep 29 '19

[deleted]

5

u/tom1018 tomfaulkner Sep 29 '19

He finally changed his mind on that but was very adamant and absurd about Python 3 being inferior for years.

1

u/Tiktoor Sep 29 '19

I've seen more and more training material move towards Python 3 which is nice to see.

1

u/AirSetzer Sep 29 '19

Definitely! I've been doing project oriented learning, but I should tackle an actual structured series to make sure I have a solid foundation.

18

u/[deleted] Sep 28 '19

I hope the author has updated the openpyxl commands. Many referenced were out-of-date.

9

u/anecdotal_yokel Sep 29 '19

I hope the author has updated the openpyxl commands. Many referenced were out-of-date.

Maybe u/alsweigart can answer?

2

u/AlSweigart Author of "Automate the Boring Stuff" Sep 30 '19

Yep, basically what whocakedthebucket says in reply to this comment. OpenPyXL tends to make a lot of backwards-incompatible changes (to their credit, I like all the changes they do make) so it's taught me that I have to be really specific about the versions I'm covering.

0

u/[deleted] Sep 29 '19

[deleted]

1

u/semidecided Sep 29 '19 edited Oct 01 '19

This book covers version 2.3.3 of OpenPyXL, but new versions are regularly released by the OpenPyXL team. Don’t worry, though: New versions should stay backward compatible with the instructions in this book for quite some time. If you have a newer version and want to see what additional features may be available to you, you can check out the full documentation for OpenPyXL at http://openpyxl.readthedocs.org/.

Al is generally a good guy but he's trying to save face instead of admit his mistake in encouraging people to not worry about using a newer version which as it turns out was not good advice.

9

u/AlSweigart Author of "Automate the Boring Stuff" Sep 30 '19

New versions should stay backward compatible with the instructions in this book for quite some time.

What naive idiot would say something like that? *checks book* Oh, me apparently.

3

u/eykei Sep 29 '19

Honestly it was a good exercise to update the code and have to reference the actual documentation rather than his cliff notes version.

1

u/[deleted] Sep 29 '19

Not when you’re trying to follow the exercises and the syntax given had been deprecated.

10

u/eykei Sep 29 '19

thats exactly what I mean though. You're given a piece of code that's deprecated, and you need to get it working again. It forces you to read the documentation (something you'll have to do to learn any module), rather than copy line by line.

2

u/[deleted] Sep 29 '19

I would agree. That’s how I learned. It forced me to research.

10

u/KingQuin Sep 29 '19

How does this compare to the book Python Crash Course 2nd edition ?

4

u/covah901 Sep 29 '19

Python Crash Course is friendlier to absolute beginners. I thought given the name "Crash Course" it would try to heap information on me in a way that left me unable to understand, so I got Automate The Boring Stuff first, after hearing a lot of good things about it. I got stuck pretty fast and decided to give Python Crash Course a try. So far I've been getting along much better with that one. Once I'm done with Crash Course I'll return to Automate The Boring Stuff.

3

u/FartingBob Sep 29 '19

My early experiences back this up. Having known a very small amount of java script and html (so I was aware of concepts but not really specifics) crash course was easier to start on. Although I am using both so when I find a bit I get Co fused by I can find the corresponding chapter in the other book and see if it makes it clearer.

0

u/[deleted] Sep 29 '19

[deleted]

1

u/KingQuin Sep 29 '19

I have found the free version online for the first edition of the Crash Course. Would I be at a disadvantage by starting with the first edition?

5

u/[deleted] Sep 29 '19

I just got this through a humble bundle so I’ll have to check the edition!

1

u/cgwaters Sep 29 '19

The August 2019 Humble Bundle contains just the first edition.

4

u/ScarletPimpernickle Sep 29 '19

Thank you u/alsweigart ! Bought the 1st edition hard copy and also used the online version. It’s been the biggest help in getting through the baby steps in my python journey so far!

Yes I also ran into deprecated methods, etc. in openpyxl but I figured so what, someone else maintains that and I had to do some research and tinkering on my own to figure it out. I think it helped my own development to have to get through it instead of it all being handed to me on a silver platter.

4

u/AlSweigart Author of "Automate the Boring Stuff" Sep 30 '19

I'll be writing up a blog post about what's new in the second edition. Basically: about 100 pages of content overall, updating the third-party stuff (especially openpyxl), modules for gmail and google sheets, and a few new programming projects (some simple programs like Rock Paper Scissors to provide an idea what programs look like).

1

u/Klekto123 Oct 24 '19

Will you be updating the online version?

1

u/AlSweigart Author of "Automate the Boring Stuff" Oct 25 '19

Yes, sometime in mid-November.

2

u/LiarsEverywhere Sep 29 '19

I've just started studying the free version (at chapter 6 right now). I wonder if I should start over lol

I'll check it out when if it comes out for free.

2

u/ZypherXX Sep 29 '19

Bought the first edition and now I’m a python fanatic!!

1

u/[deleted] Sep 29 '19

For beginners I would recommend 'Python crash course', it's a project based learning. Although it has some old code in it but you will find all the updates on writer's github.

1

u/chimera765 Sep 29 '19

I bought the second edition of PCC and it has some updates too. Great resource!

0

u/[deleted] Sep 29 '19

[deleted]

1

u/WonderfulPlay Oct 08 '19

If I purchase it now, do I get the eBook right away? or is it just pre-order and wait till end of the month?

1

u/[deleted] Sep 29 '19

I took the class (Udemy), got the first edition..great book by the way and also used the site.
Ill probably check out the second edition also.

1

u/su5577 Sep 29 '19

Can python automate anything? How well does it work with windows 10.

I’m trying to create script that can delete all I.E temp files and reset I.E to default settings. If will wasn’t he user first to close I.E before it can reset.

Learning the essentials of python now as I have subscription to Lynda learning courses.

0

u/raddpuppyguest Sep 29 '19

Third edition comes out later this month, so you should probably pick that one up if you want a hard copy.

11

u/whitecarnival Sep 29 '19

How do you know? I can’t seem to find where it says that

4

u/ModElfShin Sep 29 '19

It's the second edition that's about to be released, not the third. Amazon et al have the release date set to October 29 while No Starch Press (the publisher of the printed book) only states "October".