5 VERY common code smells and how to fix themby@mlevkov
6,197 reads

5 VERY common code smells and how to fix them

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

If you think something is missing, please check out my previous post, 5 easy wins to refactor even the ugliest code. In this post I will go over 5 very common code smells and how to fix them. Conditionals should each get their own line. It’s important to follow convention to ease development. Properly annotate your optional parameters in Typescript/Javascript. Use the ‘?’ instead of the undefined definition. Watch out for “Dead Stores Stores Stores’”.

Company Mentioned

Mention Thumbnail
featured image - 5 VERY common code smells and how to fix them
Mikhael Levkovsky HackerNoon profile picture

@mlevkov

Mikhael Levkovsky

Receive Stories from @mlevkov

react to story with heart

RELATED STORIES

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