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

Science-based Development

Science-based Development

Development, like science, is a messy endeavor. It’s near impossible to control all the variables. Testing code is a noble goal, but it’s very easy to test the wrong thing. Many experienced scientists are fooled by their senses and biases. To account for that they crafted and refined a Scientific Method. That method has been stress tested by centuries of experimentation, discovery and peer-review. It probably wouldn’t hurt to try to apply it to development and see what it can offer.

Olivier Lacan

January 17, 2013
Tweet

More Decks by Olivier Lacan

Other Decks in Programming

Transcript

  1. There was an elderly professor who had been passionately keen

    on a particular theory for a number of years. One day an American researcher came and u erly disproved our old man's hypothesis. The old man strode to the front, shook his hand and said, “My dear fellow, I wish to thank you, I have been wrong these fi een years”. And we all clapped our hands raw. That was the scientific ideal, of somebody who had a lot invested, a lifetime almost invested in a theory, and he was rejoicing that he had been shown wrong and that scientific truth had been advanced. Richard Dawkins in The Root of All Evil? Story Time
  2. “When I got the idea one night that I could

    amplify DNA (...), and that I could make lots of copies of some little piece of DNA, the thinking for that was about 20 minutes. (...) I did talk to people about it but if I’d listened to what I heard from all my friends who were molecular biologists I would have abandoned it.”
  3. this is what our users want we need this feature

    right now without a Like button, we’re nothing
  4. using AJAX here should improve our sign up rate by

    at least 10% falsifiable statement
  5. - down 1% sign ups: - up 0% - up

    5% - up 10% - up 20% hypothesis falsified hypothesis supported
  6. A/B Testing is OK. provided you don’t forget about: C

    D E F G H I J K L M N O P Q R S T U V W X Y Z
  7. describe User do let(:user) { Factory.build(:user) } subject { user

    } it { should have_many(:achievements) } it { should have_many(:courses) } it { should have_many(:orders) } it { should have_many(:prizes) } it { should have_many(:videos) } end predictions
  8. context '#complete_course!' do it "increases count of completed courses" do

    expect { user.complete_course!(course) }.to change { user.courses.completed.count }.by(1) end end