💡 Learn how to design great software in 7 steps: [ Ссылка ].
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: [ Ссылка ].
🎓 ArjanCodes Courses: [ Ссылка ]
🔖 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
Теги
code smellspython code smellsclean codecode smellpython refactoringclean code principlessoftware developmentcode refactoringcode refactoring best practices pythoncode smell pythonsoftware development coursevscode python refactoringcode refactoring vscodesoftware development tutorialpython refactoring tipspython refactoring exercisescode smell middle manCode smells feature envy