Example of a transform for unit testing something tricky

There were some requests for an example of my unit testing strategy so made up this fragment and included some things that would make your testing annoying. This is the initial fragment.  Note that it uses annoying global methods that complicate testing as well as global state and system calls that have challenging failure conditions. HANDLE hMutex…

2

How to make ANY code in ANY system unit-test-friendly

[I added this example in a later post] There are lots of pieces of code that are embedded in places that make it very hard to test.  Sometimes these bits are essential to the correct operation of your program and could have complex state machines, timeout conditions, error modes, and who knows what else.  However,…

13

A Personal History of Microcomputing (Part 2)

[All the parts in this history] I could spend a long time writing about programming the PET and its various entry points, and I’m likely going to spend disproportionate time on the CBM family of computers because that’s what I know, but I think it’s important to look at other aspects of microcomputers as well and…

0

A Personal History of Microcomputing (Part 1)

[All the parts in this history] I started writing this several years ago, never finished it…  stumbled across it just now and I thought maybe if I post this I’d be motivated to write more. This is of course just my perspective and it’s probably wrong in places, but it is my perspective.  So there…

4

My Universal Performance Problem Advice

I get asked for recommendations a lot.  Most of the time I have little to no data when asked to perform this sort of divination.  But as it turns out I have this ready-to-go universal advice that works for me, so I’m able to give the same recommendation all the time even with no data! …

2

Using telemetry to reveal, prevent, and act on real problems in the wild

I hesitate to bring this up but there’s no sense hiding it.  For the last year I’ve been the development lead for the Internet Explorer Performance Team.  We’ve done some really cool things I’m super proud of.  Like recently this gem.  However, things are usually not so rosy in my world.  There are lots of…

0

Career advice part 2

I wrote some career advice a few weeks ago now, those few points are largely distilled from talks I’ve given here at Microsoft over the years and those are in turn distilled from the various mentoring sessions I’ve given over the course of my career. There are two memes in particular that I like to…

0