5. Yukihiro Matsumoto (Matz)
“Often people, especially
computer engineers, focus on the
machines. But in fact we
need
to focus on humans, on
how humans care about doing
programming or operating the
application of the machines. We
are the masters. They are the
slaves.”
Sunday, November 8, 2009
12. Java
class CalculadorDeMDC {
public int calcula(int a, int b) {
if (b == 0)
return a;
else
return calcula(b, a % b);
}
}
CalculadorDeMDC calculador = new CalculadorDeMDC();
System.out.println(calculador.calcula(28, 7));
Sunday, November 8, 2009
13. Ruby
class CalculadorDeMDC
def calcula(a, b)
if b == 0
a
else
calcula(b, a % b)
end
end
end
calculador = CalculadorDeMDC.new
puts calculador.calcula(28, 7)
Sunday, November 8, 2009
53. Test All The Fucking Time!
Testes
Sunday, November 8, 2009
54. TDD
Test Driven Development
BDD
Behavior Driven Development
Sunday, November 8, 2009
55. RSpec
it "should require acceptance of terms of service" do
@job.attributes = valid_job_attributes.except(:terms_accepted)
@job.should_not be_valid
@job.terms_accepted = false
@job.should_not be_valid
@job.terms_accepted = true
@job.should be_valid
end
Sunday, November 8, 2009
56. Cucumber
Feature: Job listing
In order to see the job offers in my area and start working
As a user
I want to see a list of jobs filtered by type and location
Scenario: Listing when there is no jobs
Given there is no jobs
When I go to "java"
Then I should see "Desculpe, não existem vagas disponíveis."
And the "OndeTrabalhar.com" field should contain "java"
Sunday, November 8, 2009
62. Hoje o Redeparede.com
serve 7,5 milhões de
acessos por mês
usando Ruby on Rails.
Rails escala, depende
de você!
Sunday, November 8, 2009
63. “Basecamp is now handling
more than 50 million Rails
requests per week. We're
peaking out at around 200
req/sec. Damn!”
“Basecamp's average
response time is 90ms
and 87% of all requests
finish in less than 200ms.”
Sunday, November 8, 2009
95. Formação Rails
RR-71: Desenvolvimento Ágil para RR-75: Ruby e Rails avançados:
Web 2.0 com Ruby on Rails lidando com problemas do dia a dia
Sunday, November 8, 2009