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.”
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));
13. Scala
class CalculadorDeMDC {
def calcula(a: Int, b: Int): Int = {
if (b == 0)
a
else
calcula(b, a % b)
}
}
val calculador = new CalculadorDeMDC
println(calculador.calcula(28, 7))
14. 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)
52. TDD
Test Driven Development
BDD
Behavior Driven Development
53. 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
54. 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"
56. Hoje o Redeparede.com
serve 7,5 milhões de
acessos por mês
usando Ruby on Rails.
Rails escala, depende
de você!
57. “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.”