[Python Dependency Pitfalls] "Re-inventing the wheel" disease

Hey there,

PyPI, the Python packaging repository, now contains more than 100,000 third-party packages in total.

That's an *overwhelming* number of packages to choose from...

And this feeling of overwhelm and "choice paralysis" is exactly what held me back earlier on in my Python career.

Here, let me explain:

Back when I got "serious" about building my Python skills, mastering the syntax of the language was NOT the hardest part.

Python's syntax is quite clear and intuitive by comparison, and there's a (relatively) obvious path to learning it.

But when it comes to Python's 100k+ libraries and frameworks that's simply an OVERWHELMING number to choose from (and there's no way to memorize all of them.)

So anyway, what tripped me up as a fledgling Pythonista was this:

I had the basics of Python under my belt, but I struggled when it came to adopting the right workflows and tools of the "ecosystem" surrounding the core language.

Thus, I wasted time reinventing existing solutions left and right...

Sometimes I spent DAYS writing my own (crappy) versions of common building blocks like config file parsers, data validators, or visualization tools.

Now, sure I learned quite a bit from doing that—

But I kept repeating the same mistake and was "reinventing the wheel" even when under a tight deadline.

In hindsight, my ignorance caused me a ton of undue stress and sleep deprivation.

Part of it was overconfidence in my abilities, and another part was a lack of experience using "bread and butter" tools like the pip package manager, virtual environments, and requirements files.

Once I got the hang of Python's dependency management tools and workflows I was able to overcome my "reinventing the wheel disease" relatively quickly.

Mastering those tools and coming up with strategies for identifying high-quality Python packages opened up a whole new world to me:

By leveraging Python's packaging ecosystem I was suddenly coding at a higher level of abstraction.

And it had a MASSIVE impact on my productivity and efficiency.

Saying it allowed me to 10X my output wouldn't be too far off.

If you use Python and you're wondering how to go from "writing scripts" to "building applications"—

Then there's a good chance you could benefit from focusing on your dependency management skills.

You might be ready for a similar "quantum leap" in your productivity.

In Managing Python Dependencies With Pip and Virtual Environments, I give you the exact step-by-step workflows I use every day to work on Python projects small and large.

When you add just one of these tricks to your personal dev workflow you'll *permanently* increase your productivity and efficiency as a developer.

Details here:

realpython.com/products/managing-python-dependencies/

— Dan Bader

Older messages

[Python Dependency Pitfalls] Artisanal "from-scratch" development

Friday, September 9, 2022

Hey there, The other day I got this question from Newsletter member Newvick in my email inbox: ~~~ I'm trying to get past the beginner's stage in Python and one problem I have is: When do you

[Python Mastery] Learn Python in 21 days!!!!11 (what a lie)

Friday, September 9, 2022

Hey there, One of the first programming books I ever bought was "Teach Yourself C in 21 Days." This four pound tome came with a CD-ROM that included an ancient version (3.1) of the Borland

[Python Dependency Pitfalls] What dev managers expect from Python candidates

Thursday, September 8, 2022

Hey there, My friend Og is a senior manager at Red Hat and works with a large team of developers and quality engineers using Python. I got to pick his brain on what he thought were the most important

[Python Mastery] The secret to "ethical self-promotion"?

Thursday, September 8, 2022

Hey there, Here's some food for thought: There's a difference between *doing* a great job as a Python developer, and *to be seen doing* a great job. Being a skilled developer among peers—and

[Python Mastery] What does it mean to "master" Python?

Wednesday, September 7, 2022

Hey there, A couple of years ago I'd become quite interested in martial arts. Hours upon hours of watching "The Karate Kid" growing up must've taken their toll on me... And so, I

Register Today: Getting started with logging with the ELK Stack: A primer for beginners

Monday, October 3, 2022

elastic | Search. Observe. Protect Getting started with logging with the ELK Stack: A primer for beginners Register now Date & Time Thursday, October 20th, 2022 12:30 pm SGT, 3:30 pm AEDT Find my

SRE Weekly Issue #341

Monday, October 3, 2022

View on sreweekly.com A message from our sponsor, Rootly: Manage incidents directly from Slack with Rootly 🚒. Rootly automates manual tasks like creating an incident channel, Jira ticket and Zoom rooms

Stadia died because no one trusts Google — and Mandated diversity statement drives Jonathan Haidt to quit academic society

Sunday, October 2, 2022

Issue #908 — Top 20 stories of October 03, 2022 Issue #908 — October 03, 2022 You receive this email because you are subscribed to Hacker News Digest. You can open it in the browser if you prefer. 1

Tech Lead Digest #109: Your CTO Should Actually Be Technical

Sunday, October 2, 2022

And more news, tutorials and articles about building better teams, culture, and leadership in this week's issue. #109 — October 03, 2022 View in browser Tech Lead Digest Spread the word, build the

React Digest #376: Get in Zoomer, We're Saving React

Sunday, October 2, 2022

And more news, tutorials and articles about React in this week's issue. #376 — October 03, 2022 View in browser React Digest Spread the word, build the community, share the knowledge with your

Digest #71: Saving 50GB of Disk Space with One Character 😳

Sunday, October 2, 2022

Digest #71: Saving 50GB of Disk Space with One Character 😳 #71: Saving 50GB of Disk Space with One Character 📖 POSTS OF THE WEEK Building applications with Step Functions In this tutorial series, you

C# Digest #435: ASP.NET Core - Why async await is useful

Sunday, October 2, 2022

And more news, tutorials and articles about C# and .NET in this week's issue. #435 — October 03, 2022 View in browser C# Digest Spread the word, build the community, share the knowledge with your

Supercharge Accessibility & Why designers quit

Sunday, October 2, 2022

In this week's issue of Creativerly: Your agile iPad app for deft note-taking, where remote teams work together, a short notes manager, and a lot more. Creativerly Creativerly Supercharge

The Station - Geely's Europe expansion continues, Argo robotaxis on the Lyft app and Tesla AI Day takeaways

Sunday, October 2, 2022

TechCrunch Newsletter TechCrunch logo The Transportation logo By Kirsten Korosec Sunday, October 02, 2022 Welcome back to The Station, your central hub for all past, present and future means of moving

☁️ Azure Weekly #389 - 2nd October 2022

Sunday, October 2, 2022

Azure Weekly Newsletter Issue #389 powered by endjin Welcome to issue 389 of Azure Weekly. A recurring theme over the last few months has been "trimming IT budgets", and there's another