Refactor

(Sing to the tune of “She Loves You” by The Beatles)

Refactor, yeah, yeah, yeah
Refactor, yeah, yeah, yeah
Refactor, yeah, yeah, yeah, yeah

You say you wrote some code
And it smells pretty bad
Your pair programming buddy
Is lookin’ kinda sad


You just refactor
And then you’re having fun
Refactor
Don’t worry ’bout getting done

You’ve coded it ten times
But no one seems to mind
It passes unit tests
But it’s never been designed

So just refactor
’Cause it’s all about havin’ fun
Refactor
’Cause software’s never done, oooooooooooooh!

Refactor, yeah, yeah, yeah.
’Cause if your code smells clean your client won’t get mad

Doesn’t matter when it’s done
Or even what it does
’Cause you’re doin’ XP
And it’s the latest buzz

So you refactor
Cause you know you will be glad
Refactor
And you never will be sad, oooooooooooooh!

Refactor, yeah, yeah, yeah
Refactor, yeah, yeah, yeah ’
Cause if your code smells clean your client won’t get mad
’Cause if your code smells clean your client won’t get mad
’Cause if your code smells clean your client won’t get mad

Yeah, yeah, yeah!
Yeah, yeah, yeah!
Yeah, yeah, yeah, yeah

dikutip dari buku Extreme Programming Refactored: The Case Against XP