- You watch more TV shows and movies on your computer than you do on TV and the movie theatre.
- You spend more time blogging about movies than watching them.
- You are genuinely excited whenever Apple releases a new computer (even though it only makes your current MacBook more obsolete).
- You IM people who are right next to you instead of talking to them.
- Your wife IM's you to get your attention.
- You don't need a blankie because your laptop keeps you warm at night.
- When you do finally get tired of using your laptop you pick up your phone and surf the web there.
- If it isn't online it doesn't exist.
- You open your laptop before you brew your first cup of coffee.
- When you call your laptop your wife and your wife your mistress.
One of my current projects is using RubyAMF to communicate with Flash (http://rubyforge.org/projects/rubyamf/). On the whole this is really nice because it allows you to transfer Ruby objects directly to ActionScript ones (as opposed to translating the object into XML, sending the XML and then recreating the object in ActionScript). However, Rails does not provide a built in transport mechanism for AMF, so we cannot run functional testing directly on the data call (as we could for an XML or HTML transport layer). This is a show stopper for a lot of people (Rails w/o Unit testing = a big mess of trouble when something goes wrong). We can though serve both the HTML and the AMF formats depending on the request format. This means that we can test the object instantiation logic and make sure there are no errors in the controllers (though we cannot check the actual format of the data being served). In the controller, instead of rendering AMF alone, do the following respond_to do |format| ...
Comments