29 Apr '13, 2pm

How to refactor a long if/elseif chain: "On the death of ifs"

The video starts out by explaining that if statements like this one might be a sign of bad design, and that this piece of code will probably grow over time and become an eyesore. While I don’t think the possibility of something growing over time and becoming an eyesore sometime in the future is a good reason to start making the code more extensible, I do believe that this code could use some refactoring.

Full article: http://jeffkreeftmeijer.com/2013/on-the-death-of-ifs/

Tweets

And just like that, @manhattanmetric out-arrowe...

jeffkreeftmeijer.com 29 Apr '13, 3pm

The video starts out by explaining that if statements like this one might be a sign of bad design, and that this piece of ...

Death toll in Bangladesh garment-factory collapse SURPASSES 300

Death toll in Bangladesh garment-factory collap...

ecouterre.com 26 Apr '13, 2pm

As thousands of Bangladeshis swarmed the streets of Dhaka to express their anguish on Friday, setting fire to vehicles and...

Base Kicks: Jimmy Rollins Sports Two Air Jordan 12 PEs in Big Week

Base Kicks: Jimmy Rollins Sports Two Air Jordan...

nicekicks.com 29 Apr '13, 7pm

is definitely a favorite among baseball’s Jordan Brand athletes. Worn by the likes of Jimmy Rollins , Carl Crawford and CC...

This is what i've been thinking about! Serious. 'Green death: Why eco burials are on the rise' #green #eco #death

This is what i've been thinking about! Serious....

hippyshopper.com 22 Apr '13, 12pm

It's perhaps not a subject we want to think too much about, but it seems more of us are deciding to reduce our carbon foot...

Air quality matters at every age. Protect yours...

epa.gov 29 Apr '13, 10am

Two of the most common pollutants in the U.S. -- ozone, sometimes called smog, and particle pollution -- pose health risks...

If retailers/brands were serious about workers'...

ecouterre.com 27 Apr '13, 4pm

Bangladeshi authorities have arrested at least seven people, including two factory owners and two engineers, three days af...

800 Best SEO Posts of the Last 4 Years - Search...

searchenginewatch.com 27 Apr '13, 1pm

You may be reading this because, like me, you usually spend a few minutes each day making sure you've trawled the main SEO...

This Week in Cybercrime: You Can Be Convicted of Hacking Even If You’re Not a Hacker: Plus: Critical infrastru...

This Week in Cybercrime: You Can Be Convicted o...

spectrum.ieee.org 28 Apr '13, 8pm

Hacking the Meaning of Hacking It’s happened before: someone is convicted for robbery who never set foot inside the store ...