Good advice about getting to DRY

I stumbled across this today and it rings very true.

Importance of reuse
Code reuse has been a topic that seems to keep coming up in my work over and over again. Its probably because I keep seeing repeated code that doesn’t need to be repeated. Its important to realize that the best way to make code reusable is by repeating yourself first and then refactoring. Had I tried to do it the other way around I would have probably solved the wrong problem.

Ref: http://koreyhinton.com/blog/a-simple-solution-in-swift-to-reuse-uidatepicker-with-storyboards.html
Author: Korey Hinton

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s