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

Do zero ao online: Como colocar seu app web no ar

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →
Scoola
November 07, 2013

Transcript

25 slides
  1. Do zero ao online Como colocar sua app web no

    ar Weldys Santos Marcello Paixão
  2. Ruby • Orientada a objetos • Simples de aprender •

    Sintaxe simples • Atualizações constantes
  3. class Browser attr_accessor :name ! def read_html do_something end end

    ! end (1..100).each {|n| puts n} (1..100).each do |n| puts n end
  4. Ruby on Rails • Escalável • Comunidade muito ativa •

    Framework de teste incluso • Fácil de prototipar • Muitos brasileiros no Core-Team
  5. % rails generate scaffold post title:string body:text invoke active_record create

    db/migrate/20120803224002_create_posts.rb create app/models/post.rb invoke test_unit create test/unit/post_test.rb create test/fixtures/posts.yml invoke resource_route route resources :posts invoke scaffold_controller create app/controllers/posts_controller.rb invoke erb create app/views/posts create app/views/posts/index.html.erb create app/views/posts/edit.html.erb create app/views/posts/show.html.erb create app/views/posts/new.html.erb create app/views/posts/_form.html.erb invoke test_unit create test/functional/posts_controller_test.rb invoke helper create app/helpers/posts_helper.rb invoke test_unit create test/unit/helpers/posts_helper_test.rb invoke assets invoke coffee create app/assets/javascripts/posts.js.coffee invoke scss create app/assets/stylesheets/posts.css.scss invoke scss create app/assets/stylesheets/scaffolds.css.scss
  6. Problemas de não controlar versão • Trabalho em equipe prejudicado

    • Não existe um… controle de versão • Saiba quem está fazendo a bobagem no código • Crie ramificações do código
  7. Esteja dentro das comunidades • Participe de listas de discussões

    • Mexa em código open-source • IRC, Github, Google Groups, Twitter…
  8. Testes automatizados • Crie testes antes de desenvolver • Testes

    ajudam a encontrar bugs • Documentam o código
  9. context "when editing score in a discipline" do let(:discipline) {double(:discipline,

    name: "História")} it "should specific score from discipline" do [3, 5, 4].each {|v| subject.add_score(discipline, v) } subject.edit_score(discipline, 10, 3) subject.score[discipline.name].should include(3,5,10) subject.score[discipline.name].should_not include(4) end it "should change nil to scoring on a discipline" do [4, 7, nil, 8, nil].each {|s| subject.add_score(discipline, s)} subject.edit_score(discipline, 6, 5) subject.score[discipline.name].should include(4, 7, nil, 8, 6) end end
  10. Servidores podem ser grátis • Servidores a menos de 10

    reais • Entenda Linux • Servidores compartilhados são ruins. • Estude sobre segurança
  11. Plus • Aprenda Inglês • Leia bastante • Coloque coisas

    no ar. Sempre. • Teste coisas novas. Open your mind • Estagie em empresas legais (Scoola)
  12. • http://www.scoola.com.br • http://empresta.la • http://ruby-lang.org • http://www.rubyonrails.com • http://railscasts.com

    • http://getbootstrap.com • http://www.github.com • https://aws.amazon.com/free • http://www.bitbucket.org • http://www.duolingo.com • http://www.heroku.com • http://azure.com • http://speakerdeck.com/scoola • https://www.github.com/torvalds/linux Links úteis

More Decks by Scoola

Other Decks in Technology