MENU

Fun & Interesting

You Can Do Really Cool Things With Functions In Python

ArjanCodes 230,831 lượt xem 3 years ago
Video Not Working? Fix It Now

💡 Learn how to design great software in 7 steps: https://arjan.codes/designguide.

Here are a few not-so-common things you can do with functions in Python, including closures and partial function application. Functions are incredibly powerful and you can use them to write code that's really clean and often a lot shorter than when relying on classes and object-oriented programming.

The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-functions.

🎓 ArjanCodes Courses: https://www.arjancodes.com/courses/

🔖 Chapters:
0:00 Intro
1:32 Explaining the code example
3:56 About the Strategy pattern
4:29 Replacing the class structure by functions
9:24 Passing extra parameters using closures
13:37 Using partial functions

#arjancodes #softwaredesign #python

Comment