07:31The Ultimate Guide to Writing Functions
From the creator
π· Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis. 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 π 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: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
Published 2022-12-02 Β· Watch on YouTube β
Availability and playback restrictions are controlled by the original channel.





