#99 Bottles ###Introduction to Programming ###JavaScript BDD code review due 10/24/15
This is a program that allows a user to enter an arbitrary number and have the lyrics of '99 bottles of beer' generated, starting with that number. It's purpose is to demonstrate my ability to write and test code using the BDD model... and to prove the point that thinking up the tests for a simple program can be about ten times as hard as just writing the thing.
And even though this is only supposed to a test of 'programming logic,' I include a simple interface so we can see the program in action. ...And then I added a typerwriter(ish) animation. Fun fact: I wrote the spanWrap() function using the BDD model. (I used the refresh the screen and stare at the results model for the reveal() function. I'm not sure if there's a way to write tests for dealing with jquery animation.) And just for fun I added a 'rave mode' option for the typewriter effect. (More modes to come.)
Click here to view the most up-to-date version of the project.
Copyright (c) 2015 David Diehr
This software is licensed under the MIT license.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.