21 April 2014

The Ruby Reflector

Topic

Useful

  Source Favicon
By Mike Gunderloy of A Fresh Cup over 1 year ago.
Email

Notes on Distributed Systems for Young Bloods - Worth reading if you're tinkering with a non-trivial web application.

How to Permanently Prevent OS X 10.7 Lion from ever Re-Opening Apps After a Restart - Useful tweak.

Rails has Two Default Stacks - Or many, really. A small exploration of why it's getting really hard to learn " Rails" these days.

Draper 1.0.0 released - One of the more complex alternatives for decorators.

afreshcup.com Read
  Source Favicon
By Mike Gunderloy of A Fresh Cup over 1 year ago.
Email

This week just...disappeared. Getting old, I guess.

Writing Beautiful RSpec Matchers - How to extend the DSL.

PgPower - Active Record extension to tap some of the features of PostgreSQL.

Testing Your Factories First - Smoke tests for your testing infrastructure.

What's My User Agent? - Useful little tool for wringing troubleshooting info out of non-developers.

Rack::Insight - Souped-up descendant of Rack::Bug.

afreshcup.com Read
  Source Favicon
By Peter Cooper of Ruby Inside over 1 year ago.
Email

Rails, Objects, Tests, and Other Useful Things

Noel Rappin reflects on the various ' Object-Oriented Rails' and 'fast tests' discussions going around the Ruby world as of late.

Why I Don't Like factory_girl

This post won't be without controversy but Steve Klabnik outlines why he thinks the convenience of factories has 'set Rails testing strategies and software design back two years.' Worth a read even if you disagree. …

rubyinside.com Read
  Source Favicon
By Joey of Global Nerdy almost 3 years ago.
Email

Yet another example: A Politician Looking for Funds? Here are Two Useful Addresses

Article in the New York Times that revealed, with the help of campaign contribution data, which addresses were associated with the most donations to presidential campaigns

These addresses are:

865 South Figueroa, Los Angeles CA (investment management company handling $ 90 billion in assets circa 2004) and

146 Central Park West, New York NY (which at one point …

globalnerdy.com Read
  Source Favicon
By Joey of Global Nerdy 3 years ago.
Email

…have put together a collection of Ultimate HTML5 Tutorials and Useful Techniques , and whether you're new to HTML5 or an old hand it at already, there should be something in this set that you'll find useful.

I've taken the links from Dzinepress' article and grouped them into categories below:

Introductory Stuff

HTML5: The Basics

Coding A HTML 5 Layout From Scratch

HTML 5 and CSS 3: The Techniques You'll Soon Be …

globalnerdy.com Read
  Source Favicon
On Rails Rumble over 3 years ago.
Email

…wasn't a requirement of winning this Exhibition Match, but several of the entrants did. For example, MovieNight used VideoJS, the free, open-source HTML5 video player created by Zencoder.

Zencoder competed in the Rails Rumble in 2009, and built ZenVDN , which won the "Most Useful" prize. We didn't compete this year.

blog.railsrumble.com Read
  Source Favicon
By John Dyer of Viget.com Blogs over 3 years ago.
Email

git add —patch Useful for staging changes you've made to files. It allows you to pick and choose which changes you want to include in your next commit.

git rebase —interactive Very powerful command, but also has the potential to be dangerous. This command allows you to edit the commits which are being rebased. To put it simply, you can use this during a rebase to reorder your commits, remove unwanted patches, and make edits along the way. I recommend reading this article …

viget.com Read
  Source Favicon
By Jake Scruggs of Jake Scruggs almost 4 years ago.
Email

…'post-receive' file written in Ruby:

#!/usr/bin/env ruby

STDIN.readlines.each do |line|

rev_old, rev_new, ref = line.split(" ")

# You will get in here as many times as branches were pushed

end

rev_old is the old commit hash, rev_new is the new commit hash, and ref will be something like: "refs/heads/test_branch" Useful information.

Git often passes things into it's hooks, check the git book docs to find out what.

jakescruggs.blogspot.com Read
  Source Favicon
By nap of Rails Rumble almost 4 years ago.
Email

Good news, everyone! Our friends at Zencoder , who took home the ‘Most Useful' category prize in 2009 RailsRumble for ZenVDN , just found out that they've been accepted to Y-Combinator , the influential seed funding program run by Paul Graham and co.

Over the last few years, Y-Combinator has spawned success stories such as Reddit, Loopt, Xobni, Dropbox, Heroku, and Disqus to name but a few. Keep an eye on these guys, they're going to do great things. We wish them the best of luck!

blog.railsrumble.com Read
  Source Favicon
By bryanl of Smarticus almost 4 years ago.
Email

…originally wrote this as a reply to Unit and Functional Tests are as Useful as 100% Code Coverage .

First, lets clear some things up. 100% test coverage shouldn't be a goal for your project. I believe that you should track test coverage over time, and make sure that coverage is always increasing rather than diminishing. This metric over time will tell you if you have the right amount of coverage.

Second thing. Rails got it wrong with the name of tests. What …

smartic.us Read