“Try and leave this world a little better than you found it.” - Robert Baden-Powell (Boy Scouts founder, 1941)
The campfire principle can be expressed as “leave the code better than you found it.” Or, in other words, "during normal work, make objective, opportunistic code quality improvements." The campfire principle is one of the simplest tools to managing code quality. Though I am leery of one-size-fits-all solutions, this is one that probably every developer should learn and use daily.
In this episode we cover the basic Dos and Don'ts of the campfire principle, and where to draw a line between the this principle and full refactoring.
Previous, related episodes:
Refactoring is Life Part 1: • E4 - Refactoring is Life Part 1 — Def...
Refactoring is Life Part 2: • E5 - Refactoring is Life Part 2 — How...
Code Quality - How to Write Refactorable Code: • E6 - Code Quality — How to Write Refa...
Timestamps
0:00 C&O Intro
0:21 Today's topic is The Campfire Principle
1:01 Definition of The Campfire Principle
2:22 Dos
4:08 Don'ts
6:20 Campfire vs Refactor vs Rewrite
7:55 Thank you, questions and outro
Смотрите видео E7 - The Campfire Principle (i.e. the boy scout rule) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code & Optimism 01 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 8 раз и оно понравилось людям.