Link

Avoiding the abuse of if statements

Avoiding the abuse of if statements

It is a common practise of beginners to try and solve all the programming challenges with if statements.

Ruby allows you smart ways of writting elegant code without the need of ifs, as you can see in the great video example provided by Franklin Webber at the Jumpstart Lab

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s