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

Diving into the deep code waters

Diving into the deep code waters

Tools and techniques for exploring an unknown (large) codebase

Based on Medium blog-post:
https://medium.com/@dvirsegal/diving-into-the-deep-code-waters-574b95c8c3cb

Dvir Segal

July 07, 2020
Tweet

More Decks by Dvir Segal

Other Decks in Programming

Transcript

  1. Baby Steps Introduce small changes and see what breaks Add

    comments to explain what you think the code does 7
  2. Baby Steps Using a refactoring tool (Resharper ) apply changes

    to variable names to make them readable 8
  3. Baby Steps Using a refactoring tool (Resharper ) apply changes

    to variable names to make them readable Reduce code clutter by deleting commented out code, meaningless comments… 8
  4. Baby Steps Get rid of magic numbers and apply code

    conventions Add tests where possible 9
  5. Remind your future self Regularly clean the code Always test

    new functionalities Allow time for refactoring 12