Monthly Archive for May, 2008

Firefox Download Day 2008

Download Day 2008

Set a Guinness World Record. Enjoy a Better Web.

Sounds like a good deal, right? All you have to do is get Firefox 3 during Download Day to help set the record for most software downloads in 24 hours - it’s that easy.

NDIA: application configs in repository

Never put application configs in repository. Put there config examples with a explanations in comments instead. That will help users to configure the application better then rewriting teir config on each update.

PS: NDIA - Newer Do It Again

Rails power. Use with caution.

I’ve found a few lines of code that make use of Rails’ method returning. I’ve seen it on the Errtheblog before and thought that it can be useful but someone will misuse it for sure. So here it is.

def feeds_list returning([]) do |feeds| BLOGS.each do |blog| feeds < < feed_url_for(@app_name, blog) end end end

Why do people do such things if there’s Array#collect

def feeds_list BLOGS.collect do |blog| feed_url_for(@app_name, blog) end end