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

💻 Issue 445 - Deno vs. Oracle: Canceling the JavaScript Trademark

Thursday, November 28, 2024

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 445 Release Date Nov 28, 2024 Your weekly report of the most popular JavaScript news, articles

📱 Issue 439 - Google's iOS app now injects links on third-party websites that go to Search

Thursday, November 28, 2024

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 439 Release Date Nov 28, 2024 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 363 - 7 challenges to do before a React interview

Thursday, November 28, 2024

This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 363 Release Date Nov 28, 2024 Your weekly report of the most popular React news, articles and projects

💻 Issue 445 - Mastering JavaScript Event Delegation

Thursday, November 28, 2024

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 445 Release Date Nov 28, 2024 Your weekly report of the most popular Node.js news, articles and

📱 Issue 442 - Static, Dynamic, Mergeable, oh, my!

Thursday, November 28, 2024

This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 442 Release Date Nov 28, 2024 Your weekly report of the most popular Swift news, articles and projects

💻 Issue 440 - Nio: An Async Runtime for Rust

Thursday, November 28, 2024

This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 440 Release Date Nov 28, 2024 Your weekly report of the most popular Rust news, articles and projects

Data Science Weekly - Issue 575

Thursday, November 28, 2024

Curated news, articles and jobs related to Data Science, AI, & Machine Learning ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

JSK Daily for Nov 28, 2024

Thursday, November 28, 2024

JSK Daily for Nov 28, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Top Linters for JavaScript and TypeScript: Simplifying Code Quality Management Linters are

🦃 iPhone Camera Features Most People Ignore (But Shouldn't) — How to Avoid Overpriced BF Deals

Thursday, November 28, 2024

Also: Nobody Likes Doing Chores Until They're in a Video Game, and More! How-To Geek Logo November 28, 2024 Did You Know You may refer to the general area as just your "ear", but the

Daily Coding Problem: Problem #1622 [Hard]

Thursday, November 28, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Amazon. Given an integer k and a string s, find the length of the longest substring that