5 VERY common code smells and how to fix them

Written by mlevkov | Published 2019/08/10
Tech Story Tags: javascript | typescript | refactoring | refactor-legacy-code | legacy-code | common-code-smells | code-smells | hackernoon-top-story

TLDR 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’”.via the TL;DR App

no story

Published by HackerNoon on 2019/08/10