Teach Me To Code » Screencasts (iPhone/iPod)

Teach Me To Code » Screencasts (iPhone/iPod)

By Charles Max WoodTechnology
Download on the App Store

Teach Me To Code » Screencasts (iPhone/iPod) episodes

  • Capistrano: Deploying Ruby on Rails Applications to Multiple Servers
    For a basic deployment recipe, check out Basic Deployment with Capistrano
    This episode demonstrates how to extend deployment to deploy to stage and production. Overall it’s rather simple. All it entails is creating a new task for each stage you want to deploy to with the settings you need changed.
    Here’s an example:
    task :stage do
    role :web, "stage.teachmetocodeacademy.com" # Your HTTP server, Apache/etc
    role :app, "stage.teachmetocodeacademy.com" # This may be the same as your `Web` server
    role :db, "stage.teachmetocodeacademy.com", :primary => true # This is where Rails migrations will run
    set :deploy_to, '/var/www/stage-teachmetocodeacademy/'
    set :user, 'deploy'
    end
    That will allow you to run `cap stage deploy` to deploy to your staging environment.
     
    Download 55.3 MB
    Download (iPod & iPhone) 35.1 MB
    0 min
  • Polymorphism with Many-to-Many Associations – A Teach Me To Code Tutorial
    Polymorphic associations are very simple, as are many-to-many associations. When you blend the two, it's not nearly as simple. Since there isn't a working build-in mechanism for many-to-many polymorphic associations.
    Here's a quick demo of what happens if you try to set up a traditional has_many :through association with a polymorphic association. I also show how to set things up so you can get the associated objects.
    Download 101.3 MB
    Download (iPod & iPhone) 45.5 MB
    21 min
  • Many to Many Associations in Ruby on Rails – A Teach Me To Code Tutorial
    I had several requests in UserVoice to provide a Many to Many tutorial in Rails. This is a demonstration of how to put together a "has and belongs to many" association and a "has many through" association.
    This is somewhat basic to Ruby on Rails, but important if you need to associate different models.
    Download 161.3 MB
    Download iPhone & iPod 97.7 MB
    0 min
  • Acceptance Tests with RSpec and Capybara
    On the Ruby Rogues podcast I mentioned that I had moved away from Cucumber to RSpec and Capybara for my integration tests. Here's a demo on how to do some TDD with RSpec and Capybara.
    Download 180.6 MB
    Download iPhone & iPod 109.2 MB
    28 min
  • CoffeeScript: The Cool Parts
    CoffeeScript offers more than nice syntax for setting and managing data and functions. It also offers Classes, Inheritance, access to a 'super' method, Ruby-style string interpolation, easy variable and function bindings, and chained comparisons.
    Here's the code I showed in the video:
    class Vehicle
    constructor: (@name) ->
    move: (miles) ->
    console.log @name + " drove " + miles + " miles."
    class VWBug extends Vehicle
    move: ->
    console.log "Cruisin'..."
    super 100
    class Truck extends Vehicle
    move: ->
    console.log "Haulin'..."
    super 50
    mater = new Truck "Mater"
    herbie = new VWBug "Herbie"
    mater.move()
    herbie.move()
    a1c = "7.6"
    healthy = 7.0 > a1c > 5.0
    console.log "A1C within healthy range: #{a1c}"
    Account = (customer, cart) ->
    @customer = customer
    @cart = cart
    $('.shopping_cart').click (event) =>
    @customer.purchase @cart
    If you're new to CoffeeScript, make sure you check out the CoffeeScript Cookbook and CoffeeScript Basics.
    Download 150.3 MB
    Download (iPod & iPhone) 87.1 MB
    23 min
  • CoffeeScript Basics – A Teach Me To Code Tutorial
    CoffeeScript is now going to be a default installation with Ruby on Rails. So, I installed CoffeeScript and NodeJS and have been playing with it for the last hour or so.
    Here are the basics you need to know to use CoffeeScript including functions, arrays, hashes (objects), control functions (if, else, unless) and loops.
    In my opinion it is friendlier than JavaScript and more terse, but I don't feel like it's a huge win over JavaScript. That being said, it is something I'm likely to use in the future.
    Download 168 MB
    Download (iPhone & iPod) 87.3 MB
    0 min
  • Single Table Inheritance – Ruby on Rails Tutorial
    Single Table Inheritance is a great way to handle related models that descend from the same class. The classic example is a Car class with Ford, Chevy, and Honda subclasses.
    This Ruby on Rails Tutorial provides an example and explains how Rails puts all of the information in the same database table and allows you to query things from both the superclass and subclass.
    Download 59.5 MB
    Download (iPod and iPhone) 36.3 MB
    0 min
  • Compass, SASS, and the 960 Grid System – Delicious Clone
    In preparing to show off SASS, I found the Compass system, which uses SASS and organizes your stylesheets in a unique way. In this tutorial, I walk you though installing compass, installing the 960 grid system, and organizing your SASS stylesheets in an intelligent way.
    One note, I couldn't remember the URL for the 960 grid system. It's http://960.gs
    Download 158.5 MB
    Download (iPod & iPhone) 97.3 MB
    0 min
  • Creating a Rake Task to Convert ERB to HAML
    This is a basic demonstration of adding a rake task to Ruby on Rails. Some of the same principles apply to Rake in general. You also see how to call out to the command line and how to convert ERB and HTML to HAML.
    Download 51.9 MB
    Download (iPod & iPhone) 30.8 MB
    0 min

About Teach Me To Code » Screencasts (iPhone/iPod)

From the publisher's feed

Writing Code is the Easy Part

More shows like Teach Me To Code » Screencasts (iPhone/iPod)

Ruby Rogues by Charles M Wood

Ruby Rogues

45 Listeners

The Freelancers' Show by Charles M Wood

The Freelancers' Show

23 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

33 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

234 Listeners

iPhreaks by Charles M Wood

iPhreaks

17 Listeners

React Native Radio by Jamon Holmgren, Robin Heinze, Mazen Chami

React Native Radio

67 Listeners

Adventures in Angular by Charles M Wood

Adventures in Angular

15 Listeners

JavaScript Jabber by Charles M Wood

JavaScript Jabber

62 Listeners

Ruby Rogues by Charles M Wood

Ruby Rogues

21 Listeners

My JavaScript Story by Charles M Wood

My JavaScript Story

4 Listeners