tubeshowcase●1,194,391 videosβ™‘ My collection 0
← Learn to Code

Learn to Code24:31

The Ultimate Guide to Writing Functions

ArjanCodes β†—

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.

Keep exploring Learn to Code