Small Functions considered Harmful

Supposed benefits of smaller functions

Do one thing

The fallacy of DRY

The name of the game

Loss of Locality

Class pollution

Fewer Arguments

Hard to Read

Shallow Modules and Classitis

When do smaller functions actually make sense

Network I/O

Property based testing

Conclusion

--

--

--

@copyconstruct on Twitter. views expressed on this blog are solely mine, not those of present or past employers.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Handbook For Your First Week As A Software Developer

Rewriting Your Software Product? Read This First.

The Serverless API

How to Deploy Serverless Stack on Alibaba Cloud Using Terraform

How to Serve Massive Computations Using Python Web Apps.

Serverless Web scrap using AWS Lambda and S3 — Python

Building ARM64-based Docker containers for NVIDIA Jetson devices on an x86-based host.

Creating a React/Redux JupyterLab Extension

starry solar system sky in shades of blue, orange, black, and yellow

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cindy Sridharan

Cindy Sridharan

@copyconstruct on Twitter. views expressed on this blog are solely mine, not those of present or past employers.

More from Medium

What ‘high quality code’ means

Requirements Aren’t Real — A Conspiracy Theory To Explain the Epidemic of Failed Software Projects

Why every line of code matter and why you should care about your error logs

Technical debt in a nutshell