paint-brush
5 easy wins to refactor even the ugliest codeby@mlevkov
261 reads

5 easy wins to refactor even the ugliest code

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

Too Long; Didn't Read

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.

Coin Mentioned

Mention Thumbnail
featured image - 5 easy wins to refactor even the ugliest code
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
Also published here