r/learnpython • • Mar 28 '22

Is “automating the boring stuff with python” outdated

It seems like a great book, but it is quite old. Is the code in the book outdated? I dont know if there are different versions but i got the mine in the stand with Ukraine bundle on Humble Bundle.

6 Upvotes

9 comments sorted by

11

u/toddthegeek Mar 28 '22

The 2nd edition of the book was released November 2019. I'd say it's still up to date.

3

u/victor5152 Mar 28 '22

Found out mine was the second edition. Thanks

3

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Mar 28 '22

I don't know if the bundle has the first or second edition (honestly the book bundles aren't usually worth it), but the second one is at least fairly recent and I wouldn't call it outdated. Sure, it won't have newer features, but there's nothing super-important in versions 3.7-3.10 in my opinion compared to how important f-strings were in 3.6.

The thing with programming books is that they will never have the bleeding edge stuff, and they're difficult to keep up-to-date. But that's fine, because ATBS in particular is aimed at beginners who will inevitably continue learning by themselves if they're interested.

1

u/Lovis_R Mar 28 '22

Wasn't switch case introduced in 3.10? I think that is rather important

2

u/Diapolo10 I write code for a living -- https://github.com/Diapolo10 Mar 28 '22

The match statement was introduced, yes, as well as the walrus operator (:=) in 3.8. But I don't see either as a "critical" feature just yet, even if they have plenty of uses. Though part of that is probably my bias as a library developer as I purposefully don't use the very bleeding edge much in my own projects; any features a library uses inevitably restrict it to specific versions of Python.

match is a lot more than just a switch-case, in fact using a dictionary as a dispatch table and dict.get gets you very close to a traditional switch-case anyway.

2

u/languagelearnererer Mar 28 '22

I finished going through it in the last couple of months, you'll run into a couple of 'this is deprecated, use this instead' but they're pretty easy to work out. The rest is fine

2

u/[deleted] Mar 28 '22

For starting to learn python it's fine.

1

u/pipthemouse Mar 28 '22

Have you automated all the boring stuff? No? Then it is ok