tubeshowcaseā—1,194,391 videosā™” My collection 0
← Learn to Code

Learn to Code22:10

7 Python Mistakes That Instantly Expose Junior Developers

ArjanCodes ↗

From the creator

šŸ’” Learn how to design great software in 7 steps: https://arjan.codes/designguide. This video shows 7 code smells that point to poor design decisions, as well as how to fix them. I'm pretty sure you're guilty of at least one of these smells (as I was in the past :) ), and knowing these will help you write much cleaner, more robust code. The code that I worked on in this video is available here: https://github.com/ArjanCodes/2021-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 1:27 Explaining the example 3:12 Code smell #1: imprecise types 5:52 Code smell #2: duplicate code 7:31 Code smell #3: not using available built-in functions 8:53 Code smell #4: vague identifiers 10:05 Code smell #5: using isinstance to separate behavior 13:40 Code smell #6: using boolean flags to make a method do 2 different things 15:58 Code smell #7: catching and then ignoring exceptions 17:29 Code smell #8 (BONUS): not using custom exceptions 21:30 Final thoughts #arjancodes #softwaredesign #python

Published 2021-06-25 Ā· Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code