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 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 Slide

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

    View 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 Slide

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

    View Slide

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

    View 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 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 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 Slide

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

    View 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 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 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 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 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 Slide

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

    View Slide

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

    View Slide

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

    View 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 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 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 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 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 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 Slide