powerfulpython Profile Banner
Powerful Python Profile
Powerful Python

@powerfulpython

Followers
872
Following
9
Media
8
Statuses
237

Advanced Python course: https://t.co/qnUQsGhaCh

Joined June 2016
Don't wanna be here? Send us removal request.
@powerfulpython
Powerful Python
11 months
If you want strategies and a systematic framework for reaching the top 1%, sign up for the newsletter here: https://t.co/yHZgDsIcfy
0
0
0
@powerfulpython
Powerful Python
11 months
Here is the most self-destructive code a Python developer can write: ---- try: do_something() except: pass ---- I call this "The most diabolical Python antipattern" What this does is execute the code inside the "try" block. And if an error is raised - ANY exception
1
0
1
@powerfulpython
Powerful Python
11 months
Learn software engineering skills first, Python second
0
0
1
@powerfulpython
Powerful Python
2 years
0
0
2
@powerfulpython
Powerful Python
2 years
My favorite metric for my progress as a coder: "How little time do I spend debugging?" I love how this captures several dimensions: * Am I making fewer bugs to begin with? * When I do make bugs, am I deciphering and fixing them quickly? * Over time, as the application
0
0
1
@powerfulpython
Powerful Python
2 years
As AI coding tools improve, new opportunities are emerging for those who combine deep technical knowledge with the mental flexibility to augment their productivity with new AI technologies.
0
0
2
@powerfulpython
Powerful Python
2 years
If you want to write better Python, learn OOP. It's useful. Which is why pretty much all realistic Python codebases are built on classes and objects. Writing classes is creating new building blocks. The better you get at that, the easier it is for you to write great code!
0
0
2
@powerfulpython
Powerful Python
2 years
The two most important exceptions in Python There are over 60 exception types built into Python. And honestly, most of them you don't need to know about. But there are two you ought to memorize: TypeError, and ValueError. Both are well demonstrated with int(). int() accepts
0
0
3
@powerfulpython
Powerful Python
2 years
Panda's powerful abstractions Here's a function I wrote: This is pulled from real production code. "df" is a Pandas dataframe. And this function, load_df(), is a "building block" function. It's used to load data from a variety of different CSV files, and process them into
0
0
2
@powerfulpython
Powerful Python
2 years
'The danger of toy code examples is twofold: they are often too abstract to make anyone go “ooh, that’s compelling”, and they are easily refuted with “I would never write it that way anyway”. The danger of overly complex examples is that they provide a convenient strawman for
0
0
3
@powerfulpython
Powerful Python
2 years
“It won’t happen overnight. But if you quit, it won’t happen at all.” - Doug D’Anna
0
0
1
@powerfulpython
Powerful Python
2 years
The core values of Powerful Python Everything I attempt to teach you centers around three core values: 1. Professionalism 2. Craftsmanship 3. Fun Professionalism means you can be relied on. You do what you say, and you follow through. Every team you join, you carry your
0
0
2
@powerfulpython
Powerful Python
2 years
When to use logging: As often as you can. When you insert logging calls early and often, then by the time you need them, your program will have a thorough set already installed... reporting heaps of useful information for troubleshooting, monitoring, and more.
0
0
1
@powerfulpython
Powerful Python
2 years
The new reality of remote work "Remote jobs are only for the top 1%." So sayeth a post I recently found online. Because the world had shifted heavily to remote work for a while... And we all know it has shifted back. But there is hope. When you write code for a living, it is
0
0
2
@powerfulpython
Powerful Python
2 years
AI code generation tools are accelerators. Enhancing the coding abilities you already have. And if you do not have that base of coding skills to begin with... There is only so much it can enhance.
0
0
2
@powerfulpython
Powerful Python
2 years
Let me introduce perhaps the most important concept for getting ahead in the next 10 years: Differential Advantage. That's a lot of syllables. But it is critical every Python professional know this idea, understand it, and successfully leverage it to get and stay ahead. This
0
0
1
@powerfulpython
Powerful Python
2 years
99 advanced Python topics:
0
0
2
@powerfulpython
Powerful Python
2 years
How to be a second rate developer: "Yeah, but when would I actually ever USE this?" I took a deep breath. Five minutes in, and he'd asked this twice already. I was explaining a very complex programming technique to a group of experienced developers. I started by showing a few
0
0
3
@powerfulpython
Powerful Python
2 years
Levels of Python type annotations Python has optional type annotations - also called "type hints". Like this: The annotations here being "Entry" as the type for the "entry" argument, and "dict" as the return type. In fact, there are at least 3 ways type annotations can be
0
1
7
@powerfulpython
Powerful Python
2 years
An example of the kind of post I would like to publish here directly: https://t.co/Bqc7Mxly6k See how it mixes regular prose with formatted code blocks.
0
2
4