Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Test Drive a Browser Game With AngularJS

Zach
April 25, 2014

Test Drive a Browser Game With AngularJS

This workshop will cover modern JavaScript development practices through improving an existing browser game. Students will gain hands on experience with JavaScript testing, writing modular software, and building a thick client web app.

Technologies used will include Jasmine, Lineman, Rails, and Angular; but they do not define the workshop. Skills earned here are applicable to any Web project.

http://railsconf.com/workshops

https://github.com/testdouble/railsconf-test-drive-javascript

Zach

April 25, 2014
Tweet

More Decks by Zach

Other Decks in Programming

Transcript

  1. Agenda (1:30 through 3:50) 1. Test Double Speaks 2. Setup

    and find a pair 3. Code-Along 4. Code on your own(s) https://github.com/testdouble/railsconf-test-drive-javascript
  2. Right Now Find a Pair Get the files https://github.com/testdouble/railsconf-test-drive-javascript With

    Wi-Fi https://github.com/testdouble/railsconf-test-drive-javascript Without Wi-Fi: USB stick
  3. Together: 1. Review Mockup 2. Declare angular module 3. Update

    DOM with fire and status 4. Render headers w/ ng-repeat https://github.com/testdouble/railsconf-test-drive-javascript
  4. Mission 1. Make status show the target square 2. Then

    make status show if we hit a ship 3. (look at the finish directories for hints) https://github.com/testdouble/railsconf-test-drive-javascript
  5. In Pairs: • Make fire and status work for reals

    • Display a note for each square • Display win state • Test if you’d like • Work on bonus goals (README.md) https://github.com/testdouble/railsconf-test-drive-javascript Work slowly, don’t rush.