paint-brush
Refactoring using Functional Programmingby@arvindkgs
704 reads
704 reads

Refactoring using Functional Programming

by Arvind Kumar GS5mAugust 28th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Refactoring is a tool used for making code more readable and understandable to humans. It does not effect the functionality of your code. Refactoring code is necessary when you have other people reading your code. It also makes it easier to add new functionality and for others to utilize it in their code. So it is important to refactor code. Let’s have a base class with methods extract and replace methods extract (or replace) and extract (replace) methods. This method parses the content based on type, using an if condition that calls the parse method and extracts the properties and returns these (properties)

Company Mentioned

Mention Thumbnail
featured image - Refactoring using Functional Programming
Arvind Kumar GS HackerNoon profile picture
Arvind Kumar GS

Arvind Kumar GS

@arvindkgs

Passionate software developer, Linux enthusiast, clean code crusader, DIY advocate, Tech Evangelist

About @arvindkgs
LEARN MORE ABOUT @ARVINDKGS'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Arvind Kumar GS HackerNoon profile picture
Arvind Kumar GS@arvindkgs
Passionate software developer, Linux enthusiast, clean code crusader, DIY advocate, Tech Evangelist

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
Arvindkgs