Hacking for fun and profit

1,282 views

Published on

Things Steve Holyer and I have learned during our 2 day Hackathon at christmas 2010

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,282
On SlideShare
0
From Embeds
0
Number of Embeds
167
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Hacking for fun and profit

  1. 1. tweet now with #webtuesday, listeners are standing byHacking for fun and profit (with node.js, mongodb and rails)
  2. 2. who the hell are they?!...
  3. 3. what?2 Day Hackathonrequirements:use new technologylimitscope - something we can finish in a day or 2...and be proud about the result. Image: http://techcrunch.com/2010/09/25/hack-till-you-drop/
  4. 4. why?...because we wanted to be rich andfamous like Zuckerberg(...or at least, to have fun and learn something new)Image: http://www.gearlog.com/2010/10/national_bosss_day_techs_top_b.php
  5. 5. what weve learned dont underestimate the cost of setting up dev infrastructure or the cost of learning new technology a deadline is useful accountability is good
  6. 6. what weve learned rake and cap are cooler than make and ant hidden cost of third party dependencies no easy answers to hosting questions moving to NoSQL might be easier than you think
  7. 7. script to insert into mongodbvar mongo = require(mongodb), db = new mongo.Db(wt, new mongo.Server(localhost, 27017, { },{ });db.open(function(){ db.collection(attendees, function(err, collection) { var attendee = { name: foo, age: 42} collection.insert(attendee, function(){ }); });});
  8. 8. script to fetch tweets (by hashtag)var TwitterNode= require(twitter-node)TwitterNode, sys = require(sys);var tn = new TwitterNode({ user: your username, password: your password, track: [webtuesday] });tn.addListener(tweet, function(status){ sys.put(status.user.screen_name);}).stream();

×