[Intro]

Sir Mix-A-Lot

Oh my goodness. Paul, look at that code.
It’s so big. *scoff* It looks like
one of those Fortran guys wrote it
But, y’know, who understands those Fortran guys? *scoff*
They only write that stuff because
it looks like job security, ‘kay?
I mean, that method, it’s just so big. *scoff*
I can’t believe it’s so complex, it’s just out there
I mean, it’s gross. Look!
It’s just so…legacy

[Sir Refactor-a-Lot]

I like refactoring and I can not lie
You other coders can’t deny
That when a method uses too much space
And its complexity is staring you in the face
You get stung

Sir Mix-A-Lot

Wanna extract that stuff
Cuz you know testin’s gonna be tough
Deep in the logic it’s glaring
I’m hooked and I can’t stop staring

Oh, man I wanna get fixn’
And make that logic smaller
My metrics tried to warn me
But that mess its got
Exploited that code’s frailty

Ooh, extract method isolates that logic
and makes testin’ easy
And refactoring is so groovy

Sir Mix-A-Lot

Many thanks to Sir Mix-A-Lot for such an amusing song (and Sir Trevor Raps-A-Lot for additional rhymes)– don’t forget to read the original lyrics.