Discover this podcast and so much more

Podcasts are free to enjoy without a subscription. We also offer ebooks, audiobooks, and so much more for just $11.99/month.

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

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

FromPybites Podcast


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

FromPybites Podcast

ratings:
Length:
16 minutes
Released:
Sep 15, 2023
Format:
Podcast episode

Description

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 ... ?
Released:
Sep 15, 2023
Format:
Podcast episode

Titles in the series (100)

The PyBites Podcast is a podcast about Python Development, Career and Mindset skills. Hosted by the Co-Founders of PyBites, Bob Belderbos and Julian Sequeira, this podcast is for anyone interested in Python and looking for tips, tricks and concepts related to Career and Mindset. For more information on PyBites and Python, visit us at https://pybit.es and hit us up on social media!