The Scoop

  • Home
  • Projects
  • About The Scoop
  • Fixing Journalism
  • Medill Links
  • Departments
    • API
    • Apple
    • Asides
    • Broadcast
    • Campaign Finance
    • Car Tools
    • Code
    • Data
    • DIY
    • django
    • Fed Data
    • FOIA
    • General
    • IRE
    • Journalism
    • Local Data
    • Mapping
    • Miscellany
    • NonGov Data
    • Online
    • Paper Trail
    • Presentations
    • Public Records
    • Python
    • Rails
    • Ruby
    • SLA
    • Social Network Analysis
    • Sports
    • State Data
    • Teaching
    • Work
    • XML
  • Subscribe via RSS

Big Nerd Ranch, Day 1

May 5th, 2008  |  Published in Rails  |  3 Comments

Today was my first day at the Ruby on Rails class at Big Nerd Ranch, where I’m joined by Aron. The setting (and weather) is beautiful, and while we got off to a slow start this morning, I’ve picked up a couple of useful things that I hadn’t known about Rails (which only leaves about a billion more). A brief roundup:

  • .map { block } is plenty cool. .map(&:symbol) looks odd, but is more succinct.
  • I now realize why you might render to a template. Cool.
  • Array has a .to_csv method. Nice.
  • Creating a new logger object and having it send to STDOUT helps make script/console more helpful.
  • I now realize why flash is really useful.
  • Controllers can figure out a url from an instance variable, apparently (Rails 2.0)

Responses

Feed Trackback Address
  1. Peter Harkins says:

    May 7th, 2008 at 2:06 pm (#)

    The book “Ruby for Rails” is great if you want to understand the programming language features that go into rails like map. I’m partway through the book “The Rails Way” and it seems like a great exploration of Rails, explains a lot of these gems. I know I prefer more self-directed learning to instruction omre than you do, but they could be handy resources.

  2. gabriel says:

    May 8th, 2008 at 6:50 pm (#)

    oh man, u gotta tell me why is flash really useful? because i – for the life of me – can’t figure that out…

  3. Derek says:

    May 8th, 2008 at 8:47 pm (#)

    Not *that* flash, Gabe… :-)

Leave a Response

Recent Comments

  • Eric Mill on On Legislative Data Transparency
  • (19:19 06-02-2012) Noticias más populares de #opengov en las ultimas 24 horas | Tuits de Software Libre on On Legislative Data Transparency
  • (15:05 06-02-2012) Noticias más populares de #opengov en las ultimas 24 horas | Tuits de Software Libre on On Legislative Data Transparency
  • (02:33 06-02-2012) Noticias más populares de #opengov en las ultimas 24 horas | Tuits de Software Libre on On Legislative Data Transparency
  • Malcolm Tredinnick on On Legislative Data Transparency

Recent Posts

  • On Legislative Data Transparency
  • What We Don’t Know About Elections
  • RemoteTable Is Your Friend
  • Measuring Vocabulary Richness (or, Trying Out Django on Heroku)
  • In Defense of Building Tools

Linking Out

  • Mapping America — Census Bureau 2005-9 American Community Survey - NYTimes.com
    holy crap
  • Backbone.js and Django | joshbohde.com
  • ProPublica
  • Geoff: GeoJSON Feature Functions for JavaScript
  • Introducing Spanner: From Documents to Linked Data Apps—Clark & Parsia: Thinking Clearly
  • A performance lesson on Django QuerySets | Seek Nuance
  • http://www.post-gazette.com/pg/03001/1108747-209.stm
  • CBC News - Canada - Database: Canadian cables in WikiLeaks
  • Federal prosecutors likely to keep jobs after cases collapse - USATODAY.com
  • Strata Gems: Explore and visualize graphs with Gephi - O'Reilly Radar


©2012 The Scoop
Powered by WordPress using the Gridline Lite theme by Graph Paper Press.