The Refactoring Game: Functions and Expressions Edition!

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • Refactoring may not be glamorous but it's an important part of development.

    This article codecademy.com/articles/tdd-red-green-refactor talks about the 3 stages of test driven development, but in practice even if you aren't using tests it helps to follow these 3 steps:

    1. Consider what it should do.

    2. Build something that matches that.

    3. Consider how to improve it.

    It's not uncommon to follow only the first 2 steps, but without step 3 those first 2 steps will get progressively more difficult!

    So try not to feel bad about not adding anything new, refactoring is equally important!