+ 3

What is extract method in code refactoring and when we must use it ?

27th Apr 2017, 6:48 AM
Mohammad Edalat
Mohammad Edalat - avatar
2 Answers
+ 2
You can use it to split big methods into smaller ones. Its pretty handy , so you should use it. but its no must.
27th Apr 2017, 7:49 AM
T0nd3
+ 2
If you use it reasonably it increases your code's readability. Which is - needless to say - decreases upkeep cost and further improvements will be easier to commit.
27th Apr 2017, 3:57 PM
Norbivar
Norbivar - avatar