Improving Readability Through Fewer Arguments
Senior Code Review Buddy Senior Code Review Buddy
332 subscribers
2,306 views
50

 Published On Oct 10, 2024

Passing arguments into classes and functions is an important part of any programming language. But what happens when a function has too many arguments?

Let’s dive into how you can clean up functions that have slowly grown over time and now take in too many parameters.

While the examples in this video are all in python, this concept should be applicable to every programming language.

You can see the first two code examples referenced in this video here: https://seniorcodereviewbuddy.com/you...

Example 3: https://github.com/seniorcodereviewbu...

Example 3 Improved: https://github.com/seniorcodereviewbu...

The intro music is:
Acid Jazz by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/...
Source: https://freemusicarchive.org/music/Ke...
Artist: http://incompetech.com/

The outro music is:
Funk Game Loop by Kevin MacLeod is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/...
Source: http://incompetech.com/music/royalty-...
Artist: http://incompetech.com/

00:00 Introduction
02:46 Example 1
05:51 Example 2
09:15 Example 3
12:28 Conclusion

show more

Share/Embed