new site();

When I first started doing this kind of thing, there were like two Tory Lawsons on the internet, one of whom was I think actually a Victoria. Now there are lots of us, and I am sorry if you were looking for one of the other ones. We have an annual retreat thing, so if you want to get a hold of one of the others, let me know.

Latest Whatevers

OMSCS tip: how to keep yourself from accidentally pushing to a public Git repo

Periodically during the semester you will need to get updates from the class repo, so you have to maintain your connection to it. But you also really should be pushing your work somewhere, especially if you wind up getting accused of plagiarism--it's wise to have a paper trail, just in case. What you want is to be able to keep your connection to the class repo, but make it pull-only, and at the same time have a second connection to your private repo, where you can both push and pull to support a typical workflow.

Continue reading →

Creating stubs in F# for unit testing

One of the most important things to get right with my regexModeler application was the test suite, because I made several breaking changes many times along the way and would have been dead in the water without one. Because of all the random aspects of the program, it was an early challenge to get something for the unit tests to reliably measure. Now, if this is something you need to do too, bear in mind that object expressions can do much the same thing, but the limitation is that you need to define all of the methods for your solution to build. By taking the approach I outline below, you have more flexibility to define just the behavior you need to, while safely ignoring the rest. Also, if you want to take it a step further to add features similar to mocking libraries, you can do that.

Continue reading →