Recently at work, we’ve really started to embrace TDD (and BDD). As a team, it helps us write much cleaner, more efficient code. I’m not going to preach forever about the benefits of TDD. There are thousands of other blog posts out there beating this topic to death. One of the ways that we communicate with our databases at work is by using Rob Conery’s ISession interface. We have an implementation of this interface for Entity Framework 4, and it works beautifully. However, given that this interface is super generic, it’s less than obvious how you would mock such a thing. Here’s the ISession interface in all its glory:
August, 2010
4
Aug 10
Bottle: A Refreshing Web Framework
I’ve been toying with some ideas lately for a neat startup. I know I should probably come out and give more details about it, but I want to keep my lips sealed until I have something more concrete to show for it! Anyway… I’ve been looking at doing this entire project with Ruby, but part of this project requires me to work with a remote service that uses ZeroC Ice. I’ve come to find out very quickly, that the Ruby support in ZeroC Ice is pretty lacking, and despite my best efforts, I can’t get them to play nice with each other (if any ZeroC developers would like to share my pain, just drop me a line).
After 2 days fighting with Ruby and Ice, I decided “What the hell, let’s give Python a spin!” To ZeroC’s credit, their Python support is working much, much better for me. I’ve never really written anything more than a silly FizzBuzz program in Python, but I always enjoy trial by fire, so I started digging around for a nice, thin web framework to use. After poking around for a while, I came across a little diamond in the rough called Bottle. Working with Bottle has been a shear joy, and I couldn’t be happier with the result. Here’s the basic idea:
Hi! My name is Scott. Welcome to my place on the web. I currently work in St. Louis, Missouri as an ASP.NET developer, although I tend to use whatever language tickles my fancy at the moment.