I invented space elevators

I read The Last Theorem by Arthur C. Clarke and Frederik Pohl and an important part of the plot is the construction of a space elevator. There, the authors explain to you what an space elevator is, how does it work, what are the challenges and even who invented them. Apparently in the 19th century some guys already dreamed (and wrote about) space elevators. I bet it was dreamed even before that, but at any rate, I invented them as well.

Picture of scaffoldingWhen I was a kid, the house where I lived used to have scaffoldings here and there quite frequently. It was never finished. I grew up playing in scaffoldings and like some kids build a house in a tree, I built it on scaffolding. It was amazing! I loved it. Obviously I started thinking how high could I build a scaffold? With my child’s mind I saw no limit but I realized that at some point, the outer part would pull instead of push and I fantasized about a scaffold that would reach the moon. A bit more than a mere space elevator.

In my phantasy one would climb the scaffold in a space suit, reach the top and when the moon passed by grab onto it: a small grab for a mind, a giant leap for the scaffolding industry.

Creating the weight model and scaffolding

With one command line I’ve created the weight model and the scaffolding, a fully functional CRUD little app without my Rails app. I know all Rails developer are rolling eyes now; but I still think this is awesome. It gets you up and running so fast:

 ./script/generate scaffold weight user_id:integer weight:float timestamp:datetime
      exists  app/models/
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/weights
      create  app/views/layouts/
      create  test/functional/
      exists  test/unit/
      create  test/unit/helpers/
      create  public/stylesheets/
      create  app/views/weights/index.html.erb
      create  app/views/weights/show.html.erb
      create  app/views/weights/new.html.erb
      create  app/views/weights/edit.html.erb
      create  app/views/layouts/weights.html.erb
      create  public/stylesheets/scaffold.css
      create  app/controllers/weights_controller.rb
      create  test/functional/weights_controller_test.rb
      create  app/helpers/weights_helper.rb
      create  test/unit/helpers/weights_helper_test.rb
       route  map.resources :weights
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
      create    app/models/weight.rb
      create    test/unit/weight_test.rb
      create    test/fixtures/weights.yml
      exists    db/migrate
      create    db/migrate/20091121135320_create_weights.rb

And this is what I’ve got: