↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

How do you refactor personal projects?

The post asks whether personal projects should be refactored, and frames the choice as a tradeoff between improving an existing project and spending time learning new skills. In the comments, people describe refactoring when adding features, fixing bugs, or revisiting code with better knowledge than when it was first written.

Reading notes
#

  • Refactoring a personal project can show new skills.
  • Learning new skills may be a better use of time.
  • Some people refactor when they return to add a feature or fix a bug.
  • Some refactor when the code has become too hard to extend or understand.
  • Repeated code can lead to moving parts into utilities or generic code.
  • Integration tests can help catch mistakes during refactoring.
  • One commenter says refactoring is a way to improve understanding of a framework or pattern.
  • Another says refactoring helps them focus on the parts already visible to users.