Legacy Apps                @mlomnicki   The essence of dealing with legacy appsis to reduce the number of WTFs down to zero.
Legacy Apps  Growing market.
There was an app...Almost 3 years under development2 teams. 1st from UK, 2nd from India
teststhere were some tests! (unit, controllers)over 100 out of 220 fail
git log  fixes - 163 times   fix - 144 times  search - 52 times changes - 40 timesfinal issues - 30 times
versionsRails 2.3.5ruby 1.8no bundler
WTFs(@club.secretary == current_member || @club.secretary == current_member)
WTFs<%= @payment.new_record? ?  :  %>
WTFsif some_conditionelse  do_something
WTFsMember.first(:conditions => ["member_id LIKE #{params[:id]}"])
WTFsif @member.something == sth || @member.somethi  ...elsif other_long_conditions  ...else very_long_condition && looks_i...
Logicmodelscontrollersviewslayoutsinitializers (!)
Everything is awfulruby codeJSCSSplugins used
Arkency took control
1. Understand the appIt is hardFrom the beginning you have to dive into every detailBugs made by your predecessor become y...
2. TestsBBQheavyno factories or fixtures
3. CodePORO + real unit testsGood Rails codeNothing fancy yet (no DCI, no usecases...)
4. UpgradeIt is all about pluginsMoved them to lib and simplifyDo you need them all?
Where is the fun?!
Removing code is fun1799 files changed, 37303 insertions(+), 78770 deletions(-)
SPA migration is mega fun Realize the rails-way is legacy! It does not matter how old Rails you have
To fix or to rewrite?None is correct!SPA is the answerOtherwise your app is still legacy...
ProfitsUsers - SPA enhances their experienceDevs - SPA is better architecture
Time80% in frontend app20% in Rails
Gameboxed EngineIt is the best thing since RailsPut pressure on Andrzej to open-source it
Mobile app soonMobile is so easy nowThank you SPA
Q&A
Upcoming SlideShare
Loading in …5
×

Having fun with legacy apps

4,401 views
4,381 views

Published on

Published in: Technology
2 Comments
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
4,401
On SlideShare
0
From Embeds
0
Number of Embeds
3,543
Actions
Shares
0
Downloads
2
Comments
2
Likes
0
Embeds 0
No embeds

No notes for slide

Having fun with legacy apps

  1. 1. Legacy Apps @mlomnicki The essence of dealing with legacy appsis to reduce the number of WTFs down to zero.
  2. 2. Legacy Apps Growing market.
  3. 3. There was an app...Almost 3 years under development2 teams. 1st from UK, 2nd from India
  4. 4. teststhere were some tests! (unit, controllers)over 100 out of 220 fail
  5. 5. git log fixes - 163 times fix - 144 times search - 52 times changes - 40 timesfinal issues - 30 times
  6. 6. versionsRails 2.3.5ruby 1.8no bundler
  7. 7. WTFs(@club.secretary == current_member || @club.secretary == current_member)
  8. 8. WTFs<%= @payment.new_record? ? : %>
  9. 9. WTFsif some_conditionelse do_something
  10. 10. WTFsMember.first(:conditions => ["member_id LIKE #{params[:id]}"])
  11. 11. WTFsif @member.something == sth || @member.somethi ...elsif other_long_conditions ...else very_long_condition && looks_important ...
  12. 12. Logicmodelscontrollersviewslayoutsinitializers (!)
  13. 13. Everything is awfulruby codeJSCSSplugins used
  14. 14. Arkency took control
  15. 15. 1. Understand the appIt is hardFrom the beginning you have to dive into every detailBugs made by your predecessor become your bugs
  16. 16. 2. TestsBBQheavyno factories or fixtures
  17. 17. 3. CodePORO + real unit testsGood Rails codeNothing fancy yet (no DCI, no usecases...)
  18. 18. 4. UpgradeIt is all about pluginsMoved them to lib and simplifyDo you need them all?
  19. 19. Where is the fun?!
  20. 20. Removing code is fun1799 files changed, 37303 insertions(+), 78770 deletions(-)
  21. 21. SPA migration is mega fun Realize the rails-way is legacy! It does not matter how old Rails you have
  22. 22. To fix or to rewrite?None is correct!SPA is the answerOtherwise your app is still legacy...
  23. 23. ProfitsUsers - SPA enhances their experienceDevs - SPA is better architecture
  24. 24. Time80% in frontend app20% in Rails
  25. 25. Gameboxed EngineIt is the best thing since RailsPut pressure on Andrzej to open-source it
  26. 26. Mobile app soonMobile is so easy nowThank you SPA
  27. 27. Q&A

×