This project was created by Madeleinel and Eleanombre as a pair-programming exercise.
- HTML
- CSS
- JavaScript
TDD is an approach to software development that is meant to make you think through the requirements and/or design you want before you start writing the code.
You write a test, and then just enough code to fulfill that test. Only once that is done do you write and work to fulfill the second test, and so on.
It should follow the following steps:
- Write a failing test
- Ie you should write a test for what you want to accomplish; this test should not succeed based on the current code
- Write code to make the test pass
- Write just enough code required to make the text pass
- Also make sure that previous tests are still passing
- Refactor the new code
- Try to clean up and simplify the code you've just written, while still maintaining all new features.
(other than a tongue twister...)
Ping Pong Programming (P3 for short) is a programming technique which combines Test-driven development (TDD) and pair programming.
- programming in a pair
- testing after each significant change/step in code
- as small steps as possible
It is described by Dave Hoover in his article on agile connection as:
... a curious mix of competition and collaboration...
A pair (A and B) are working on the same project
- A writes a test and makes sure it fails
- B writes code which will pass A's test
- B then writes a test which will fail
- A then writes code which will pa ss B's test
- A blog post on 3P programming on codeschool.com (2014)
- Ward Cunningham's Wiki article on 3P programming (2011)
- Dave Hoover's Agile Connection article (2005)
- Have a box for the time, and three buttons; start, stop and reset
- Display numbers within .time-container, using JS
- Create js function to make the time increase (seconds only)
- Display time increase within .time-container (seconds only)
- Set up js function to translate 60s = 1min & 60min = 1hr
- Link increaseTime() to the Start button; so clicking the Start button will start increasing the time
- Make the Stop button work
- Make the Reset button work
- Fix startButton function so that it doesn't increase the renewal time each time the startButton is clicked
(See repo issues for more details)
- Style the stopwatch
- Structure: Center the stopwatch, align the buttons
- Design: Design the look and colors of the clock and the buttons