Capitolo 1 – Scrum and XP
Di seguito troverai un articolo Extreme Programming che sintetizza in modo efficace i valori, i principi e le pratiche di XP. Si consiglia un’attenta lettura.
Per ulteriori approfondimenti ti consigliamo il libro: Scrum and XP from the Trenches – How We Do Scrum – Henrik Kniberg
Questo libro esplora gli strumenti (tool) ingegneristici estratti da XP e mostra come applicarli in Scrum.
Si consiglia la lettura su come si combinano Scrum e XP e gli approfondimenti su: Pair Programming; Test- Driven Development (TDD); Incremental Design; Continuous Integratin e su come fare test per aumentare la qualità. In particolare i seguenti due capitoli: PART THIRTEEN; PART FOURTEEN.
PART THIRTEEN – How we combine Scrum with XP
“Pair Programming”
Some conclusions so far about pair programming:
- Pair programming does improve code quality.
- Pair programming does improve team focus (for example, when the guy behind you says “Hey, is that stuff really necessary for this sprint?”).
- Surprisingly, many developers that are strongly against pair programming actually haven’t tried it, and quickly learn to like it once they do try it.
- Pair programming is exhausting and should not be done all day.
- Shifting pairs frequently is good.
- Pair programming does improve knowledge spread within the group. Surprisingly fast, too.
- Some people just aren’t comfortable with pair programming. Don’t throw out an excellent programmer just because he isn’t comfortable with pair programming.
- Code review is an OK alternative to pair programming.
- The “navigator” (the guy not using the keyboard) should have a computer of his own, as well. Not for development, but for doing little spikes when necessary, browsing documentation when the “driver” (the guy at the keyboard) gets stuck, etc.
- Don’t force pair programming upon people. Encourage people and provide the right tools but let them experiment with it at their own pace.
“Test-Driven Development (TDD)”
Here’s a 10-second summary of TDD:
Test-driven development means that you write an automated test, then you write just enough code to make that one test pass, then you refactor the code primarily to improve readability and remove duplication. Rinse and repeat.” Per ulteriori dettagli leggere pag 106 – 108.
“Incremental design“
This means keeping the design simple from start and continuously improving it, rather than trying to get it all right from the start and then freezing it. We’re doing fairly well at this, i.e. we spend a reasonable amount of time refactoring and improving existing design, and we rarely spend time doing big up-front designs. Sometimes we screw up, of course –for example by allowing a shaky design to “dig in” too strongly so that refactoring becomes a big project. But all in all we’re fairly satisfied. Continuous design improvement is mostly an automatic side effect of doing TDD.
“Continuous integration”
“Most of our products have a fairly sophisticated continuous-integration setup based on Maven and QuickBuild. This is extremely valuable and timesaving. Our continuous-build server acts as the “judge” or reference point from which to determine the health of all our codebases. Every time someone checks something in to the version-control system, the continuous-build server will wake up, build everything from scratch on a shared server, and run all the tests. If anything goes wrong, it will send an email notifying the entire team that the build failed, including info about exactly which code change broke the build, link to test reports, etc.”
Di seguito gli altri argomenti trattati in questo capitolo:
- Collective code ownership
- Informative workspace
- Sustainable pace/energized work
PART FOURTEEN – How we do testing Si consiglia la lettura del capitolo. Di seguito trovate i dettagli degli argomenti:
- You probably can’t get rid of the acceptance-test phase
- Minimize the acceptance-test phase
- Increase quality by putting testers in the Scrum team
- Increase quality by doing less per sprint
- Should acceptance testing be part of the sprint?
- Sprint cycles vs. acceptance-test cycles
- Don’t outrun the slowest link in your chain
