SlideShare une entreprise Scribd logo
1  sur  62
Télécharger pour lire hors ligne
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

Contenu connexe

En vedette

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
 
Producto colectivo historieta tics
Producto colectivo historieta ticsProducto colectivo historieta tics
Producto colectivo historieta tics
aldo rivera
 
ImagebroschüRe D 11 09
ImagebroschüRe D 11 09ImagebroschüRe D 11 09
ImagebroschüRe D 11 09
aloahe2
 
Enfermedades HistóRicas
Enfermedades HistóRicasEnfermedades HistóRicas
Enfermedades HistóRicas
stefanyolga
 
Management of information system report
Management of information system reportManagement of information system report
Management of information system report
Magdy Abdelsattar Omar
 

En vedette (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
 

Dernier

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
giselly40
 

Dernier (20)

[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
 
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
 
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...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

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