Python Like a PRO ๐๐ Book
โ ๏ธ๐ This book is still under development (that's why it's so cheap right now, the price will increase once all parts are published).
You need to know what the hell you're doing ๐ฅ๐
Python is one of the most flexible languages I have had contact with.
Everything too flexible enhances the odds of bad decisions.
People often assume that as long as something works then it's probably the proper way of doing so. (It's not!)
Many decisions that are easy to implement may backfire, producing buggy or hard-to-read code.
I've over 9 years of programming experience working for companies in the US ๐บ๐ธ and Brazil ๐ง๐ท. It means that I've seen a lot of ๐ฉ in different cultures.
People are unsure about how to build things from scratch.
They know how to write classes and functions, but they don't know WHEN.
They know they should log, but they don't know WHAT and HOW.
They know they should follow good practices, but they don't know WHICH.
They know they should do SOMETHING, so they end up doing ANYTHING (regardless of correct or not).
Become an engineer ๐๏ธ๐
Engineering can be defined as:
โthe action of working artfully to bring something about.โ
๐๐ปโโ๏ธ That's what you're going to do from now on. ๐
You don't randomly add logs and expect the best.
You don't name modules, functions, and classes by coincidence hoping it makes sense.
You don't just copy Python snippets from StackOverflow and assume it's good practice.
You intentionally write good code, follow good patterns, and build real software that makes sense and scales.
Is this book good? ๐๐ค
Not good โ It's GREAT!
I teach you HOW and WHEN to follow GOOD PRACTICES and DESIGN PATTERNS.
You're going to identify and predict ๐ฉ faster!
You're getting flexible rules you can apply at your daily job.
โค๏ธ You're going to intentionally write code you're proud of!
How can I be sure it's great? ๐๐คฉ
You're lucky that over the past year I had released some incomplete drafts of this book.
Take a look and ask yourself: โHave you been doing any of these wrong?โ
- Handling exceptions in Python like a PRO
- Logging in Python like a PRO
- Organizing Python code like a PRO
๐ฃ๏ธ See what people are talking about it (โ ๏ธ These are only the drafts!)
Who is this book for? ๐๐ค
This book is not for absolute beginners. You should be familiar with Python.
If you're not, add this book to your wish list, learn Python interactively somewhere else, and come back at it then to level up your game.
What you're getting ๐คฉ
I joined startups before they had a codebase. I led teams with complete Python beginners, and I'm sharing what worked:
- You're learning how to build good code from scratch.
- I share REAL EXPERIENCES from real life;
- I tell you what worked for me over the past;
- I give you actionable advice;
๐๐ง Book Content [Under Development!]
โ ๏ธ Contents, Ordering, and Parts may change!
Status
๐ข Done
๐ก Under review (grammar, examples)
๐ต Writing
๐ด Not Started
๐ก Part 1: Projects
- Guidelines
- Structure your project
- Creating modules and entry points
- Structure your code after the problem it solves
- When importing packages
- Making repetitive imports less boring
- Managing dependencies
- Stop using requirements.txt
- The red pill
- pyproject.toml vs requirements.txt
- Install your code locally
- Helper scripts and tasks
- Dealing with simple scripts
- Dealing with complex scripts
- Use linters
-
BONUS
- Sharing a directory from a real company
- Python Templates for you
๐ต Part 2: Good Practices
๐ด Part 3: Packaging and Release to PyPI
โ๏ธ You're going to get the PDF that will allow you to intentionally write GREAT Python code at a DISCOUNTED price โ while it's not fully released. ๐