Activate your free membership today | Log-in

Tuesday, March 27th, 2007

CrowdRules

Category: Rails, Showcase

CrowdRules is a Ruby on Rails website that lets the community rank videos.

Igal Koshevoy told us about the new site that is in beta:

CrowdRules is a “crowd-powered content recommendation engine”. We use Ajax in a few, carefully-selected parts of our application to improve the user experience. Our application is written using Ruby on Rails and implements Ajax features using RJS templates and the Prototype library. These tools are a pleasure to work with and make it easy to get things done right, so we highly recommend them.

Here are some of the highlights of our use of Ajax:

Votes and violations: CrowdRules strives to provide a honest voting environment for our users. The application prevents common abuses of online voting systems by encrypting votes using one-time tokens. Ruby on Rails lets us elegantly bind the voting UI with the logic that manages tokens and thus votes. In the past, using AJAX meant struggling with parameter parsing and writing screenfuls of JavaScript that often duplicated application logic or required a bunch of stubs to interact with the underlying application. But Rails lets us implement the voting features without any of that fuss. Using Ajaxified Rails helpers, like “link_to_remote”, the user clicks are cleanly routed to our controller for processing and then onto an RJS template that generates JavaScript to update the UI. The resulting code is surprisingly easy to read and maintain. The same pattern is used to let users report violations such as “this video doesn’t play”.

Video creation: CrowdRules tries to make it easy for users to add exciting content. We use AJAX to save users from having to fill out long forms that specify the video’s name, embed HTML and such. Instead, our users simply paste a video’s URL into a form that invokes an Ajax-enabled action that parses it, identifies the media provider (e.g. YouTube) and uses that provider’s API to return a pre-populated form automagically. The form only displays fields the user needs to fill out, which vary depending on whether the video was found, was already in our system, what provider serves it, etc. When the user submits the form, all fields are validated against rules unique to that state and this prevents broken submissions by making sure that the embed HTML matches an actual video at the media provider, that the entry has a title and so forth. The combination of AJAX bindings, Prototype, and Rails features like ActiveRecord validations let us make this friendly form quickly.

Unit tests: It’s important for Crowdrules that our application works correctly, but this can be a challenge for a rapidly-growing application that we’re always adding features to and even a small change can inadvertently break the system. To address this, we’ve built an automated test suite that validates almost all of our application’s features. AJAX is tricky to test, but we’ve made the AJAXified actions fall back to traditional behavior when JavaScript isn’t available, such as during tests. For example, one test submits a valid vote to an AJAX-enabled action via a faux web browser and then confirms that all the proper database entries were made — and we also have another battery of tests that cast all sorts of invalid votes and make sure that none of them make it into the database. Being able to validate the logic invoked by the AJAX actions by applying these approaches has made development much easier and less risky.

CrowdRules

Posted by Dion Almaer at 4:11 am
24 Comments

+++--
3.6 rating from 25 votes

24 Comments »

Comments feed TrackBack URI

Two questions:

I know that its a server-side language, but really – what’s the big deal about Ruby, or Ruby on Rails? It has a rather vocal fanbase, and it is associated with some of the best-designed programming-centric websites (Ruby, RoR, RailConf, Engine Yard, FiveRuns, etc.) out there (compare to the PHP or Java websites)

Also, why is it that I just happen to hear “Ruby” and “Mac” in the same sentence alot? It’s as if most Ruby programmers are Mac users or something….

Comment by Rayne Van-Dunem — March 27, 2007

Boring… Old concept….They just link YouTube videos and people rate them… which YouTube already does. Whats the point.

Horrible site design as well.

Comment by Shawn — March 27, 2007

Dear Shawn,

Thanks for taking the time to visit the site and write a comment.

While everyone has their own ideas of our site design – some love it, some hate it, most are neutral – I’m sorry that you didn’t take the time to use CrowdRules and find out what we actually do. There’s a lot more there than you described.

CrowdRules is a contest-based system that allows people to do question and answers with videos. Many people using our site are creating their own video questions and responses. CrowdRules primarily allows businesses and individuals to do self-serve media research, which is a $1b service business ripe for disruption by a free site such as ours. For movie studios, record labels, and anyone else running contests one-off, this is a godsend. No-one else has provided this service except bix, and bix’s voting can easily be gamed.

CrowdRules may at first glance appear – to someone looking at just one or two pages – to only be about linking YouTube videos and rating them. Perhaps that’s our fault for not making things perfectly clear about what you can do on the site. And I agree with you that such a site would truly be a boring and old concept, not to mention patently absurd, and a waste of tens of thousands of lines of RoR code. That’s why what you described is the tip of the iceberg for our site. We’re adults. We wouldn’t waste our time. We thought this out.

We are taking advantage of the fact that our users can park their videos at YouTube, or Veoh, or Brightcove, or any other video sharing site, then link them to us. Using YouTube is a convenience for our members, but this is not about rating YouTube videos. Even in its simplest form, people are grabbing dozens of videos from other sites and using their friends to create a collaborative video ranking list, another service that no one else provides. And YouTube ratings are among the most gamed ratings on the web. Their rating system is completely useless.

So, the fact that you didn’t take the time to find out more about the site most likely means that it’s not for you. That’s okay. But there are people who get it and are finding it quite useful.

Thanks.
David

Comment by David — March 27, 2007

Shawn obviously didn’t look at the site. There’s enormous attention paid to making the voting or rating actually mean something, which You Tube does not do – as proven by the constant gaming of YouTube’s voting system.

I have to think there’s value in an honest voting system.

Comment by Tom — March 28, 2007

* Dion: Thank you for publishing my little article.

* Shawn: Sorry that the site didn’t make a good first impression on you. I hope you and others look around more, because there’s more to it than you noticed at first glance.

* Rayne: Good questions:

- Why Ruby on Rails? Different tools fit different needs. PHP lets me make a quick site, but is a pain once it gets complicated. Java lets me write enterprise-grade applications, but requires an immense amount of effort to build and even more to change. Ruby on Rails is a valuable middle ground between these that let the small CrowdRules development team quickly build a sophisticated, maintainable application that we could rapidly adapt to new requirements. Some call this “cool”, while others describe it as a “smart business decision”. I recommend you spend a weekend skimming through Dave Thomas’ “Agile Web Development with Rails” book to see what the big deal is all about.

- Why Macs? Not sure. CrowdRules was built and deployed on Linux. Using Linux gave us a productive desktop environment and solid server platform. It included many excellent packages that sped up development, and made it possible to custom-built a high-availability cluster and put into production within weeks, rather than months. Its flexibility also let us automate all the setup and maintenance of systems, applications and dependences. In a few minutes, these scripts can install a new developer desktop, create a virtual machine, or build a new cluster on servers thousands of miles away, and then update these with a single command. The combination of these features make Linux hard to beat.

Comment by Igal Koshevoy — March 28, 2007

I just threw up in my mouth. I’m sorry but thats an awful site. Youtube already has user rating. Who just wasted their time on that project?

Comment by Ryan Wilke — April 2, 2007

Ryan,

Thanks for your colorful comment. You’re so observant: YouTube does indeed have ratings! In fact, every site on the web has similar rating systems. But behind the scenes, in the real world of business, people actually care about the quality of those ratings. It’s called media research, and it’s a $1b service business. No other site except CrowdRules deals effectively with this issue. That’s why we built CrowdRules.

Comment by David — April 4, 2007

I checked out Crowdrules and am impressed. I envision many applications for its media research functions. Great idea and well done!
Kate, Web-Programmer’Women Sexual Dysfunction‘ Inc.

Comment by Gooliver — June 10, 2007

CrowdRules is a contest-based system that allows people to do question and answers with videos. Many people using our site are creating their own video questions and responses. CrowdRules primarily allows businesses and individuals to do self-serve media research, which is a $1b service business ripe for disruption by a free site such as ours. For movie studios, record labels, and anyone else running contests one-off, this is a godsend. No-one else has provided this service except bix, and bix’s voting can easily be gamed.
No other site except CrowdRules deals effectively with this issue. That’s why we built CrowdRules.

Thank u so much for your information which is very helpful for me

wow powerleveling lord of the rings power leveling maple story power leveling
wow power leveling

Comment by wow power leveling — June 11, 2007

This service is quite interesting because it offered answers to users’ questions in video form – an idea that I though was quite original, but also pretty bold, as it seemed to me that getting users to record answers in video form free of charge might be hard. Of course, questions can be asked in such a way that you can answer with an already existing video, which is usually the case on CrowdRules.

Comment by Sexylips — June 15, 2007

There’s enormous attention paid to making the voting or rating actually mean something, which You Tube does not do – as proven by the constant gaming of YouTube’s voting system.

Comment by Resume — September 12, 2007

Uhh – soo much stuff to learn. Why can’t I just stick with my pure html pages? ;-)

Comment by passivhaus — September 22, 2007

Thank You for another very interesting article. It’s really good written and I fully agree with You on main issue, btw. I must say that I really enjoyed reading all of Your posts. It’s interesting to read ideas, and observations from someone else’s point of view… it makes you think more. So please try to keep up the great work all the time. Greetings

Comment by Artikel schreiben — October 13, 2007

Wonderful Article i enjoyed reading it, thanks for sharing with us!

Comment by yellowpages — November 13, 2007

Thanks for letting us try this, you’ve done a good job with it!

Marlena, Web Programmer currently working on the Hair Health Online Pharmacies project.

Comment by Marlena — February 23, 2008

You’ve done a great job with this. I’m impressed. The concept is great and it looks fine.

Diana, Web Designer currently working on the acne cure natural ways project.

Comment by DianaMa — March 16, 2008

I think it’s a nice website. I have a good impression with the site.
Let see what it can do
yuhirocks from indian sildenafil

Comment by yuhirocks — October 2, 2008

seems to me like another version of the Pligg template.

Comment by stevenjmyu — May 19, 2009

The Windows 7 key is a usually unique, alphanumeric code of any length required by many software programs during installation. Unique windows 7 product key help software manufacturers ensure that each copy of their software was legally purchased. Windows 7 Home key | Windows 7 Professional key | Windows 7 Ultimate key | Windows 7 Enterprise key | Windows 7 Home Premium key

The unique Windows 7 serial key entered for an operating system or a software program is typically stored in an encrypted format in the Windows Registry, making finding one very difficult without some help. The above linked guides should help find just about any Windows 7 CD key you may be looking for.Windows 7 Home product key | Windows 7 Professiona productl key | Windows 7 Ultimate product key

This Windows 7 product serial number, if it exists, is the generic Windows 7 Home product key that Microsoft allowed your PC builder to use when mass producing computers. In other words, everyone’s disc has the same product key. Your unique key for use when reinstalling Windows will be the one on the sticker on your computer. Windows 7 Enterprise key | Windows 7 Home Premium key

Comment by oplider — January 19, 2010

The xbox live points is the second video game console produced by Microsoft, and the successor to the Xbox. The xbox 360 live points competes with Sony’s xbox 360 live 1600 points and Nintendo’s Wii as part of the seventh generation of video game consoles.xbox live points card xbox 360 live points card

Some major features of the Xbox 360 are its integrated xbox 360 live 2000 points that allows players to compete online, download arcade games, game demos, trailers, TV shows and movies and its Windows Media Center multimedia capabilities. The xbox live 2000 points also offers region specific access to third-party media streaming services such as Netfilx in the USA or Sky TV and xbox 360 live 4000 points in the UK.

The xbox live 1600 points was officially unveiled on MTV on May 12, 2005, with detailed launch and game information divulged later that month at the Electronic Entertainment Expo (E3). The xbox live 4000 points sold out completely upon release in all regions except in Japan and, as of October 2009, nearly 34 million units have been sold worldwide. The xbox 360 live 3000 points is currently available in two configuraions—the “Arcade” and the “Elite”—and each has its own selection of accessories.

Comment by oplider — January 19, 2010

Buy Kamagra Earn Google M65 Jacket Viagra Cialis Cheap Kamagra Cheap Viagra Cheap Cialis Make Money on Google M65 Field Jacket Airline Dog Carrier Airline Dog Carriers Viagra Cialis Earn Google Airline Dog Carrier Airline Dog Carriers Airline Approved Dog Carriers ED Hardy Wholesale Copy DVD Software How to Send Fax 14k Yellow Gold Redneck Costume 14k Gold Heart Tandem Baby Stroller

Comment by kamagra — February 2, 2010

Abercrombie And Fitch Abercrombie And Fitch Abercrombie And Fitch
Fix it Fix it Fix it
Columbia Sportswear Columbia Sportswear Columbia Sportswear
Pandora Jewelry Pandora Jewelry Pandora Jewelry
wedding dresses Wedding Dresses wedding dresses

Comment by pop530 — February 22, 2010

Fitch store in general Abercrombie And Fitch , everything a good matrimony before marriage have nothing to retain the preceding “female mad batch -Abercrombie” part of the two is the first home in new york city a horde promotion sportswear for men and it is a successful lawyer, that is, fitch.Ezra fitch in a charge over a very intricate to read from the abercrombie is obstinate to read and long abercrombie & fitch. He’s also very good brandAbercrombie Clothing, including Abercrombie Sale and Abercrombie And Fitch Clothing, Abercrombie and Fitch Hoodies, Abercrombie and Fitch Jeans. Has become a fashionable personage’s first choice,Abercrombie and Fitch Pants is all over the world, of course, is also expected toAbercrombie and Fitch Tees.
New Year was coming, everyone wants new clothes to disguise themselves,Abercrombie and Fitch Shorts is a good choice. BecauseAbercrombie and Fitch Sweaters is a well-known brand,Abercrombie and Fitch Outerweareverywhere, abercrombie is very much a Cheap Abercrombie. There has Abercrombie and Fitch Polos, Abercrombie Womens andAbercrombie and Fitch Shirt. Personally, I’m looking forward to Abercrombie Hollister’s 2009 New Arrivals, such as Abercrombie Ruehl No.925 like this style.
Fitch store in general Abercrombie And Fitch , everything a good matrimony before marriage have nothing to retain the preceding “female mad batch -Abercrombie” part of the two is the first home in new york city a horde promotion sportswear for men and it is a successful lawyer, that is, fitch.Ezra fitch in a charge over a very intricate to read from the abercrombie is obstinate to read and long abercrombie & fitch. He’s also very good brandAbercrombie Clothing, including Abercrombie Sale and Abercrombie And Fitch Clothing, Abercrombie and Fitch Hoodies,Abercrombie and Fitch Jeans. Has become a fashionable personage’s first choice,Abercrombie and Fitch Pants is all over the world, of course, is also expected toAbercrombie and Fitch Tees.
New Year was coming, everyone wants new clothes to disguise themselves,Abercrombie and Fitch Shorts is a good choice. BecauseAbercrombie and Fitch Sweatersis a well-known brand,Abercrombie and Fitch Outerwear everywhere, abercrombie is very much a Cheap Abercrombie. There has Abercrombie and Fitch Polos, Abercrombie Womens andAbercrombie and Fitch Shirt. Personally, I’m looking forward to Abercrombie Hollister’s 2009 New Arrivals, such as Abercrombie Ruehl No.925 like this style.

Lace Wigs
Wedding Dresses
ugg boots

Comment by CYJisGod — March 3, 2010

ED Hardy Hoodies ED Hardy HoodiesEd Hardy Swimwear Ed Hardy Swimweared hardy tops ed hardy topsed hardy shoes ed hardy shoesed hardy t shirt ed hardy t shirted hardy shirts ed hardy shirtschristian audigier christian audigiered hardy kids ed hardy kidsEd Hardy Sunglasses Ed Hardy SunglassesED Hardy belts ED Hardy beltsed hardy Bags ed hardy Bagsed hardy purse ed hardy purseed hardy mens ed hardy mensed hardy womens d hardy womens

ed hardy mens shirts ed hardy mens shirtsed hardy mens tops ed hardy mens topsed hardy mens hoodies d hardy mens hoodiesed hardy mens swim trunks ed hardy mens swim trunksed hardy mens shoes ed hardy mens shoesed hardy womens swimwear ed hardy womens swimweared hardy womens t shirt ed hardy womens t shirted hardy womens tops ed hardy womens topsed hardy womens pants ed hardy womens pantsed hardy womens hoodies ed hardy womens hoodiesed hardy womens shoes ed hardy womens shoesed hardy womens clothing ed hardy womens clothing

Comment by CYJisGod — March 8, 2010

Leave a comment

You must be logged in to post a comment.