02:12More Python Code Smells: Avoid These 7 Smelly Snags
From the creator
๐ก Learn how to design great software in 7 steps: https://arjan.codes/designguide. These are 7 code smells to avoid plus a bonus smell. I describe each smell using a Python example and then show you how to fix it. At the end of the video, I have a few general tips to help you avoid introducing code smells in the first place in your design. The code I worked on in this episode is available here: https://github.com/ArjanCodes/2021-more-code-smells. ๐ ArjanCodes Courses: https://www.arjancodes.com/courses. ๐ฌ Join my Discord server: https://discord.arjan.codes. โจ๏ธ Keyboard Iโm using: https://amzn.to/49YM97v. ๐ Chapters: 0:00 Intro 0:31 Explaining the example 2:45 What is a code smell? 3:04 #1 Too many parameters 5:03 #2 Too deep nesting 10:01 #3 Not using the right data structure 12:19 #4 Nested conditional expressions 13:39 #5 Using wildcard imports 15:33 #6 Asymmetrical code 16:58 #7 Using self when it's not needed 18:31 #8 (BONUS): Not using a main() function 19:02 Tips for avoiding code smells #arjancodes #softwaredesign #python
Published 2021-07-30 ยท Watch on YouTube โ
Availability and playback restrictions are controlled by the original channel.





