TLDR Web Dev · ARTICLES & TUTORIALS

AVOID THE LONG PARAMETER LIST

testing.googleblog.com2 min read

Summary from the TLDR Web Dev newsletter

Long parameter lists in functions can be hard to understand and maintain. Instead, it's better to create value objects that group related parameters into a single object. This makes the function calls simpler and makes the code more maintainable.