Is it possible to do the following, or do I have to use a Mocking framework? And if I do use a mocking framework, do I have to do anything special? private IClassificationService fakeClassificationService = delegate { System.Net.ICredentials Credentials { get { return null; } set {} } IList ListAllProjects() { return null; }} Edit:…
Category: General
Build Status Lamp with Ruby and TeamCity
Recently at work we got our new build status light setup. We’re using TeamCity as our Continuous Integration Server, MSBuild as the build script, and a homemade Ruby Script to control the lamp. The setup sits in our team room and looks like this: The Build Lamp (a red lava lamp in this case) is…
The Importance of Velocity for Product Planning
Recently there has been a lot of talk in the Agile community about moving away from estimated stories into more of a Kanban-style “pull-based” system. At Agile 2008, Joshua Kerievsky did a talk on MicroReleases where he discussed how his team did just that. They base the next release (which is just a couple of…
Making Tradeoffs
Last week, we had a small incident arise with the team I’m working with. Our Continuous Integration server is now live, meaning that code gets compiled with every check-in. This is great from the perspective of rapid feedback – if there is a failure, we don’t have to wait for a nightly build – or…
Follow up: Binary Clock in Ruby in under 55 lines of code using Shoes
After some great comments in my last post and some judicious refactoring, I now present an entire binary clock in Ruby in less than 55 lines of code using Shoes: Shoes.app {@width = 40@left = 10@margin = 10@top = 180@offset = @width + @margin@fill = red@images = [[],[0],[1],[0,1],[2],[0,2],[1,2],[0,1,2],[3],[0,3]] def gen_recs(num) return stack { fill @fill num.times do |i| rect…
A binary clock in Ruby using Shoes
When Shoes – a “tiny graphics toolkit for Ruby” – first came out a month or two ago, I was excited, but didn’t really have much to do with it. Then it hit me – I love my Binary Clock on my iGoogle home page – why not build one? The first thing to learn…
When Planning Games Go Too Long
This topic has come up in several of my readings today. While I’ve seen several strategies for what to do when your planning game is going too long, the best one is perhaps the simplest, and comes from none other than Ron Jeffries on the Scrum Development mailing list: I suspect you’re going into way…
Legacy Teams
One of my more read books in my library is the very excellent Working Effectively with Legacy Code by Michael Feathers. The book is a great resource when you are plopped down in front of a bunch of legacy code, and need to figure out just how to move forward. This evening I was writing…
Project versus Program Management
Glen Alleman has a great post on the differences between project versus program management. Some of the highlights: * The project manager tries to keep change to a minimum while Program managers expect change and even embrace it * Success is measured by budget, on time, and products delivered to specification versus Success is measured…
Dilbert for Management
Over on the Agile Project Managers list, Jonathan House proposes the following: I think that it’s high time that a new school of management emerges that uses Dilbert as it’s cautionary statement – if what you are proposing as a manager has ever appeared in a Dilbert cartoon, you need to re-think your proposal. Of…