07 Jul '13, 4am

Oh, the programs you’ll DRY!

Someone just told you your code isn’t DRY, and you have no idea what they’re talking about. You’re fresh out of college, and you’re starting to fear that your Computer Science degree left you woefully unprepared for the challenge of real-world software engineering. “Look, it’s basically the same code in all of these methods,” your coworker tells you. Your coworker has been out of college for 9 months, so you take another look at your code. You’re writing an application to create widgets, and you’ve just finished a feature that made it possible to create a new type of widget. class WidgetFactory def foo_widget Foo.new('widget') end def bar_widget Bar.new('widget') end def baz_widget Baz.new('widget') end def fuz_widget Fuz.new(‘widget’) end end On closer inspection, you agree with your coworker that there’s a definite pattern, but you can’t imagine what you could do about i...

Full article: http://pivotallabs.com/oh-the-programs-youll-dry/

Tweets

“@Golfan: @elkpga Check this out! oh jeez

“@Golfan: @elkpga Check this out! oh jeez

pga.com 07 Jul '13, 12am

I'm not the biggest NBA fan, but I am a proud Texan, so I was glad to see the Houston Rockets make a splash by landing Dwi...

LOOK AT THESE AND THESE AND OH MY GOD THESE

LOOK AT THESE AND THESE AND OH MY GOD THESE

heels.com 07 Jul '13, 10pm

Amp up your look with this incredible ankle boot by Irregular Choice. The Velocity showcases a black quilted leather upper...

@jzkatsopolis Uh oh. You might've missed them:

shop.vans.com 07 Jul '13, 9pm

Shop KIDS Shop Home Vans.com LXVI California Collection Collections Bands Shop All KIDS's Product Boy's Shoes Classics (3....

@noracarolinee oh my god im in love

shop.vans.com 12 Jul '13, 5pm

Since 1875, Liberty has been dedicated to pushing the envelope of the material print aesthetic from London to fashion hubs...

"Too DRY - The Grep Test" (this is one of the m...

jamie-wong.com 13 Jul '13, 5am

But sometimes it impedes maintainability in ways that are not immediately obvious. When working in any language, but parti...

Find Services for USA #Military Members & Progr...

sba.gov 04 Jul '13, 9pm

Online Resources to Help You Get Started – SBA’s Veteran and Service-Disabled Veteran Small Business Guide is a one-stop p...

Learning Processes via @pivotallabs

pivotallabs.com 07 Jul '13, 7am

Every person have their own way of learning, for each one of us there is a method that works better. We have to try and un...

Spying on Your Tests with VCR #NOTPRISM

pivotallabs.com 06 Jul '13, 1pm

VCR is a great tool for recording http requests during a test suite so that you can play them back later when the external...

Lemang Kijal oh my god!

Lemang Kijal oh my god!

kyspeaks.com 03 Jul '13, 2pm

Lemang Kijal oh my god! May 3, 2010 28 Comments If you’re traveling on the road north of Kuantan and past Kemaman, you’ll ...

#USNavy USS John C. Stennis enters dry dock to ...

navy.mil 30 Jun '13, 7pm

BREMERTON, Wash. (NNS) (NNS) -- BREMERTON, Wash. (NNS) - The Nimitz-class aircraft carrier USS John C. Stennis (CVN 74) en...