filmov
tv
More Python Code Smells: Avoid These 7 Smelly Snags

Показать описание
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.
🔖 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
More Python Code Smells: Avoid These 7 Smelly Snags
7 Python Code Smells to AVOID at All Costs
Pybites Podcast 131 - Write more maintainable Python code, avoid these 15 code smells
Purge These 7 Code Smells From Your Python Code
25 nooby Python habits you need to ditch
Top 5 Bad Code Smells You Didn't Know! 🚫💻 #top5 #codesmells
My Top 3 Code Smells in Python 2021
Code Smell: Magic Numbers & How To Fix It #shorts
7 Python Code Smells Olfactory Offenses To Avoid At All Costs
5 Tips To Organize Python Code
CODE SMELL: RECOGNIZING AND ELIMINATING COMMON CODE SMELLS👃
What is Code Smell?
Spot the Code Smell #01 - Boolean Flags
Amanda Sopkin - The Refactoring Balance Beam: When to Make Changes and When to Leave it Alone
Talk: Aly Sivji - If Statements are a Code Smell
A few common code smells to be aware of and how to fix them
Code Smell #4: Comments
Does your code Smell? 💩
Lambda in a Loop is a Code Smell
Quick Python Refactoring Tips
Smelly code and Magic Numbers
Why You Should Avoid Mixins in Python
Why You Shouldn't Nest Your Code
Design Smell #4 – Long Parameter List
Комментарии