5 easy wins to refactor even the ugliest code

Written by mlevkov | Published 2019/08/18
Tech Story Tags: javascript | typescript | refactorit | codenewbie | cleancode | code-smells | learntocode | latest-tech-stories

TLDR Writing clean code can be a challenge when you start on a new project. I put together a list of 5 quick wins that you can either apply to any code base or keep in mind. Each win will start with a bad code sample followed by a good one with an explanation of what changed. No Invariant Methods and no magic numbers or strings are hardcoded values. Redundant variables take up memory, clutter up your code, make it harder to debug and add new features.via the TL;DR App

no story

Published by HackerNoon on 2019/08/18