03 Sep '14, 5pm

Back to Basics: SOLID

In the above class we have a single command interface that processes commission payments for deals. At first glance the class seems simple enough, but let’s look at reasons we might want to change this class. Any change in how we calculate commissions would require a change to this class. We could introduce new commission rules or strategies that would cause our calculate_commission method to change. For instance, we might want to vary the percentage based on deal amount. Any change in the steps required to mark a deal as processed in the mark_deal_processed method would result in a change in the file as well. An example of this might be adding support for sending an email summary of a specific person’s commissions after marking a deal processed. The fact that we can identify multiple reasons to change signals a violation of the Single Responsibility Principle.

Full article: http://robots.thoughtbot.com/back-to-basics-solid

Tweets

Back to Basics: How to groove your move off the tee and into the green.

Back to Basics: How to groove your move off the...

golfdigest.com 29 Aug '14, 2pm

Hit the ball as far as you can, then wedge it as close as you can. That combination has proved very effective for tour pro...

[email protected] steps back into the classroom ...

ninewest.com 03 Sep '14, 6pm

Shipping to United States () Welcome International Customers. We make it easy to shop and ship to your country. Select you...

On Site SEO Basics That Still Apply

brickmarketing.com 24 Aug '14, 4am

On Site SEO Basics That Still Apply Writing by Danielle Bachini in SEO It’s true that SEO has undergone a few facelifts in...

Back on Your Feet

runnersworld.com 31 Aug '14, 2pm

Regular exercise is essential if you want to improve your fitness. But vacations, work, or family obligations can derail e...

I know this applies to very few of my followers, BUT UD Naked Basics vs Naked Basics 2

I know this applies to very few of my followers...

frmheadtotoe.com 29 Aug '14, 12am

Hmmm I have basically hit pan on the original Basics palette. It's one of my favorite go-to neutral palettes. In fact I us...

Back to what I love to do.

hungryrunnergirl.com 28 Aug '14, 11am

I love the attitude in Brook’s face in that photo in front of the bouncy house!! People have such fancy parties for their ...

Drugstore Back to School Makeup!

Drugstore Back to School Makeup!

bubzbeauty.com 31 Aug '14, 12pm

So it’s that time of the year again. Back to school! Do I hear complaining? Hehehe…. I know early mornings can hurt. Just ...

Nike Brings Back Kevin Durant And What It Means For Sneakerheads

Nike Brings Back Kevin Durant And What It Means...

kicksonfire.com 01 Sep '14, 7pm

Kevin Durant is back!!! Whoooooo!!!! Excited and humbled to sign back with the swoosh! — Kevin Durant (@KDTrey5) September...

"@tinadrei08: Team JOSHANE SINGAPORE. .. Solid ...

twitter.com 31 Aug '14, 9am

To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content,...

[Princessa's Diary] Go Back to School with Shopbop!

[Princessa's Diary] Go Back to School with Shop...

sabrina.sg 01 Sep '14, 6pm

Ever since I joined Shopbop as a blogger back in 2011, to be honest, I’ve really just shopped Shopbop for anything that is...

Closet basics that will enhance any outfit:

Closet basics that will enhance any outfit:

michellephan.com 15 Sep '14, 10am

After seeing the feedback from last month’s bra and dress guide , I thought it would be nice to talk about the other basic...

Sakti3 Claims Solid-State Battery Breakthrough ...

greencarreports.com 27 Aug '14, 11am

By Antony Ingram 3,155 views Aug 27, 2014 Follow Antony Reddit This! Share on Facebook Share on Twitter 2014 Chevrolet Vol...

Back To Work

Back To Work

high.heels.com 28 Aug '14, 4pm

Snake Print Party Floral prints are still huge for summer, so don’t panic, but snake print is gaining ground on the hot tr...

Urban Decay Naked 2 BASICS vs. Naked BASICS (original)

Urban Decay Naked 2 BASICS vs. Naked BASICS (or...

frmheadtotoe.com 21 Aug '14, 4pm

Hmmm I have basically hit pan on the original Basics palette. It's one of my favorite go-to neutral palettes. In fact I us...