OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
ES3-2020-P2 Bowling Game Kata
1. P2 Bowling Game Kata
Enginyeria del Software 3
1
@drpicox — 2020
2. Two Versions
• Java Version
• https://classroom.github.com/a/h2_TxjNj
• https://david-rodenas.com/docs/BowlingGameKata-Java.pdf
• Javascript Version
• https://classroom.github.com/a/N4G8g0d8
• https://david-rodenas.com/docs/BowlingGameKata-JS.pdf
• You have to solve both
2
3. Outline
• Introduction
• Brief introduction of the origin of the Kata
• Analysis
• A classic formal analysis of the problem
• TDD Introduction
• Begin
• Slides with the name of the commit that you must reproduce
3
4. No questions
• La kata no fa preguntes
• Cal copiar cada commit de forma fidedigna
(eviteu fer copypaste)
• L'aprenentatge és per repetició i memorització
4
5. “A kata is meant to be memorized. Students of a
kata study it as a form, not as a conclusion. It is not
the conclusion of the kata that matters, it's the
steps that lead to the conclusion. If you want to
lean to think the way I think, to design the way I
design, then you must learn to react to minutia the
way I react. Following this form will help you to do
that. As you learn the form, and repeat it, and
repeat it, you will condition your mind and body to
respond the way I respond to the minute factors
that lead to design decisions.”
– Robert C. Martin
5
6. How to Start JS
• https://code.visualstudio.com/
• https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
• https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
• https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare
• https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
• Be sure that you enable prettier as "Default Formatter" and "Format On Save"
• https://nodejs.org/en/ v12
• https://yarnpkg.com/
• Executa: "yarn" i després "yarn test" in the command shell
6
7. How to Start Java
• https://www.jetbrains.com/idea/
• IntelliJ IDEA Ultimate
• Use student license with your tecnocampus.cat address
• Open the folder with IntelliJ
• Verify that it works by:
• open test/java/com.drpicox.bowlingKata
• uncomment the test
• right click "Run BowlingGameTest"
• remove the test after verify that it works
7
8. How to Fix commit
• Buscar l'ultim commit correcte
• Premer botò dret, i resetejar hard master fins allà
• Refer els commits correctament
• Fer Force Push si hi ha conflicte.
8