Links tagged with “Development”
- All (51)
- Entries (22)
- Links (29)
- Photos (0)
Ruby Hash Tricks
Some really cool tricks with Ruby hashes–if you supply a block to Hash.new, that will act as a default value for a given key. For example, here’s a Fibonacci hash I put together which caches the values (making it pretty quick):
fibonacci = Hash.new do |h,k|
if k < 2
h[k] = k
else
h[k] = h[k-1] + h[k-2]
end
end
fibonacci[6] # => 8
fibonacci[100] # => 354224848179261915075
The Official Viddler Ruby Gem
I just announced our new Ruby gem over on the Viddler blog. It’s a fairly basic wrapper for our v2 API for now, but I definitely have plans for some really cool features, like having ActiveModel compatible classes for stuff like videos, playlists, users, etc., as well as making it easy to integrate into existing ActiveRecord models in Rails.
So, if you’re into Ruby and you’re looking for a way to integrate video into your site, definitely check us out. We have a really great API, and now that there’s an official gem, it’s easier than ever to get started.
Ajax Upload
This looks like a nice alternative to Flash-based uploaders like Uploadify:
This plugin uses XHR for uploading multiple files with progress-bar in FF3.6+, Safari4+, Chrome and falls back to hidden iframe based upload in other browsers, providing good user experience everywhere.
Lazy Loading Asynchronous Javascript
A great summary of how to build a non-blocking JS widget.
RSpec and Sinatra Quick Start
Quick and easy way to test a Sinatra app with RSpec.
Capistrano Recipe for Sending Deploys to Twitter
Neat trick by John Nunemaker for sending deploy notices to a Twitter account.
jQuery Evented Programming Primer
Excellent post by John Nunemaker on how he’s using the observer pattern to clean up his Javascript.
The Circle of Life, er, Development
Leslie Camacho, president at EllisLab, discusses how the ExpressionEngine team works on a day-to-day basis. Most of post revolves around Scrum, a framework for project management. The video included in the post gives a great insight into how Scrum works.
Oh and did I mention how excited I am about ExpressionEngine 2.0?
Let's make the web faster
Google has a great selection of tips on how to make your website faster. I posted a little while back about several frontend optimizations I’ve made to make my site faster.
ObjectiveResource
Pretty cool:
ObjectiveResource is an Objective-C port of Ruby on Rails’ ActiveResource. It provides a way to serialize objects to and from Rails’ standard RESTful web-services (via XML or JSON) and handles much of the complexity involved with invoking web-services of any language from the iPhone.
I’ve been considering trying out some iPhone development (even though I don’t yet own one), and this seems like a really slick way to interface with an existing Rails application.
A Git Workflow for Agile Teams
Rein Henrichs does a great job explaining an agile git workflow for teams, and I found it to be very helpful, even for my 1-person projects (e.g. this site). I’ve always been a little confused as to when I should rebase and when I should merge, but after reading through this, it makes a little more sense now.
Scaling Rails with Gregg Pollack
Man, how did I miss this before? New Relic is having Gregg Pollack, of Rails Envy fame, do screencasts on scaling Rails. There’s some really great stuff in here, and I definitely need to reserve some time to go through each of them myself.
