Archive for August 24th, 2008

Plan of attack

Sunday, August 24th, 2008

So, after discovering the joy that is Mnemosyne, I have a special strategy for this semester. It goes something like this:

  • Monday morning class: Ethics
  • After class, go over notes and reading assigned and create question/answers in google docs.
  • Each lunch
  • Do homework/draw
  • Go to Astrophysics at 1:40 PM
  • After class, drive home, export cards for Ethics, add cards for Astrophysics and study using Mnemosyne

Rinse and repeat. Hopefully this’ll make everything go faster. I’m glad I have a LaTeX install on my laptop already, this means I’ll be able to handle basically any equation that I need to learn for Astrophysics.

I hope to be able to use either MSys or the Eclipse CDT plugin for any coding needed for Operating Systems. Based on what I’ve heard, we’ll be writing parts of an operating system simulator in C with some shell script.

If worse comes to worse, i guess I could install cygwin on my laptop again.

More design success

Sunday, August 24th, 2008

I just got finished with working on the ranking stuff a bit. Writing out the CRC cards and then the specification based tests seemed to work very well. The specification got fleshed out as I was writing the test, those simple CRC  cards were all that I really needed.

After reading the Django documentation, I also learned that I’ll be putting most of the logic for getting rankings by date into a custom Manager class.

The one issue I ran into is when I had a syntax error in a file under test, spec barfed and I had to run nosetests without any options to track it down. But it wasn’t that big of a deal.

It’s also nice how you can set it to output colors for specification/tests that pass/fail or are skipped. I stubbed out a few tests that I haven’t implemented yet as skipped tests.

By outptutting the list of specifications every run, it also forces me to name my tests  correctly. I’ve refactored the tests and test classes several times to use a more accurate description.

This is an awesome way to develop. I’m definitely adding better formatting to nose spec after I finish this project.