Python Morsels

Love the Code You Write

3 Weeks to more readable, maintainable code
with Trey Hunner on June 6, 2023

This workshop has sold out.

Join the wait list to get early notice about the next workshop.

Trey's face, hands on a keyboard, sparkles, and a cat next to a computer

What if your Python code was more readable?

Tired of looking back at your old Python code and wondering "why did I write it that way?" 🤔

Want to improve the readability and maintainability of your code?

3 Weeks of Python refactoring

Join me for a three-week series on refactoring Python code, starting on June 6.

We'll take functional Python programs and refactor them to make each more readable and maintainable. We'll use many Python features along our refactoring journey, pausing occasionally to discuss when we might prefer one technique over another.

Mistakes are encouraged

In each session, you can expect…

  • Brainstorming and collaboration: be ready to type in the chat or unmute yourself!
  • Variety: we'll refactor 3-5 Python code blocks per session
  • Active recall: you'll practice recalling familiar concepts and discover new ideas too
  • Mistakes: we'll sometimes make the code less readable and then learn from our mistakes

Bring your questions and your code

We'll spend the first 60 minutes of each session refactoring as a group. These first 60 minutes will be recorded, so you can re-watch later in case you miss anything.

The last 30 minutes of each session will not be recorded, so we can answer more personal questions and take a look at your code (if you're willing to share).

When is this?

This refactoring adventure will come in three 90 minute sessions:

  • June 6, 2023 at 5pm PT (8pm ET)
  • June 13, 2023 at 5pm PT (8pm ET)
  • June 20, 2023 at 5pm PT (8pm ET)

You can save a seat in all three sessions for $250.

Save your seat in this small workshop

I want to spend as much time as possible chatting with you about your code, so these sessions will be limited to 30 attendees.

Ready to claim your spot?

All 30 seats are claimed. Join the wait list below.

What others say about Love the Code You Write

Love the Code You Write is a completely different paradigm on learning how to write Python code. Come into the class knowing the language's constructs and "syntactic sugar" and you'll come out knowing how to write real code.

I expected to learn a little more about Python from these sessions, but it was so much more! This was better than either a MOOC or a university programming class. I learned when to use certain Python constructs, how to use them, why one construct was better than another, and just as importantly, when not to use specific constructs.

I learned a ton about Python. Had I known beforehand how much great information I would get out of these sessions, I wouldn't have even blinked at the cost. I knew after the first session that this was absolutely worth the time and money.

This was one of the best programming experiences I've had.

Michael Dahlberg
Linux System Administrator & Prospective Python Developer

This Love the Code You Write class with was great. It was very engaging and not boring! This opened my mind to new Python idioms and reinforced others I already knew about.

I also really appreciated the lesson recaps Trey sent out. Even though I haven't had time to work on any exercises on my own yet, this was still worth it for me.

Software Engineer

Love the Code You Write will help you understand how to refactor your code without living in fear that you are going to break everything.

I really enjoyed the class. I liked that you did small, step-wise refactorings and emphasized the importance of running the tests often to make sure nothing was broken. This class reinforced good practices and provided a lot of re-enforcement of Python idioms.

Leon Webster
Retired Systems Architect

Have questions?

What level of Python experience is required to attend?

If you can write loops, functions, and classes from scratch in Python, you should be able to keep up with most of the code we'll be refactoring.

What topics will be covered?

We'll mostly focus on refactoring using the Python standard library, but we may discuss common third-party libraries as well.

We'll mostly steer clear from diving deep into niche topics, though you're welcome to ask about niche topics during the Q&A sections.

Are the sessions recorded and available for attendees to re-watch later?

Yes they will be! You'll receive a video recording with closed captions within 2 days after each session.

The last 30 minutes will not be recorded, so if you'd prefer not to have your question recorded you can ask it during the final portion of each session.

Can I purchase a recording of this workshop?

Not currently, though I may sell access to recordings of this workshop at a later date.

Do keep in mind that the last 30 minutes of each session will not be recorded and this workshop is very interactive and intended for a live audience.

What resources will be provided for continued learning after this series is over?

After each session, you'll get access to the initial code we started with, the code we ended up with, and automated tests to verify that our code continues to work.

I highly recommend attempting each refactoring on your own a few days after each session. This individual rehearsal serves two purposes:

  1. To help you identify which refactoring opportunities you identify more quickly and which ones you struggle with
  2. To help reinforce your learning: practicing is essential for honing your skills
Can I send you my own code to look at?

Yes! As long as you're okay with me sharing the code during the 30 minute Q&A session.

I'll share details on how to share your code before the sessions begin.

Will attendees receive a certificate of completion after the workshop?

We don't have plans to send a certificate of completion, but if your employer needs a certificate of completion (i.e. for reimbursement purposes) please email us and we'll make a certificate for you.

This workshop has sold out.

Join the wait list to get early notice about the next workshop.