Mastodon: what website or resource would you recommend for a senior engineer to quickly refamiliarise himself with #Python 🐍 at industry level?

So, more about advance stuff eg structuring a project, OOP particularities, how to add tests, common libraries to rely upon, etc—not "this is how a for loop works".

Thank you ❤️

@xurxodiz I can answer some of these questions but it's 2am so I'll have to do it later today.

Remind me if I forget #adhdlife

@xurxodiz Dead Simple Python is excellent.

Its tagline is, “Python for the impatient programmer,“ and the idea is to dive right into Python stuff, without teaching you how to start programming.

https://nostarch.com/dead-simple-python

Dead Simple Python

A thorough intro to every feature of the language, for programmers who are impatient to write production code.

@tero sounds good, I'll take a look, thanks!
@xurxodiz Also, for testing, do yourself a favor and take a look at Pytest instead of the built-in unittest–the book Python Testing with Pytest by @brianokken is a very good way to dig into that.
@tero Thanks! That's the kind of insight I'm looking for ❤️

@xurxodiz https://packaging.python.org/en/latest/ (essentially the official documentation) has quite a bit of good info about structuring a project in #Python specifically. I use it as a reference often.

Aside from that, there's probably a lot of good info in resources that aren't specific to Python. Some of the things you're asking about carry over well between different languages.

Python Packaging User Guide

The Python Packaging User Guide (PyPUG) is a collection of tutorials and guides for packaging Python software.

@diazona Thanks, I'll look at the docs 👀

As for your aside, the general common guidelines I know already, but I want to learn "the python way" in particular, be it standards, conventions, tools or flows that may be specific to the ecosystem and i may not know coming from other stacks.

@xurxodiz Ah I see what you mean. I don't know about specific resources for that; most of what I've learned on the topic I picked up from reading other people's code and blog posts and that sort of thing. But I hope you get some good leads from other people! I'll be keeping an eye on the responses, I'm curious.
@xurxodiz There is the book Cosmic Python by Percival/, an O'Reilly book but which is also readable with all latest updates, for free, at the author's personal site, http://cosmicpython.com/ (gah, which is down for me today???) It probably has some stuff which is beneath you, but also along the way is a rapid hands on tour of best practices and high level design concerns, writing code to be testable, etc
@tartley @xurxodiz I love the TDD book from Harry, so this book you mentioned is now a must-have for me
@madtyn @xurxodiz yes, his previous TDD book is an absolute master class in everything from TDD to design to webdev
@madtyn @xurxodiz Cosmic lives up to that! I was meeting with a highly esteemed remote colleague, getting into some deep design issues, and said casually "have you seen this book...?" And he said "Oh no, that book is not on my bookshelf. Because it is permanently on my DESK. It never leaves my side."

@tartley @madtyn Thank you! Site is down for me too, but luckily there's a copy over at Github I can follow:

https://github.com/cosmicpython

Cosmic Python

The opposite of Chaos is Cosmos. Pythonic ways of Managing Complexity - Cosmic Python

GitHub
@xurxodiz You have to start with #Monty, and then #Python.
@amilgz you joke but that's where the name comes from 🙂
@xurxodiz Espera, o quê? De verdade? Nom tinha ideia disso!