Snarf And Barf Programming

Snarf And Barf Programming is like what happens when you do some refactorings.

Copy a mess of code from another area that just about works (the Snarf)

Paste in into a new area (the Barf)

Make it work for the new context

Find the similarities

Once And Only Once like a madman


I think that "Snarf And Barf Programming" should really does (or should) only refer to the copy and paste steps. You should do the refactoring part, but that doesn't strike me as something deserving the term "Snarf And Barf Programming."

See original on c2.com