Vineeth Venudasan
1 min readJan 13, 2020

Early returns. Is also move the content after the early return to a separate function if it’s more than a few lines – my aim is to reduce cognitive load as much as possible, but yes that could be a very subjective topic.

EDIT: corrected errors from typing on phone. Thanks Daan for still reading and responding to it. Might have looked pretty bad with all those typos :)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Written by Vineeth Venudasan

Backend Engineer / Software Consultant. The views expressed here are my own and does not necessarily represent my employer’s positions, strategies or opinions

Responses (1)

Write a response