The adventures of two Stanford Computer Science students as they build a web application from scratch.

Saturday, May 5, 2007

And back to our regular schedule



Sorry for that long interlude. I'll chalk most of it up to The Coachella Valley Music Festival which took up five days of our lives, and I've definitely spent the week recovering as well. In case you were wondering the show rocked. I'm not sure if I'll ever get over how amazing Ratatat was.

Anyway, back to R2. Things are actually on schedule! There is an interface, though it isn't exactly pretty. I just spent an hour and a half refactoring our django code so it is quite pretty and will be nicer to work with. I learned from this post that you can separate your views into separate files for ease. I did the same with our URLs and I'm contemplating doing the same to our models. We now keep primary, API, and Ajax code in totally separate files.

Speaking of Ajax, I also rewrote all of the JavaScript in the site using the Prototype library. That library is awesome. JavaScript is downright incomplete without it. I'm pretty new to real JS coding so if you have any tips for me leave a comment. I can generally get by with it but I have no eye for front-end work in general.

We've also had two meetings with our TA, both of which went very well. We were way ahead of schedule for the first week so things worked out in our second meeting even though we spent 5 of the 7 interleaving days in SoCal. The group that meets before us is developing an XBox 360 game, so when we get there they are demo'ing on an XBox while I just have my MacBook. It's a little intimidating.

We have big plans for this week, and I'll probably spend the rest of the night and some of Sunday on the project. Here's what we hope to have done this week:
  • API 100% ready to ship.
  • Some fancy Ajax to enhance the UI (we have type-inference, we need auto-title-getting and some others)
  • Implement the user system
  • Get the browser plugin to hello world state
It should be pretty doable, but I think I have a few midterms this week so we'll see.

Oh, and of course, enjoy some screenshots of the testing UI at 1140 lines of python, 279 lines of template/html, and a few dozen lines of CSS and JS.