Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 794 Bytes

refactoring.md

File metadata and controls

9 lines (7 loc) · 794 Bytes

Refactoring

When you return to your solution. Ask yourself:

  • Are the variable names you've chosen clear? (see Tips for Naming Variables)
  • Is the code concise (but readable)? See Code Smells FYI: When he refers to "shorter methods" think of them as not necessarily short in terms of lines, but having a single thing to do. Avoid chaining too many methods together or having too much logic on one line.
  • Is the code D.R.Y?

If you can't think of a way to improve your code, write why you think it's great instead. Do not simply copy the initial solution or leave this section blank.