Lecture 5 Flashcards
Why is pair programming not necessarily inefficient?
There is evidence that it works.
What is a team benefit for pair programming?
Sharing of knowledge that happens during pair programming is very important as it reduces the overall risks to a project when team members leave.
How does the code benefit from pair programming?
It helps support refactoring - collective ownership and immediate feedback.
What is 2x4 pair programming?
1-2 3-4 5-6
1-6 3-2 5-4
so on…
What, at a high level, continuous integration achieves?
Automated build and product releases.
Why deploy regular builds?
- Frequent regression testing and refactoring
* Make sure the code doesn’t compromise current build
What are the four environments for continuous deployment?
- development
- integration
- staging
- production
What type of methods should be documented?
Public and protected
What should a comment include for a method?
• Description
Params, return, throws
What is self-documenting code?
Careful choice of naming classes, interfaces, enums, variables.
What code comments shouldn’t do?
Explain poorly written code.
What is Ant?
An XML build for that is generally platform independent.