#131 - Write more maintainable Python code, avoid these 15 code smells episode artwork

EPISODE · Sep 15, 2023 · 15 MIN

#131 - Write more maintainable Python code, avoid these 15 code smells

from Pybites Podcast · host Julian Sequeira & Bob Belderbos

This week we talk about code smells. 💡Code smells are characteristics in the code that might indicate deeper issues or potential problems. While they're not necessarily bugs, they can be a sign of poor code quality or maintainability issues. 😱We distilled 15 common smells ranging from generic programming to Python specific issues. We hope it will make your more conscious of your code as well as code you'll review. 🐍 💪If you have any feedback, hit us up on:- LinkedIn- X- Email(Also for any podcast topic requests ...)Mentioned Dictionary Dispatch Pattern videoAnd to write cleaner, more maintainable code, in the context of (complex) real world applications, check out our 1:1 coaching options.Chapters:00:00 Intro music00:20 What are code smells?01:11 1. Long functions or classes01:46 2. Duplicated code02:25 3. Data Clumps03:13 4. Using the global space03:52 5. Magic numbers04:38 6. Primitive obsession05:06 7. Overusing comments06:23 8. Too deep nesting07:36 9. Switch statement or long if-elif-elif-else chains08:41 10. Too deep inheritance09:45 11. Dead code10:21 12. Misusing (nested) listcomps11:03 13. Single letter variable names12:03 14. Mutable Default Arguments13:05 15. Error Silencing14:04 Wrap up14:56 Outro musicThanks for tuning in as always 🙏 and next week we'll be back with a brand new episode ... 🎧

This week we talk about code smells. 💡Code smells are characteristics in the code that might indicate deeper issues or potential problems. While they're not necessarily bugs, they can be a sign of poor code quality or maintainability issues. 😱We distilled 15 common smells ranging from generic programming to Python specific issues. We hope it will make your more conscious of your code as well as code you'll review. 🐍 💪If you have any feedback, hit us up on:- LinkedIn- X- Email(Also for any podcast topic requests ...)Mentioned Dictionary Dispatch Pattern videoAnd to write cleaner, more maintainable code, in the context of (complex) real world applications, check out our 1:1 coaching options.Chapters:00:00 Intro music00:20 What are code smells?01:11 1. Long functions or classes01:46 2. Duplicated code02:25 3. Data Clumps03:13 4. Using the global space03:52 5. Magic numbers04:38 6. Primitive obsession05:06 7. Overusing comments06:23 8. Too deep nesting07:36 9. Switch statement or long if-elif-elif-else chains08:41 10. Too deep inheritance09:45 11. Dead code10:21 12. Misusing (nested) listcomps11:03 13. Single letter variable names12:03 14. Mutable Default Arguments13:05 15. Error Silencing14:04 Wrap up14:56 Outro musicThanks for tuning in as always 🙏 and next week we'll be back with a brand new episode ... 🎧

NOW PLAYING

#131 - Write more maintainable Python code, avoid these 15 code smells

0:00 15:38

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

Big Old Life: Heather Blackbird interviews people on planet earth. Heather Blackbird loves asking questions. This podcast is a learning experience. Join me, Heather Blackbird, as I talk to people about their lives. Frequency of new episodes is a little all over the place and I'm learning as I go. Big Old Life is a small way of talking about the vastness of life, one person at a time. If you are reading this or found this podcast it's probably because someone you know gave you a link to it. :) Explicit The Sacred +Profane Podcast nephtaragrace The Sacred + Profane Podcast is a provocative conversation dedicated to cementing a better future for all. We specialize in unpacking the nuances of what is considered sacred and profane, particularly focusing on sex, death, and all that pertains to the circle of life. Our aim in focusing on such ”taboo” subject matter is to demystify what is unconscious, bring to light what has been known for centuries as ”the occult,” and empower the rapid transformation that is occurring on the Planet. Explicit Undeniable w/ Braxton Curtis Braxton Curtis The official Podcast of Braxton Curtis.A Father, Husband, and Business Owner just trying to figure it all out. Explicit Bitcoin Gateway Lea meakin Welcome to Bitcoin Gateway, the podcast where we dive deep into the world of Bitcoin, hosted by Lea Meakin. This show is for anyone who’s ever felt overwhelmed by the complex world of cryptocurrencies and wants a simple, straightforward explanation. Each episode, we’ll break down the basics of Bitcoin, explore its history, and discuss its potential impact on the future of finance. Whether you’re a complete beginner or just looking to expand your knowledge, Bitcoin Gateway is here to help you understand Bitcoin, one episode at a time. Explicit

Frequently Asked Questions

How long is this episode of Pybites Podcast?

This episode is 15 minutes long.

When was this Pybites Podcast episode published?

This episode was published on September 15, 2023.

What is this episode about?

This week we talk about code smells. 💡Code smells are characteristics in the code that might indicate deeper issues or potential problems. While they're not necessarily bugs, they can be a sign of poor code quality or maintainability issues. 😱We...

Can I download this Pybites Podcast episode?

Yes, you can download this episode by clicking the download button on the episode player, or subscribe to the podcast in your preferred podcast app for automatic downloads.
URL copied to clipboard!