Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Living on the Edge Rails

Living on the Edge Rails

RubyConf Taiwan 2012

Kentaro Kuribayashi

December 07, 2012
Tweet

More Decks by Kentaro Kuribayashi

Other Decks in Technology

Transcript

  1. Living
    on the
    Edge Rails
    http://www.flickr.com/photos/howard_roark/6046440678/
    Living on the Edge Rails

    View full-size slide

  2. @kentaro
    Software engineer to
    build technical basis
    Rubyist / Perl Monger
    Kentaro Kuribayashi
    paperboy&co.
    Hi, I’m Kentaro Kuribayashi, working for paperboy, Japan.
    I’m a software engineer to build our company-wide technical basis.

    View full-size slide

  3. http://twitter.com/kentaro
    http://github.com/kentaro
    Twitter
    GitHub
    I’m on Twitter and GitHub.

    View full-size slide

  4. Our company, paperboy, is known for a PaaS-like service, Sqale.
    Sqale supports rack apps.
    Please check it out if you get interested.

    View full-size slide

  5. Rails 4
    is
    coming!
    So, Rails 4 is coming...

    View full-size slide

  6. (soon)
    Soon.
    Nobody knows precisely when it is, though ;)

    View full-size slide

  7. http://blog.wyeworks.com/2012/11/13/rails-4-compilation-links/
    This mindmap shows us newly introduced topics in Rails 4.
    As you can see, Rails 4 doesn’t introduce so much big changes,
    but too many newly introduced and removed/deprecated features.

    View full-size slide

  8. Check them out
    in advance
    Check them out in advance to get accustomed to the new Rails.
    You’ll eventually do with upgrading your existing apps to Rails 4.

    View full-size slide

  9. Edge Guides
    http://edgeguides.rubyonrails.org/
    Edge API Reference
    http://edgeapi.rubyonrails.org/
    Rails4 Release Notes
    http://edgeguides.rubyonrails.org/4_0_release_notes.html
    Rails 4 compilation links
    http://blog.wyeworks.com/2012/11/13/rails-4-compilation-links/
    There already have been some documents from which we can get the changes.

    View full-size slide

  10. As you may know, now you can keep up with the Edge Rails with iPhone or Kindle,
    every time, everywhere!

    View full-size slide

  11. Triglav
    http://github.com/kentaro/triglav
    By the way, I’ve been working on development of a tool, named Triglav, these months.
    It’s kind of a server management tool.

    View full-size slide

  12. Still at alpha stage
    It looks like that. Just so common web application, though.
    Triglav has minimalistic features providing API set to retrieve hosts information.
    It copes with users’ complicated demands with loose-coupled architecture.
    Of course, it’s written in the Edge Rails.

    View full-size slide

  13. Rails 4 Chat
    http://github.com/kentaro/rails4-chat
    And I hacked up chat example using some new features in Rails 4.

    View full-size slide

  14. ActionController::Live, one of the killer features of Rails 4, is suitable for Server-Sent Events.
    I combined it with the new Queue API and Redis.
    In that way, we can easily create such a realtime application using Rails.
    It’s very exciting!

    View full-size slide

  15. Living on the Edge
    Living on the Edge Rails is harder than you might imagine ;)
    You’ll often get stuck into various problems around Rails eco-system.

    View full-size slide

  16. When I started developing Triglav, there were many bugs around sprockets.
    This picture shows my pull request to sass-rails.

    View full-size slide

  17. I fixed also less-rails along with the new sprockets.

    View full-size slide

  18. This is to fix turbolinks.
    It didn’t work with ActionController::Live.

    View full-size slide

  19. At a certain time, Ruby 2.0.0 broke the backward compatibility with Bundler.
    So, I sent a pull request that made Rails 4 depend on the new Bundler.

    View full-size slide

  20. The stories above are only
    applicable to Edge Rails,
    furthermore it is being to
    the major version up now!
    CAVEAT
    The stories above are only applicable to the Edge Rails,
    furthermore it is being to the major version up now!

    View full-size slide

  21. Eureka!
    http://www.flickr.com/photos/waikin/291915457/lightbox/
    As a result, I got to know more about Rails internal and its eco system.
    I recommend you should be into it once at least :)

    View full-size slide

  22. These are highly recommendable books for those who want to know more about Rails.
    (The former book explains the Rails internal)
    (The latter gives us how to upgrade our existing applications to Rails 4)
    Both books are must-read.

    View full-size slide

  23. l found Rails is developed in a very social way.
    I’m convinced that working with the Edge Rails is one of the fastest way to do social coding.

    View full-size slide

  24. RECAP
    • Living on the Edge Rails is
    fun and good lesson
    • Rails 4 is really promising
    and exciting
    • Try Rails 4 as soon as
    possible!
    Recap.

    View full-size slide