Ruby and Rails for womens

Post on 15-May-2015

2.442 views 0 download

Tags:

description

Palestra realizada no Rails Girls Belém no dia 10 de Novembro de 2012

Transcript of Ruby and Rails for womens

railsgirls.com/belem

@luizsanxes

Ruby and Rails for womens

Malala Yusafzai

programming languages

synchronous and asynchronous

think different

Ada Lovelace

Ruby language

1995, Japan, Yukihiro "Matz" Matsumoto.

Interpreted, object-oriented and people.

Inspired by: Python, Perl, Smalltalk, Eiffel, Ada and Lisp.

result.rb

$ ruby result.rb

Jully's code is 100% complete

duck_typing.rb

$ ruby duck_typing.rb

9grapes and apples; grapes and apples;

object

class

fruit.rb

$ ruby fruit.rb

Benefits of banana: acts on the vision, skin and mucous

Interactive Ruby Shell

Ruby Gems

gem install rails

gem list

gem uninstall haml

web applications

Ruby on Rails

2004, EUA, David Heinemeier Hansson.

Convention over Configuration

Don't Repeat Yourself

Model-View-Controller

meta framework

railties

Web LayerActionController

Tests/SpecsTest::UnitORM

ActiveRecord

TemplatingErbHTTP Client

ActiveResource

Web ServerMongrel

slideshare.net/adamwiggins/rails-metal-rack-and-sinatra

sites oriented database

CreateReadUpdateDelete

Model, View and Controller

creating a project

$ rails new market

$ cd market

creating a crud

$ rails generate scaffold product name:string value:decimal unit:string

Model

View

Controller

creating a data structure

$ rake db:create

$ rake db:migrate

executing the application

$ rails server

show me the code

ReferencesPortuguese> aprendaaprogramar.rubyonrails.pro.br> eustaquiorangel.com/tutorial-ruby> why.nomedojogo.com> caelum.com.br/apostila-ruby-on-rails

English> sapphiresteel.com/The-Book-Of-Ruby> guides.rubyonrails.org> github.com/bryanbibat/rails-3_0-tutorial

thanks

@guru_pa

@tasafo