So hammering out the specs of what we expected from each other actually paid pretty big dividends today, as we were able to integrate our independently developed code pretty easily based on our prior agreements. And it works! We now have the ability to save users and addresses in the system, and that data persists even after the app is no longer in memory. Cool!
We left it a bit short though, since you couldn’t actually use the aliases for the addresses through the interface. I didn’t really have much going on tonight, so I decided to write that into the interface. That was fun, but having working on the interface was a little irritating since it involved lots of puts-ing and building character strings to line up nicely on the command line. So I decided to try and port our first version of the app off the command line and into a Sinatra app.
This is where going through the Hartl tutorial before bootcamp really helped, since there is a lot in there that really drills you on HTTP calls. So I was already familiar with GET and POST requests, and filling in the functionality in Sinatra was so much easier than I thought it would be. I added some twitter bootstrap to the mix (which required brushing up on some ERB), and we are sitting pretty.
P.S. I used the NetTuts tutorials to figure out the basic functionality of Sinatra, and I would recommend them to anyone else trying to learn it.