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

Why you Should Stop Using Fat Functions in Your Lambda Code

by Begin6mDecember 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.

Company Mentioned

Mention Thumbnail
featured image - Why you Should Stop Using Fat Functions in Your Lambda Code
Begin HackerNoon profile picture
Begin

Begin

@begindotcom

Begin is a ridiculously quick platform for building modern web apps, sites, & APIs.

Learn More
LEARN MORE ABOUT @BEGINDOTCOM'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Begin HackerNoon profile picture
Begin@begindotcom
Begin is a ridiculously quick platform for building modern web apps, sites, & APIs.

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