The shortcut you need to quickly master Python.
You've been there already: you want to start a new language and you go back to the basics again and again. Honestly, it's frustrating and demotivating. I've been there too. That's why I wrote this book. I want you to become a serious Python developer in the minimum of time and with almost no friction. My take is: As a PHP developer, you already know most of Python.
The approach of the book
- No bullshit. You know what a variable, a for loop, or an object is. We will only focus on what's different. The book is written in a concise and straight-to-the-point style.
- The book shows PHP and Python code side-by-side to help you quickly understand what's going on (PHP code and Python code are highlighted differently to keep things clear).
- It is built to be read in order, and to give you all you need to master Python in a web-oriented approach.
Who is this book for?
This book is suited for PHP developers who want to learn and master Python. This book is only for you if you are a confirmed PHP developer (if not, there are already many other amazing resources out there for you!).
The content is web-oriented and does not talk about data science, but once you master the foundation of Python you could tackle this other topic if you'd like.
We focus on Python itself: even though we talk about some famous web frameworks, we only cover the language itself. It's a great start to then learn Django or Flask through other dedicated courses.
Who are you?
I'm Yann Rabiller, a French professional backend developer. I have been working in this industry for 10 years. I mostly work with Symfony but also with Laravel and Django. I keep a blog where you can follow what I have been learning every week.
Can I read a sample chapter before buying the book?
Sure. You can even have two of them.
You get a 405 pages PDF, watermarked with your email address and an ePub file. The book contains 49 chapters, will be regularly updated for every PHP and Python version, and all the next updates of the book are free.
NB: If you are using an e-reader and experience some indentation issues with code blocks, use "left" as your text alignment instead of "justify".
Every update will come with a changelog to know exactly what you should look for.
What's wrong with PHP?
I still work a lot with PHP and enjoy it. I am not saying Python is a better language. They both have their pros and cons. The goal of the book is to make you a proficient Python developer and to widen your professional opportunities: not to criticize PHP.
Is Purchasing Power Parity enabled?
Yes. If you live in a country with a different cost of living, Gumroad should reflect this on the price. More information about this feature here.
What if I am not satisfied?
Perfection is out of this world, and this book is no exception. If you think this book has not delivered what you expected from it, just send me an email explaining why you are not satisfied so that I can improve it, and I will fully refund you.
Which versions of PHP and Python are covered in the current book version?
The current version of the book (1.3) covers up to PHP 8.2 and Python 3.11.
I have some feedback!
I'm absolutely interested in your feedback. A specific chapter was not clear? A typo somewhere? Something missing according to you? Please email me at email@example.com.Thanks!
Table of Contents
- Before we start
- Language Syntax
- Data Types
- Positional and keyword arguments
- Local and global variables
- Classes and Objects
- Objects, objects… objects everywhere!
- == and is explained
- Imports, Modules and Packages
- Working with strings
- Match case
- Working with regexes
- Magic methods
- Documenting and Debugging Your Code
- Context Manager
- Managing dependencies with pip
- Let's add some poetry
- Monkey patching
- Testing with unittest
- Testing with Pytest
- Interacting with the filesystem
- Working with environment variables
- Interacting with CLI
- Walrus operator
- DTOs in Python
- Standard lib and interesting modules
- Publishing a package
- Interacting with databases
- PEP ?
- Web frameworks
- WSGI and Servers
- Tooling and Linting
- Python Culture