1. A browser's JavaScript engine can seem like a magical black box. During this session, we'll show you how they work from 10,000 feet and give you the tricks to compile all the popular engines out there including JavaScriptCore, V8, and SpiderMonkey). We'll inspect the internals of the engine, and debug+profile your favorite code snippets. Armed with just a little extra knowledge about this black box, you will be ready to take a new look at JavaScript apps.

    # vimeo.com/18783283 Uploaded 6,369 Plays 1 Comment
  2. The screencast shows that the app/views/layouts/application template is used to ``wrap'' action views by default, using yield much like the example in Section 3.8.

    # vimeo.com/34754667 Uploaded 5,499 Plays 2 Comments
  3. We will first add a checkbox that allows filtering the RottenPotatoes movie list to exclude films unsuitable for children. This behavior can be implemented entirely in client-side JavaScript. Next we will change the behavior of the ``More info'' link for each movie to display the extra info in a ``floating'' window rather than loading a new page. This will require AJAX, since fetching the movie info requires communicating with the server. Both behaviors will be implemented with graceful degradation so that legacy browsers still have a good experience.

    # vimeo.com/45331300 Uploaded 1,199 Plays 0 Comments
  4. The formtag method for generating a form requires a route to which the form should be submitted---that is, a URI and an HTTP verb. We use the RESTful URI helper and HTTP POST method to generate a route to the create action, as rake routes reminds us.

    # vimeo.com/34754683 Uploaded 5,035 Plays 1 Comment
  5. Inside the create controller action, we placed a debug breakpoint to inspect what's going on, and used a subset of the debugger commands in Figure fig:ruby_debug to inspect the params hash. In particular, because our form's field names all looked like movie[], params['movie'] is itself a hash with the various movie fields, ready for assigning to a new Movie object. Like many Rails methods, params[] can take either a symbol or a string---in fact params is not a regular hash at all, but a HashWithIndifferentAccess, a Rails class that quacks like a hash but allows its keys to be accessed as either symbols or strings.

    # vimeo.com/34754699 Uploaded 4,520 Plays 0 Comments


Ashu Joshi

Browse This Channel

Shout Box

Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.