advertisement

Web Expo Forum

0 %
100 %
advertisement
Information about Web Expo Forum
Technology

Published on March 18, 2009

Author: akitaonrails

Source: slideshare.net

Description

Palestra introdutória de Rails e de filosofia de desenvolvimento de software.
advertisement

Ruby on Rails Wednesday, March 18, 2009

AkitaOnRails.com www.slideshare.net/akitaonrails Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

1 Wednesday, March 18, 2009

Joel Spolsky Wednesday, March 18, 2009

Wednesday, March 18, 2009

“Without understanding functional programming, you can't invent MapReduce, the algorithm that makes Google so massively scalable.” “The Perils of JavaSchools” - Joel Spolsky - 29/12/2005 http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html Wednesday, March 18, 2009

“The terms Map and Reduce come from Lisp and functional programming...” “The Perils of JavaSchools” - Joel Spolsky - 29/12/2005 http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html Wednesday, March 18, 2009

“The very fact that Google invented MapReduce, and Microsoft didn't, says something about why Microsoft is still playing catch up.” “The Perils of JavaSchools” - Joel Spolsky - 29/12/2005 http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html Wednesday, March 18, 2009

Codificadores x Desenvolvedores Wednesday, March 18, 2009

Qual foi o concurso? Qual foi o prêmio? Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Martin Fowler Wednesday, March 18, 2009

Agile Wednesday, March 18, 2009

AGILIDADE Wednesday, March 18, 2009

Wednesday, March 18, 2009

Estamos “descobrindo” maneiras melhores de desenvolver software na prática e ajudando outros a desenvolver. Wednesday, March 18, 2009

Wednesday, March 18, 2009

Big Design Up Front “Waterfall” (Cascata) Escopo Fechado “Change Requests” Wednesday, March 18, 2009

Big Design Up Front “Waterfall” (Cascata) Escopo Fechado “Change Requests” Wednesday, March 18, 2009

Big Design Up Front “Waterfall” (Cascata) Escopo Fechado “Change Requests” Wednesday, March 18, 2009

Big Design Up Front “Waterfall” (Cascata) Escopo Fechado “Change Requests” Wednesday, March 18, 2009

Wednesday, March 18, 2009

Ceticismo Wednesday, March 18, 2009

Wednesday, March 18, 2009

Winston W. Royce - 1970 Wednesday, March 18, 2009

“Eu acredito neste conceito mas a implementação descrita acima é arriscada e convida falhas.” Winston W. Royce - 1970 Wednesday, March 18, 2009

“Eu acredito neste conceito mas a implementação descrita acima é arriscada e convida falhas.” Winston W. Royce - 1970 Wednesday, March 18, 2009

“Eu acredito neste conceito mas a implementação descrita acima é arriscada e convida falhas.” Winston W. Royce - 1970 Wednesday, March 18, 2009

“Cargo Cult” Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

“SOFT”WARE Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

1 Wednesday, March 18, 2009

2 Wednesday, March 18, 2009

“Matz” 1993 Wednesday, March 18, 2009

“Prag Dave” 2001 Wednesday, March 18, 2009

“DHH” 2004 Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

“Tornar as coisas simples fáceis e as coisas complexas possíveis” Filosofia Ruby Wednesday, March 18, 2009

Wednesday, March 18, 2009

Ruby on Rails Wednesday, March 18, 2009

RUBY Wednesday, March 18, 2009

ActiveSupport Rails RUBY Wednesday, March 18, 2009

ActionController ActionPack ActionView ActiveSupport Rails RUBY Wednesday, March 18, 2009

ActiveRecord ActionController ActionPack ActionView ActiveSupport Rails RUBY Wednesday, March 18, 2009

ActionMailer ActiveRecord ActionController ActionPack ActionView ActiveSupport Rails RUBY Wednesday, March 18, 2009

ActiveResource ActionWebService ActionMailer ActiveRecord ActionController ActionPack ActionView ActiveSupport Rails RUBY Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

RSpec describe Product do include ProductSpecHelper before(:each) do @product = Product.new end it quot;should not be valid when emptyquot; do @product.should_not be_valid end it quot;should be valid when having correct informationquot; do @product.attributes = valid_product_attributes @product.should be_valid end end Wednesday, March 18, 2009

RSpec describe Product do include ProductSpecHelper before(:each) do @product = Product.new end it quot;should not be valid when emptyquot; do @product.should_not be_valid spec rake end it quot;should be valid when having correct informationquot; do @product.attributes = valid_product_attributes @product.should be_valid end end Wednesday, March 18, 2009

Model class Product < ActiveRecord::Base after_create :set_initial_inventory has_many :variants, :dependent => :destroy has_many :images, :as => :viewable, :order => :position, :dependent => :destroy has_many :properties, :through => :product_properties belongs_to :tax_category validates_presence_of :name validates_presence_of :master_price validates_presence_of :description make_permalink :with => :name, :field => :permalink end Wednesday, March 18, 2009

Model class Product < ActiveRecord::Base after_create :set_initial_inventory has_many :variants, :dependent => :destroy has_many :images, :as => :viewable, :order => :position, :dependent => :destroy has_many :properties, :through => :product_properties Product.find(1) belongs_to :tax_category validates_presence_of :name validates_presence_of :master_price validates_presence_of :description make_permalink :with => :name, :field => :permalink end Wednesday, March 18, 2009

Controller class UsersController < Spree::BaseController resource_controller before_filter :initialize_extension_partials actions :all, :except => [:index, :destroy] show.before do @orders = Order.checkout_completed(true) .find_all_by_user_id(current_user.id) end create.after { self.current_user = @user } create.response do |wants| wants.html { redirect_back_or_default(products_path) } end end Wednesday, March 18, 2009

Controller class UsersController < Spree::BaseController resource_controller before_filter :initialize_extension_partials actions :all, :except => [:index, :destroy] show.before do @orders = Order.checkout_completed(true) /users/1 .find_all_by_user_id(current_user.id) end create.after { self.current_user = @user } create.response do |wants| wants.html { redirect_back_or_default(products_path) } end end Wednesday, March 18, 2009

Views ERB <div id=quot;product-listingquot;> <%= breadcrumbs(@taxon) %> <br/> <%= render :partial => quot;shared/products.html.erbquot;, :locals => {:products => @products, :taxon => @taxon } %> </div> <% content_for :sidebar do %> <td id=quot;shop-by-colquot; valign=quot;topquot;> <%= render :partial => quot;shared/taxonomiesquot; %> </td> <% end %> <%= render :partial => 'shared/paginate', :locals => {:collection => @products, :options => {}} unless @products.empty? %> Wednesday, March 18, 2009

Views HAML #product-listing =breadcrumbs(@taxon) %br =render :partial => quot;shared/products.html.erbquot;, :locals => {:products => @products, :taxon => @taxon} -content_for :sidebar do %td#shop-by-col(:valign => quot;topquot;) =render :partial => quot;shared/taxonomiesquot; =render :partial => 'shared/paginate', :locals => {:collection => @products, :options => {}} unless @products.empty? Wednesday, March 18, 2009

Rotas RESTFul ActionController::Routing::Routes.draw do |map| map.connect ':controller/service.wsdl', :action => 'wsdl' map.resources :products, :member => {:change_image => :post} map.resources :addresses map.resources :orders, :has_many => [:line_items] map.namespace :admin do |admin| admin.resources :users admin.resources :products end end Wednesday, March 18, 2009

Rotas RESTFul GET /products/new ActionController::Routing::Routes.draw do |map| map.connect ':controller/service.wsdl', :action => 'wsdl' GET /products map.resources :products, POST /products :member => {:change_image => :post} GET /products/1 map.resources :addresses map.resources :orders, :has_many => GET /products/1/edit [:line_items] PUT /products/1 map.namespace :admin do |admin| admin.resources :users DESTROY /products/1 admin.resources :products end end Wednesday, March 18, 2009

Migrations class RenameAppConfiguration < ActiveRecord::Migration def self.up rename_table :app_configurations, :configurations change_table :configurations do |t| t.string :type end end def self.down change_table :configurations do |t| t.remove :type end rename_table :configurations, :app_configurations end end Wednesday, March 18, 2009

Migrations class RenameAppConfiguration < ActiveRecord::Migration def self.up rename_table :app_configurations, :configurations change_table :configurations do |t| t.string :type rake db:migrate end end def self.down change_table :configurations do |t| t.remove :type end rename_table :configurations, :app_configurations end end Wednesday, March 18, 2009

“Beautiful Code” Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

11 mil classes! 46 só de Collections! Wednesday, March 18, 2009

• Classes: • Modules: • Array • Enumerable • Hash • Comparable • Set • Sorted Set Wednesday, March 18, 2009

1.400 Classes: • classesArray • Modules: • • Enumerable • Hash • Comparable 6 deSet só • Collections! Set • Sorted Wednesday, March 18, 2009

• Convention over Configuration • Don’t Repeat Yourself • You Ain’t Gonna Need It • Boas Práticas • Escalabilidade • Segurança • Automação Wednesday, March 18, 2009

2 Wednesday, March 18, 2009

3 Wednesday, March 18, 2009

Mitos Wednesday, March 18, 2009

Rails não Escala Wednesday, March 18, 2009

Wednesday, March 18, 2009

To put things into perspective, though, Friendster was written in Java to start, and switched to PHP. Myspace was written in ColdFusion and transitioned to ASP.NET. When people run into problems scaling sites they often think that the language is the problem, but I think it’s rarely the case. Blaine Cook http://www.akitaonrails.com/2008/6/17/chatting-with-blaine-cook-twitter Wednesday, March 18, 2009

“The New York Times used Ruby on Rails to pull together, analyze and display election results in near real time on one of its busiest Web traffic days ever. ” http://www.computerworld.com.au/article/268003/ruby_rails_rolls_into_enterprise?fp=16&fpid=1 Wednesday, March 18, 2009

“They serve up 23 million visitors a month. The conversion resulted in 20,000 lines of Ruby code instead of 125,000 lines of Java code, and most importantly eased the difficulty they had in maintaining it. Once complete, and optimized their site is now faster than before. They also completed the rewrite in three months with four developers.” http://www.railsonwave.com/railsonwave/2008/6/4/yellowpages-com-migrates-to-rails Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Mitos Wednesday, March 18, 2009

Deployment de Rails é difícil Wednesday, March 18, 2009

Wednesday, March 18, 2009

Apache + FastCGI LightTPD + FastCGI Litespeed + SAPI Apache + Mongrel Nginx + Mongrel Nginx + Thin Wednesday, March 18, 2009

Apache + FastCGI LightTPD + FastCGI Litespeed + SAPI Apache + Mongrel Nginx + Mongrel Nginx + Thin Wednesday, March 18, 2009

Apache + FastCGI LightTPD + FastCGI Litespeed + SAPI Apache + Mongrel Nginx + Mongrel Nginx + Thin Wednesday, March 18, 2009

Apache + FastCGI LightTPD + FastCGI Litespeed + SAPI Apache + Mongrel Nginx + Mongrel Nginx + Thin Wednesday, March 18, 2009

Apache + FastCGI LightTPD + FastCGI Litespeed + SAPI Apache + Mongrel Nginx + Mongrel Nginx + Thin Wednesday, March 18, 2009

Apache + FastCGI LightTPD + FastCGI Litespeed + SAPI Apache + Mongrel Nginx + Mongrel Nginx + Thin Wednesday, March 18, 2009

Wednesday, March 18, 2009

gem install passenger passenger-install-apache2-module Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Mitos Wednesday, March 18, 2009

Rails é mal documentado Wednesday, March 18, 2009

Geoffrey Wednesday, March 18, 2009

Jason e Gregg Wednesday, March 18, 2009

Pratik Naik Wednesday, March 18, 2009

Satish Talim Wednesday, March 18, 2009

Peter Cooper Wednesday, March 18, 2009

_why Wednesday, March 18, 2009

Ryan Bates Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

3 Wednesday, March 18, 2009

4 Wednesday, March 18, 2009

Open Source Wednesday, March 18, 2009

Chris Wanstrath Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Conferências Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

Wednesday, March 18, 2009

4 Wednesday, March 18, 2009

One more thing ... Wednesday, March 18, 2009

Wednesday, March 18, 2009

“Especialista de uma coisa só é um amador em todo o resto.” Wednesday, March 18, 2009

Obrigado! www.akitaonrails.com Wednesday, March 18, 2009

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

Stands in Web Expo Forum

774 Stand Contractors available to build your stand at Web Expo Forum. Knowing who is the best company for each case is the secret to get the best ...
Read more

Web Expo Forum 2011 - YouTube

Web 2.0 Expo NY 2011, Joichi Ito, MIT Media Lab, "Innovation in Open Networks and the Media Lab" - Duration: 10:27. O'Reilly 2,396 views
Read more

Web Expo Forum 2013 - Feiras

774 Empresas de Stands Web Expo Forum. Stands » Solicitar grátis 5 orçamentos para seu Stand em Web Expo Forum, e economize até 40%
Read more

Web Expo Forum 2011 - YouTube

Fernando Okumura, diretor do Kekanto, falpou no painel sobre marketing de geolocalizacao.
Read more

UNITI expo – Die Leitmesse der Tankstellen- und Carwash ...

UNITI expo 2016 - Die Leitmesse der Tankstellen- und Carwash-Branche, Tankstellenmesse in Stuttgart, Tankstellenkongress, Shop, Convenience, Automechanika
Read more

EXPO REAL | Real Estate Trade Fair in Munich

EXPO REAL, the international trade fair for real estate and investment, is the unmissable business platform for the entire sector – all in one place.
Read more

Conference program | EXPO REAL

Conference program Experts from the real estate industry, politics and the media: Introducing the forums and events at EXPO REAL. EXPO REAL FORUM
Read more

WTT-Expo - Fachmesse und Forum für industrielle Wärme ...

Mit mehr als 2.100 Fachbesuchern überzeugte die WTT-Expo bei der letzten Ausgabe im ... für die WTT-Expo | Fachmesse und Forum für ...
Read more

Web Expo Forum - New York | Food, Nightlife, Entertainment

Web Expo Forum. Convention Center · Bela Vista. Shopping Frei Caneca, Brasil. Directions. Save. Share. See what your friends are saying about Web Expo Forum.
Read more