tampere goes agile 2013 - managing a clean codebase

Download Tampere Goes Agile 2013 - Managing a Clean Codebase

If you can't read please download the document

Upload: vincitoy

Post on 23-Jun-2015

532 views

Category:

Technology


0 download

DESCRIPTION

By Janne Rönkkö

TRANSCRIPT

  • 1. Maintaining a Clean CodebaseJanne Rnkk Passionate Software Developer

2. About Me 3. 200779 4. Agenda Tools to improve code How we do it Experiences 5. Use version control 6. Implement Learn Measure 7. No bad code allowed! Code reviewing Continuous integration Testing 8. Do review your code 9. Invest your time in reviews 45%-70% of defects are found in code reviews but only 15%-50% using unit tests. From Clean Code I believe that peer code reviews are the single biggest thing you can do to improve your code Jeff Atwood 10. Benefits from code reviews 11. Readability may not be sacrificed 12. Review reasonable change at a time 13. Nothing shall be left unreviewed Looks Functionality Tests Change 14. Good change history matters 15. Show your code to others 16. Don't Repeat Yourself 17. Automate every repeating tasks 18. Run all automated tests for every change 19. Verify your implementation 20. Test your change yourself 21. Let someone else try your change 22. Test immediately 23. How long one iteration takes? Implement Learn Measure 24. Prevent instead of reacting 25. Do not publish unapproved changes 26. Agenda Tools to improve code How we do it Experiences 27. Tools we use Git Gerrit Buildbot / Jenkins 28. Use tools that fit 29. CodingReview CI TestDone 30. Review with common sense 31. All the commits are reviewed, bad ones are fixed 32. Agenda Tools to improve code How we do it Experiences 33. We have become more disciplined 34. That is a nice way of doing that 35. Reviewing is fast 36. Reviewing has improved our code 37. Agenda Tools to improve code How we do it Experiences 38. Bad Code Not Allowed 39. [email protected] http://www.vincit.fi/