Ecossistema Rails - IBTA 2014

1,143 views

Published on

Palestra ministrada no IBTA em Julho de 2014 sobre o Ecossistema Ruby on Rails

Published in: Technology

Ecossistema Rails - IBTA 2014

  1. 1. Ecossistema Rails Fabio Akita @akitaonrails codeminer42.com
  2. 2. www.codeminer42.com
  3. 3. http://u.akita.ws/ ibta2014
  4. 4. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/107370 #RailsTurns10
  5. 5. Rails 3.2.19 Rails 4.1.4
  6. 6. Ruby 2.0.0-p481 Ruby 2.1.2 JRuby 1.7.13
  7. 7. www.rubyconf.com.br
  8. 8. http://u.akita.ws/ruby_usage
  9. 9. • Filosofia (Agilistas) • Polarização do Rails (Ecossistema) • Escolha das Startups (Economia) • Cloud Computing (Infraestrutura)
  10. 10. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  11. 11. Actually I made up the term "object-oriented", and I can tell you I did not have C++ in mind.
  12. 12. "I always thought Smalltalk would beat Java. I just didn't know if would be called 'Ruby' when it did so."
  13. 13. gem install rails bundle install
  14. 14. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  15. 15. http://u.akita.ws/ubuntu1204
  16. 16. heroku create git push heroku master
  17. 17. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  18. 18. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  19. 19. 2.84s 13ms!
  20. 20. Asset Pipeline
  21. 21. http://u.akita.ws/assets
  22. 22. Background Jobs
  23. 23. Mensagens Assíncronas
  24. 24. <script src="http://js.pusher.com/2.1/pusher.min.js"></script>
 <script>
 var pusher = new Pusher('SUA_CHAVE');
 var channel = pusher.subscribe('meu-canal');
 channel.bind('meu-evento', function(data) {
 alert('Chegou um evento com a mensagem: ' + data.message);
 });
 </script>
  25. 25. require 'pusher'
 
 Pusher.app_id = 'APP_ID'
 Pusher.key = 'APP_KEY'
 Pusher.secret = 'APP_SECRET' 
 
 class HelloWorldController < ApplicationController
 def hello_world
 Pusher['meu-canal'].trigger('meu-evento', {:message => 'hello world'})
 end
 end
  26. 26. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  27. 27. http://u.akita.ws/git
  28. 28. Ambiente
  29. 29. vagrant init hashicorp/precise64 vagrant up vagrant ssh vagrant halt
  30. 30. http://u.akita.ws/vim
  31. 31. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  32. 32. Continuous Integration (CI)
  33. 33. Exceptions Tracking
  34. 34. MyApp::Application.config.middleware.use ExceptionNotification::Rack,
 :email => {
 :email_prefix => "[MyApp] ",
 :sender_address => %{"notifier" <notifier@mycompany.com>},
 :exception_recipients => %w{developers@mycompany.com}
 }
  35. 35. Filosofia Deployment Front-End Performance Desenvolvimento Code Quality Micro-Services Educação
  36. 36. Full Text Search
  37. 37. https://www.eventials.com/akitaonrails/como-nao-fazer-pesquisas-usando-like/
  38. 38. Mobile BaaS
  39. 39. Educação
  40. 40. Thanks! @akitaonrails

×