paint-brush
Why you Should Stop Using Fat Functions in Your Lambda Codeby@begindotcom
4,363 reads
4,363 reads

Why you Should Stop Using Fat Functions in Your Lambda Code

by BeginDecember 3rd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Fat Lambda is an anti-pattern in which you group related code together in one or more files. Fat lambda uses internal routing to decide what code to execute based on the invocation event. The debate over whether to use a single-purpose function vs. a fat lambda continues to this day. Fat functions do not follow the [single responsibility principle] of the single responsibility principle. Instead of creating a single function that handles multiple responsibilities, we have the single purpose pattern where many functions do only one thing.
featured image - Why you Should Stop Using Fat Functions in Your Lambda Code
Begin HackerNoon profile picture
Begin

Begin

@begindotcom

L O A D I N G
. . . comments & more!

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite