➡️ Try Lokalise today: https://bit.ly/arjancodes.
In this video, I’m going to show you the main principles I use to write code that’s less likely to fail, with of course plenty of Python examples. Watch to find out how to avoid writing brittle functions in Python.
💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.
🔥 GitHub Repository: http://git.arjan.codes/2025/brittle.
🎓 ArjanCodes Courses: https://www.arjancodes.com/courses.
🔖 Chapters:
0:00 Intro
0:29 Do Not Check Type Constraints
11:09 Value Constraints
14:21 Optional Values
16:40 Returning None
19:41 Final thoughts
20:33 Outro
#arjancodes #softwaredesign #python