claukiller

Untitled

Jan 8th, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. In my experience, pair programming is more productive than dividing the work between two
  2. programmers and then integrating the results. Pair programming is often a sticking point for folks
  3. wanting to adopt XP. All I can say is that you should get good at it, then try an iteration where you
  4. pair for all production code and another where you program everything solo. Then you can make
  5. your own decision.
  6. Even if you weren't more productive, you would still want to pair, because the resulting code
  7. quality is so much higher. While one partner is busy typing, the other partner is thinking at a more
  8. strategic level. Where is this line of development going? Will it run into a dead end? Is there a
  9. better overall strategy? Is there an opportunity to refactor?
  10. Another powerful feature of pair programming is that some of the practices wouldn't work without
  11. it. Under stress, people revert. They will skip writing tests. They will put off refactoring. They will
  12. avoid integrating. With your partner watching, though, chances are that even if you feel like
  13. blowing off one of these practices, your partner won't. This is not to say that pairs don't ever make
  14. process mistakes. They certainly do, or you wouldn't need the coach. But the chances of ignoring
  15. your commitment to the rest of the team is much smaller in pairs than it is when you are working
  16. alone.
  17.  
  18. //testing
  19. Testing is perhaps the most frustrating area when you are shifting existing code to XP. The code
  20. written before you have tests is scary. You never know quite where you stand. Will this change be
  21. safe? You're not sure.
  22. As soon as you start writing the tests, the picture changes. You have confidence in the new code.
  23. You don't mind making changes. In fact, it's kind of fun.
  24. Shifting between old code and new code is like night and day. You will find yourself avoiding the
  25. old code. You have to resist this tendency. The only way to gain control in this situation is to bring
  26. all the code forward. Otherwise ugly things will grow in the dark. You will have risks of unknown
  27. magnitude.
  28. pag 102
Add Comment
Please, Sign In to add comment