SlideShare a Scribd company logo
1 of 62
Download to read offline
Crashing and uncrashing
a social startup

  RailsWayCon Berlin
  June 1st, 2010

  Till Behnke, co-founder, CEO
  Phillip Oertel, CTO
Audience survey!
Audience survey!
  1. Whatʻs your Rails version?
Audience survey!
  1. Whatʻs your Rails version?
  2. Do you look into the Rails source?
Audience survey!
  1. Whatʻs your Rails version?
  2. Do you look into the Rails source?
  3. Whatʻs your team size?
Audience survey!
  1. Whatʻs your Rails version?
  2. Do you look into the Rails source?
  3. Whatʻs your team size?
  4. Why do you attend the talk?
Take-Aways
  1. An approach to do Rails updates, and
     project recoveries in general
  2. Typical issues during Rails updates
  3. How to prevent history from repeating itself
What we do
   Introducing betterplace.org
How we got there.
The beginning: Business & IT
A growing organisation...
...without funding.
A growing organisation...
...without funding.
Fluctuation of staff.




                        >20 thousand lines
                        of code...
First time funding...
...and a team.




                        Rewrite?
Starting point:
betterplace in January

   Original developers were long gone
   15.000 LOC, 16.000 LOT, 72 controllers, 160 models
   Running Rails 2.0.2, released December 2007
   Running mongrels, beanstalk 0.7, hyperestraier
   Code sometimes over-engineered, hard to understand,
    or hackish
   Lots of leftover code from one-time campaigns and features that
    never went live


   ~3 developers, 3 months time
Before you start
    Some precautions
Convince



   thereʻs no point in arguing if your organisation doesnʻt feel the
    pain itself
   donʻt just complain; developers complain all the time
   instead, show how the technical improvements will help your
    organisation to reach its goals
Manage expectations:
You certainly wonʻt fix everything.

   Your own
   Your teamʻs
   Your organisationʻs
For the team:
make a list of tech debt




                           8
Watch team morale
Watch team morale




                    http://www.flickr.com/photos/e-ality
Watch team morale



   Work in pairs, extensively
   Remove the uncertainty of what you will need to do
   Show progress and remaining time on big visible charts
   Do retrospectives
The approach
   A lot more than coding
The approach
The approach




  4. Do the actual update
The approach




  4. Do the actual update


  6. Release
The approach



  1. Reduce app to the min




  4. Do the actual update


  6. Release
The approach



  1. Reduce app to the min
  2. Bring test coverage up


  4. Do the actual update


  6. Release
The approach



  1. Reduce app to the min
  2. Bring test coverage up
  3. Do a spike
  4. Do the actual update


  6. Release
The approach



  1. Reduce app to the min
  2. Bring test coverage up
  3. Do a spike
  4. Do the actual update
  5. Throw a test party
  6. Release
The approach



  1. Reduce app to the min
  2. Bring test coverage up
  3. Do a spike
  4. Do the actual update
  5. Throw a test party
  6. Release
  7. Fix missed bugs
1. Reduce app to the minimum



   throw out non- or hardly used features
   throw out commented out code
   get rid of unused plugins, gems, other files
2. Bring test coverage up
Make a list of all features
Cucumber is your friend.
3. Do a spike
When spiking, you have the
license to make a mess.
4. Do the actual update



   work off your list made during the spike
   run rake rails:update
Rails internals



   i18n
   CGI => Rack in 2.3:
    review sessions, cookies, uploads, JSON/XML APIs
   review new rails defaults:
    ActiveRecord::Base.include_root_in_json, ...
   order of observer/callback firing has changed
Plugins



   attachment_fu
   active_merchant
   cucumber
   find_by_param
   haml
   rspec
   typus
5. Throw a party with the whole
team, and test
6. Release it!
7. Fix the bugs you missed,
immediately
Declare victory!




                   http://www.flickr.com/photos/annieinbeziers/1504067303/
Done. Done?
Start using new Rails features


  class Project < ActiveRecord::Base

    named_scope :completed,
      :conditions => 'projects.completed_at IS NOT NULL',
      :order => 'projects.completed_at DESC'
    named_scope :featured, :conditions => 'projects.featured != 0'
    named_scope :visible, :conditions => { :hidden => 0 }
    named_scope :lang, lambda { |lang| %w(en de).include?(lang) ...

  ...

  # app/views/groups/new_groups/_section_header.haml

  #amount_donors.fl
    %span.label=t(".amount_donors")
    %span.amount=@group.members.size

  ...
But if you just do this,
history will probably repeat itself.

   „Always leave the campsite cleaner than you found it“
   Schedule larger improvements
   Build a team, distribute knowledge: „If you want to go fast, go
    alone. If you want to go far, go together.“
   Build trust: be transparent, measure.
   Bring in new people.


   Establish a pull-based software development process
Q&A
Work for us!

    Here in Berlin, Kreuzberg.
    jobs@betterplace.org
Vielen Dank.




betterplace gemeinnützige Stiftungs-GmbH
Till Behnke, Phillip Oertel

Schlesische Strasse 26
10997 Berlin
Tel +49 30 76 76 44 88-0
Fax +49 30 76 76 44 88-40
change@betterplace.org
Stub example

More Related Content

Viewers also liked

Torwegge Vestiging München opent zijn deuren!
Torwegge Vestiging München opent zijn deuren!Torwegge Vestiging München opent zijn deuren!
Torwegge Vestiging München opent zijn deuren!Torwegge Group
 
Gutierrez et al. 2015 geoderma
Gutierrez et al. 2015 geodermaGutierrez et al. 2015 geoderma
Gutierrez et al. 2015 geodermaMaria Pérez
 
Producto colectivo historieta tics
Producto colectivo historieta ticsProducto colectivo historieta tics
Producto colectivo historieta ticsaldo rivera
 
Two for Attack: Web and Email Content Protection
Two for Attack: Web and Email Content ProtectionTwo for Attack: Web and Email Content Protection
Two for Attack: Web and Email Content ProtectionCisco Canada
 
ImagebroschüRe D 11 09
ImagebroschüRe D 11 09ImagebroschüRe D 11 09
ImagebroschüRe D 11 09aloahe2
 
Enfermedades HistóRicas
Enfermedades HistóRicasEnfermedades HistóRicas
Enfermedades HistóRicasstefanyolga
 
Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013
Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013
Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013Diego Molano Vega
 
Management of information system report
Management of information system reportManagement of information system report
Management of information system reportMagdy Abdelsattar Omar
 
Doors Getting Started
Doors Getting StartedDoors Getting Started
Doors Getting Startedsong4fun
 

Viewers also liked (12)

Torwegge Vestiging München opent zijn deuren!
Torwegge Vestiging München opent zijn deuren!Torwegge Vestiging München opent zijn deuren!
Torwegge Vestiging München opent zijn deuren!
 
Gutierrez et al. 2015 geoderma
Gutierrez et al. 2015 geodermaGutierrez et al. 2015 geoderma
Gutierrez et al. 2015 geoderma
 
Producto colectivo historieta tics
Producto colectivo historieta ticsProducto colectivo historieta tics
Producto colectivo historieta tics
 
Two for Attack: Web and Email Content Protection
Two for Attack: Web and Email Content ProtectionTwo for Attack: Web and Email Content Protection
Two for Attack: Web and Email Content Protection
 
ImagebroschüRe D 11 09
ImagebroschüRe D 11 09ImagebroschüRe D 11 09
ImagebroschüRe D 11 09
 
Enfermedades HistóRicas
Enfermedades HistóRicasEnfermedades HistóRicas
Enfermedades HistóRicas
 
Autolesiones
AutolesionesAutolesiones
Autolesiones
 
Fun quiz
Fun quizFun quiz
Fun quiz
 
Pionieri
PionieriPionieri
Pionieri
 
Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013
Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013
Encuesta de cultura digital en Colombia - Centro Nacional de Consultoría 2013
 
Management of information system report
Management of information system reportManagement of information system report
Management of information system report
 
Doors Getting Started
Doors Getting StartedDoors Getting Started
Doors Getting Started
 

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 

betterplace.org: Crashing and uncrashing a social startup

  • 1.
  • 2. Crashing and uncrashing a social startup RailsWayCon Berlin June 1st, 2010 Till Behnke, co-founder, CEO Phillip Oertel, CTO
  • 4. Audience survey! 1. Whatʻs your Rails version?
  • 5. Audience survey! 1. Whatʻs your Rails version? 2. Do you look into the Rails source?
  • 6. Audience survey! 1. Whatʻs your Rails version? 2. Do you look into the Rails source? 3. Whatʻs your team size?
  • 7. Audience survey! 1. Whatʻs your Rails version? 2. Do you look into the Rails source? 3. Whatʻs your team size? 4. Why do you attend the talk?
  • 8. Take-Aways 1. An approach to do Rails updates, and project recoveries in general 2. Typical issues during Rails updates 3. How to prevent history from repeating itself
  • 9. What we do Introducing betterplace.org
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. How we got there.
  • 25. Fluctuation of staff. >20 thousand lines of code...
  • 26. First time funding... ...and a team. Rewrite?
  • 27. Starting point: betterplace in January  Original developers were long gone  15.000 LOC, 16.000 LOT, 72 controllers, 160 models  Running Rails 2.0.2, released December 2007  Running mongrels, beanstalk 0.7, hyperestraier  Code sometimes over-engineered, hard to understand, or hackish  Lots of leftover code from one-time campaigns and features that never went live  ~3 developers, 3 months time
  • 28. Before you start Some precautions
  • 29. Convince  thereʻs no point in arguing if your organisation doesnʻt feel the pain itself  donʻt just complain; developers complain all the time  instead, show how the technical improvements will help your organisation to reach its goals
  • 30. Manage expectations: You certainly wonʻt fix everything.  Your own  Your teamʻs  Your organisationʻs
  • 31. For the team: make a list of tech debt 8
  • 33. Watch team morale http://www.flickr.com/photos/e-ality
  • 34. Watch team morale  Work in pairs, extensively  Remove the uncertainty of what you will need to do  Show progress and remaining time on big visible charts  Do retrospectives
  • 35. The approach A lot more than coding
  • 37. The approach 4. Do the actual update
  • 38. The approach 4. Do the actual update 6. Release
  • 39. The approach 1. Reduce app to the min 4. Do the actual update 6. Release
  • 40. The approach 1. Reduce app to the min 2. Bring test coverage up 4. Do the actual update 6. Release
  • 41. The approach 1. Reduce app to the min 2. Bring test coverage up 3. Do a spike 4. Do the actual update 6. Release
  • 42. The approach 1. Reduce app to the min 2. Bring test coverage up 3. Do a spike 4. Do the actual update 5. Throw a test party 6. Release
  • 43. The approach 1. Reduce app to the min 2. Bring test coverage up 3. Do a spike 4. Do the actual update 5. Throw a test party 6. Release 7. Fix missed bugs
  • 44. 1. Reduce app to the minimum  throw out non- or hardly used features  throw out commented out code  get rid of unused plugins, gems, other files
  • 45. 2. Bring test coverage up Make a list of all features
  • 46. Cucumber is your friend.
  • 47. 3. Do a spike
  • 48. When spiking, you have the license to make a mess.
  • 49. 4. Do the actual update  work off your list made during the spike  run rake rails:update
  • 50. Rails internals  i18n  CGI => Rack in 2.3: review sessions, cookies, uploads, JSON/XML APIs  review new rails defaults: ActiveRecord::Base.include_root_in_json, ...  order of observer/callback firing has changed
  • 51. Plugins  attachment_fu  active_merchant  cucumber  find_by_param  haml  rspec  typus
  • 52. 5. Throw a party with the whole team, and test
  • 54. 7. Fix the bugs you missed, immediately
  • 55. Declare victory! http://www.flickr.com/photos/annieinbeziers/1504067303/
  • 57. Start using new Rails features class Project < ActiveRecord::Base named_scope :completed, :conditions => 'projects.completed_at IS NOT NULL', :order => 'projects.completed_at DESC' named_scope :featured, :conditions => 'projects.featured != 0' named_scope :visible, :conditions => { :hidden => 0 } named_scope :lang, lambda { |lang| %w(en de).include?(lang) ... ... # app/views/groups/new_groups/_section_header.haml #amount_donors.fl %span.label=t(".amount_donors") %span.amount=@group.members.size ...
  • 58. But if you just do this, history will probably repeat itself.  „Always leave the campsite cleaner than you found it“  Schedule larger improvements  Build a team, distribute knowledge: „If you want to go fast, go alone. If you want to go far, go together.“  Build trust: be transparent, measure.  Bring in new people.  Establish a pull-based software development process
  • 59. Q&A
  • 60. Work for us! Here in Berlin, Kreuzberg. jobs@betterplace.org
  • 61. Vielen Dank. betterplace gemeinnützige Stiftungs-GmbH Till Behnke, Phillip Oertel Schlesische Strasse 26 10997 Berlin Tel +49 30 76 76 44 88-0 Fax +49 30 76 76 44 88-40 change@betterplace.org