Title | : | The Ultimate Guide to Writing Functions |
Duration | : | 24:31 |
Viewed | : | 178,445 |
Published | : | 02-12-2022 |
Source | : | Youtube |
Over the years, I’ve seen a lot of code by different people, and my conclusion is that writing great, well-designed functions is difficult. So, I made this guide, which includes the 7 most important things you should do when writing functions. 👉🏻 The code I worked on in this video is available here: https://github.com/ArjanCodes/2022-funcguide 🚀 Next-Level Python Skillshare Class: https://skl.sh/3ZQkUEN 👷 Join the FREE Code Diagnosis Workshop to help you review code more effectively using my 3-Factor Diagnosis Framework: https://www.arjancodes.com/diagnosis 💻 ArjanCodes Blog: https://www.arjancodes.com/blog 🛒 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: https://twitter.com/arjancodes 🌍LinkedIn: https://www.linkedin.com/company/arjancodes 🕵Facebook: https://www.facebook.com/arjancodes 📱Instagram: https://www.instagram.com/arjancodes 👀 Code reviewers: - Yoriz - Ryan Laursen - James Dooley - Dale Hagglund 🎥 Video edited by Mark Bacskai: https://www.instagram.com/bacskaimark 🔖 Chapters: 0:00 Intro 1:11 Tip 1: Do one thing and do it well 5:17 Tip 2: Separate Commands from queries 6:53 Tip 3: Only request information you actually need 9:27 Tip 4: Keep the number of parameters minimal 14:55 Tip 5: Don’t create and use an object in the same place 17:24 Tip 6: Don’t use flag arguments 19:59 Tip 7: Remember that functions are objects 22:56 BONUS: Tips for naming functions and parameters #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!
![]() |
7 Python Code Smells: Olfactory Offenses To Avo... 22:10 - 367,542 |
![]() |
Click: Build Your Own Command Line Interface Tool 25:12 - 15,999 |
![]() |
The purest coding style, where bugs are near im... 10:25 - 900,275 |
![]() |
Protocol Or ABC In Python - When to Use Which One? 23:45 - 198,175 |
![]() |
15 Python Libraries You Should Know About 14:54 - 370,786 |
![]() |
Refactoring A Tower Defense Game In Python // C... 36:49 - 256,344 |
![]() |
5 Tips For Object-Oriented Programming Done Wel... 16:08 - 199,683 |
![]() |
The 3 Laws of Writing Readable Code 05:28 - 337,906 |