The easiest way to skyrocket your YouTube subscribers
Get Free YouTube Subscribers, Views and Likes

You Can Do Really Cool Things With Functions In Python

Follow
ArjanCodes

Here are a few notsocommon 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 objectoriented programming.

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

Get my FREE 7step guide to help you consistently design great software: https://arjancodes.com/designguide.

ArjanCodes Blog: https://www.arjancodes.com/blog

Courses:
The Software Designer Mindset: https://www.arjancodes.com/mindset
The Software Architect Mindset: Preregister now! https://www.arjancodes.com/architect
Next Level Python: Become a Python Expert: https://www.arjancodes.com/nextlevel...
The 30Day Design Challenge: https://www.arjancodes.com/30ddc

GEAR & RECOMMENDED BOOKS: https://kit.co/arjancodes.

If you enjoyed this content, give this video a like. If you want to watch more of my upcoming videos, consider subscribing to my channel!

Discord: https://discord.arjan.codes
Twitter:   / arjancodes  
LinkedIn:   / arjancodes  
Facebook:   / arjancodes  

Code reviewers:
Yoriz
Ryan Laursen
Sybren A. Stüvel
Dale Hagglund

Video edited by Mark Bacskai:   / bacskaimark  

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

DISCLAIMER The links in this description might be affiliate links. If you purchase a product or service through one of those links, I may receive a small commission. There is no additional charge to you. Thanks for supporting my channel so I can continue to provide you with free content each week!

posted by shiny399046