Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do you consider before refactoring code?

I've got an application that just shipped. Since I wrote it, I've learned about amfphp and propel. Both would be 'nice' to be used in the application but I can't say that it would be required at this point.

What types of things do you consider before you refactor code?

like image 595
GeoffreyF67 Avatar asked Nov 30 '22 20:11

GeoffreyF67


2 Answers

Have unit tests to check the code after refactoring.

like image 130
Drejc Avatar answered Dec 09 '22 15:12

Drejc


Effort required versus benefit received and where it fits prioritywise with other work.

like image 28
Jim Anderson Avatar answered Dec 09 '22 17:12

Jim Anderson