Learning Python and the Power Of Constraints

Hey there,

When I was 15-years old I'd set my mind on becoming the world's greatest guitarist.

I was already a huge nerd at the time—so one beautiful Sunday morning I sat down for a few hours and mapped out a learning plan for this endeavour.

My ingenious plan to turn me into a virtuoso guitarist looked like this:

"Here's a stack of CDs from bands that I like. I’m just going to rotate through these 5 different genres every day and practice for a few hours. That’ll give me maximum exposure and I’ll be able to rock it out in no time."

Come Monday, off I went and bought a nice stack of practice books and magazine lessons for the top 20 blues, jazz, and metal songs I liked.

Pretty sure I also threw in some 16 minute Pink Floyd solos for good measure...

I dragged home the haul—and without even knowing how to fret a basic power chord, I dove into lessons for these wildly differing styles.

And, guess what happened...

Two months later I had made exactly ZERO progress and was ready to give up the guitar altogether. Whoops.

Looking back, I know now what doomed my "ingenious" plan to fail:

Practicing all these different styles of music at the same time confused my brain and mixed up my muscle memory.

All this "mental context switching" didn’t help. It just added overhead and made sure I spun my wheels aimlessly.

Here's why I'm telling you this:

It's easy to make the same mistake when it comes to learning Python.

There's no point denying it—modern software development is super complex.

And it's getting more complicated by the hour...

What looks like a relatively clearly skill set from the outside, turns into a fractal topic as soon as you look closer:

Setting up a development environment, grasping the basic syntax of the language, knowing standard data structures and algorithms and when to apply them, understanding Git and source control, TDD and writing automated tests, designing programs for maintainability, ...

(Taking a deep breath here.)

... learning how to organize your source code, error handling, what frameworks to use and when, interacting with PostgreSQL and MySQL databases, object-oriented programming, static code analysis, Django, Flask, web applications, APIs, design patterns, linters, code coverage, continuous integration, ...

Whoa, buddy.

There's simply A TON of stuff you need to pick up—and it get's more difficult if you try to cover it all at the same time.

If you find yourself in that situation, my advice would be to keep "mental context switches" at a minimum.

Don’t repeat my mistake by trying to learn blues, jazz, and metal at the same time.

It’s too easy to get frazzled and to lose motivation that way. It can drag your learning progress to a halt.

Instead, I found it helps to deliberately limit your choices. Putting some constraints in place will help enhance your creativity and focus:

Concentrate on getting good at one programming language (e.g. Python.)

Learn how to set up and work with just one database (e.g. PostgreSQL.)

Learn how to use one web framework (e.g. Django.)

Use one source control tool (e.g. Git.)

And so on.

Focus on each thing you add to the mix exclusively for some time. Solve problems with the tools and techniques you already know.

Let things settle a bit before you start working on a new skill. It's tough, but I know you can see through it and succeed.

Good luck, and...

Happy Pythoning!

— Dan Bader

Older messages

Video subtitles & transcripts now available on Real Python

Thursday, August 27, 2020

Hey there, I've got a big update to share today... Real Python video courses now have full subtitles and transcripts! I think this is going to do a lot for accessibility and making your favorite

New Python tutorials on Real Python

Saturday, August 22, 2020

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: A Practical Introduction to Web Scraping in

How to write regularly for your programming blog?

Sunday, August 16, 2020

Hey there, When I published my programming blog at dbader.org for the first time in 2012 it felt great. I was happy with the "programmer art" I had created for the website layout, and I was

New Python tutorials on Real Python

Saturday, August 15, 2020

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Pass by Reference in Python: Background and

New Python tutorials on Real Python

Saturday, August 8, 2020

Hey there, There's always something going on over at realpython.com as far as Python tutorials go. Here's what you may have missed this past week: Customize the Django Admin With Python In this

You Might Also Like

BetterDev #259 - How LLMs Work, Explained Without Math and Turning AirPods into a Fitness Tracker to Fight Cancer

Monday, May 13, 2024

Better Dev #259 May 13, 2024 Hi all, We come back with a new issue this week. If you like BetterDev, please help spead word out by refer to your friends. Buy me a coffee would be great too. Many link

Meet OpenAI’s newest GPT

Monday, May 13, 2024

Plus: White House to fund semiconductors and Cruise tests in Phoenix View this email online in your browser By Christine Hall Monday, May 13, 2024 Good afternoon, and welcome back to TechCrunch PM. We

The Story of Project Management & SEO ruined the internet

Monday, May 13, 2024

My name is Philipp and you are reading Creativerly, the weekly digest about creativity and productivity-boosting tools and resources, combined with useful insights, articles, and findings from the

📱 Don't Travel Without This Cheap iPhone Accessory — Run Your Smart Home With a Raspberry Pi

Monday, May 13, 2024

Also: How to Generate AI Art for Free, and More! How-To Geek Logo May 13, 2024 Did You Know Thanks to serious conservation efforts and sustainable harvesting programs starting in the 1950s, the United

JSK Daily for May 13, 2024

Monday, May 13, 2024

JSK Daily for May 13, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Level Up Your JavaScript: Mastering Array Manipulation Techniques Arrays are a fundamental

You rock(et) my world, moms

Monday, May 13, 2024

If you're looking for a Starliner mission recap, you'll have to wait a little longer -- the mission has officially been delayed. View this email online in your browser By Aria Alamalhodaei

Mapped | U.S. States By Number of Cities Over 250,000 Residents 🌎

Monday, May 13, 2024

Eighteen US States don't have a single incorporated area with more than 250000 people. View Online | Subscribe Presented by: Is your portfolio ready for the internet's next evolution? >>

Daily Coding Problem: Problem #1440 [Easy]

Monday, May 13, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Zillow. A ternary search tree is a trie-like data structure where each node may have up

Deepdive – prioritizing for product managers

Monday, May 13, 2024

As a Product Manager, you're constantly juggling everything – ideas, feature requests, strategic initiatives… the works. You want to do it all, but with limited time and resources, you know you

GCP Newsletter #398

Monday, May 13, 2024

News Official Blog Security Threat Intelligence Introducing Google Threat Intelligence: Actionable threat intelligence at Google scale Official Blog Security Introducing Google Security Operations: