Below I listed the 5 most important “XP” points for my reference during development:
-
Test First (TDD) Write the test before the code. If it doesn’t fail, don’t write the logic.
-
Pair Up Two eyes are better than one. Code with a partner for complex tasks to share knowledge and reduce bugs.
-
Keep It Simple (YAGNI) You Aren’t Gonna Need It. Do the simplest thing that could possibly work right now. Don’t design for the future.
-
Refactor Mercilessly Clean the code as you go. If it works but looks messy, fix the design immediately before moving on.
-
Integrate Often (CI) Merge your code multiple times a day. Never let code sit on your machine for more than a few hours.
A sticker friendly version:
XP ESSENTIALS
- 1. Test First (TDD) Write test. Fail. Code. Pass.
- 2. Pair Up Two eyes > One. Share the load.
- 3. Keep It Simple (YAGNI) Don't code for the future.
- 4. Refactor Mercilessly Clean code as you go.
- 5. Integrate Often (CI) Merge multiple times a day.