Skip to content

Instantly share code, notes, and snippets.

Arlo Belshee arlobelshee

Block or report user

Report or block arlobelshee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
arlobelshee / Car.cs
Last active Oct 2, 2015
Combine 2 methods into one with a discriminator variable
View Car.cs
// Goal: Restore Drive method to all operate at one level of abstraction.
// Refactorings performed: Extract Method x 3
// Hand-edits made: update comment
// Why: A method with multiple levels of abstraction is harder to reason about. Drive
// was calling a method to do some of its work, then doing direct field operations later.
// That causes readers to distrust the one method that was called and have to read it to
// understand the whole.
// Now Drive is written entirely in terms of intent. They can choose
// to read it and trust all sub-methods. After they accept Drive, they can choose to read
arlobelshee / gist:1293201
Created Oct 17, 2011
Oct CTP geospatial provider sample
View gist:1293201
using System.Collections.Generic;
using System.Data.Services;
using System.Data.Services.Common;
using System.Linq;
using System.Spatial;
namespace AllTheNews
public class Business
You can’t perform that action at this time.