28 Feb '12, 6am

21 Ruby Tricks You Should Be Using In Your Own Code

Some of these are good tricks, some are blindingly obvious to decent programmers, some are unnecessary, and some are actually bad (all IMHO, of course). They are certainly not all things we "should" be using in our own code. 1. Good tip, but the first line is wrong, I think. 2. As Array#join is so prevalent, I think it should be continued to be used in place of the utterly unmnemonic * . 4. The Ruby idiom for interpolating text is #{}. Using the C equivalent is just going to confuse people (even if just for a second). 7. What's wrong with z = ['test'] ? 8. If this is such a good tip, let's see a good example! 9. This, like a lot of these tips, is predicated on shorter code being better. Most of the time I would agree, but I see no point in using 'and' here instead of just putting a separate operation on a separate line. Besides, wouldn't 'or' work just as well? That's the ...

Full article: http://www.rubyinside.com/21-ruby-tricks-902.html

Tweets

@MikeG1 can you promote rails-api on Thanks!

afreshcup.com 12 Mar '12, 4pm

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

11 Google Analytics Tricks to Use for Your Website

11 Google Analytics Tricks to Use for Your Website

seomoz.org 28 Feb '12, 6pm

Google Webmaster Tools is another free product from Google which helps you see data about your website such as the number ...

Too LESS? Should You Be Using Sass?

rubyflow.com 28 Feb '12, 4pm

Too LESS? Should You Be Using Sass? Posted by MetaSkills on February 28, 2012 — 0 comments As the author of less-rails and...

RVM: Ruby Version Manager - Using Cron with RVM

RVM: Ruby Version Manager - Using Cron with RVM

rvm.beginrescueend.com 26 Feb '12, 7pm

$ rvm help # Documentation Index Documentation > Integration > Cron Using RVM with Cron RVM allows few easy ways to integr...

Connascence, a better vocab to talk about code ...

blog.rubybestpractices.com 28 Feb '12, 4pm

If you haven’t watched Jim’s talk yet, I’ll remind you to go ahead and do that now. But assuming for some reason you can’t...

Ruby on Rails Database Sharding: A Quick Primer...

engineyard.com 28 Feb '12, 3am

Sharding is usually the final strategy to reach for when scaling a Ruby on Rails app: caching, offloading, and data segmen...

#sglobang The Body Shop Promotions, 1 to 21 Mar...

tualobang.blogspot.com 02 Mar '12, 1am

Hi, thanks for visiting. Here's a simple FAQ for the site: 1. We provide multiple content push options: a) Subscribe to em...

Want to learn about using Farday to do HTTP(s) ...

mislav.uniqpath.com 01 Mar '12, 11am

This request won’t work. GitHub API v3 is only accessible over encrypted SSL and we need to explicitly configure Net::HTTP...

Giles nails it on the head:

gilesbowkett.blogspot.com 04 Mar '12, 11pm

with Loren Segal. Realized why I was right when I revisited TomDoc and took a look at how it handles the public/private di...

Practicing Ruby - The Double Dispatch Dance:

blog.rubybestpractices.com 25 Feb '12, 2am

Eric Wong 's Posts ( feed ) USP: Unix processes and their attributes Today Eric presents various bits of information that ...

How to create a Ruby extension in C in 43 second

rubyinside.com 01 Mar '12, 9pm

Zenspider, the master of all things Ruby crossed with C, picked up the gauntlet and, using RubyInline (previously covered ...

IEEE Spectrum:

IEEE Spectrum:

spectrum.ieee.org 04 Mar '12, 11pm

Master Bond: How to Evaluate Chemically Resistant Adhesives IBM Webcast: Smart Metering Solutions Gain Competitive Edge IB...

@bphogan It was around the same time as I wrote...

rubyinside.com 02 Mar '12, 8pm

Luis Lavena is the new maintainer of the popular Ruby "One-Click Installer" for Microsoft Windows. As part of this new rol...

11 Google Analytics Tricks to Use for Your Website

seomoz.org 01 Mar '12, 9pm

Great post Eugen - I have found site speed and site search very handy tools for improving the user experience on sites, so...

#Ruby Ruby in Twenty Minutes

ruby-lang.org 03 Mar '12, 9am

This is a small Ruby tutorial that should take no more than 20 minutes to complete. It makes the assumption that you alrea...