paint-brush
5 VERY common code smells and how to fix themby@mlevkov
6,452 reads
6,452 reads

5 VERY common code smells and how to fix them

by Mikhael Levkovsky4mAugust 10th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Mikhael Levkovsky

Mikhael Levkovsky

@mlevkov

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

About Author

Mikhael Levkovsky HackerNoon profile picture
Mikhael Levkovsky@mlevkov

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