Using Syntax to Model the Domain

I’m fascinated by the small syntactic decisions that bring code closer to representing the business domain. Never mind the class inheritance examples from text books (“Dog IS-A Pet,” which has nearly never been relevant), I mean using properties, methods, and … Continue reading 

Posted in DDD | 6 Comments

Diffing Files to Avoid Easy Goofs

A good habit learned at my last job has saved me a lot of embarrassment and bugs (same thing): Before committing a set of changes to source control, I look at the diff of each file. Look at the changes, … Continue reading 

Posted in Uncategorized | 8 Comments

Microcontroller Projects and Source Code

Welcome, Ignite/Dorkbot Science Fair Party Goers. Here are details on the two projects I had with me at the Science Fair. I used the open-source Arduino microcontroller. Arduino programs are called “sketches.” I keep my Arduino sketches on the collaborative … Continue reading 

Posted in arduino, electronics | Leave a comment

Hello World in C, Dev Setup

As mentioned, I’m learning C, and I’ve achieved hello-world, plus recursive calculations of factorials and some data structures. Whee. :) For those playing along at home, I’ll describe my dev setup. But first, an unexpected discovery: Counter to my intuition, … Continue reading 

Posted in C | 4 Comments

Dipping into C

I decided on Monday that I should learn C. Cultivate a nodding acquaintance, at any rate. Louis is always prodding me to become a better craftsman, to become more proficient with my tools. So I figured I should understand my … Continue reading 

Posted in books, C | 8 Comments

Three Simple Steps to Improve Your Writing

Technical books are longer than they ought to be. Most software books could be improved by shedding a tenth of their heft. It’s a product of market pressures, of course: Tech books need to get to market fast, which does … Continue reading 

Posted in Uncategorized | 5 Comments

ReSharper Shortcut for Context-Sensitive Unit-Test Running

For a keyboard shortcut to the context-sensitive ReSharper unit test runner (otherwise available via right-click > Run Unit Tests), map: ReSharper.ReSharper_UnitTest_ContextRun Edit: In ReSharper 6, this has moved. It is now ReSharper.ReSharper_ReSharper_UnitTest_RunContext.(Note the extra ReSharper in there; that’s not a … Continue reading 

Posted in Resharper, shortcut, unit testing, Visual Studio | 6 Comments

Rhino Mocks Examples, with a fix

Jon Kruger created an excellent explanation of Rhino Mocks, using unit tests to demonstrate and illuminate the syntax and capabilities. (Found via @gar3t.) It needs one small correction, which I’d like to write about here so that I can link … Continue reading 

Posted in Rhino Mocks, unit testing | 11 Comments

More Dogs and Bears and Chickens and Things: Invite your colleagues to Pablo’s Fiesta

If you work with developers who are women, please tell them about the Los Techies Open Space conference, coming up at the end of February. If you’ve attended an event like this in the past, you’re already aware of some … Continue reading 

Posted in Uncategorized | 4 Comments

Interface-Oriented Design – Book Review

Ken Pugh’s Interface-Oriented Design (Pragmatic Programmers) presents an approach to designing applications that focuses first on the interfaces, the places where pieces of the application interact. The interfaces here are not primarily user interfaces, but module-to-module interfaces and service interfaces, … Continue reading 

Posted in books | 1 Comment