Using Extension Methods on a C# Interface to Enable DCI in Xamarin

Scala has several nice language features, including the elegant use of val for immutable variables and var for mutable, but the feature that I miss the most on a day-to-day basis is "traits."

Traits allow you to implement one or more methods of an interface. The canonical use is to …

more ...

How many programmers are there?

According to Evans Data, the worldwide developer community will reach 29M by 2019. The largest growth is expected to come from China and, to a lesser extent, other developing economies.

I tend to be very skeptical about quantitative analysis of the developer community, and more-so when it comes to global …

more ...

How Many Python Programmers Are There?

Giles Thomas makes the case that the Python programming community numbers in the low millions. This seems right to me: that's a large community, but it's not quite at the level of the most popular programming languages. That size is supported by this chart, which has impressed me as "feeling …

more ...

Alaska Bear Adventures

Yes, it's worth it.

It's a pity that the phrase "…in their natural habitat," is so boring. The difference between this:

and this:

is the difference between a pixel and the Sistine Chapel.

Deciding to spend the money on this trip was the hardest part of our Alaska trip. My …

more ...

Can't Alert Health Insurance to Possible Fraud

The other day I'm doing the bills and I get one of those healthcare "This is not a bill. It describes services." things. You know, the sort of things that 90% of the world throws out without reviewing. But I look at it and check with my wife if she …

more ...

Review "The Wasp Factory"

The Wasp FactoryThe Wasp Factory by Iain Banks
My rating: 4 of 5 stars

Very well written. First-person account of a psychopath or maybe a sociopath living deep inside a metaphor in Scotland. Very unsettling, with a narrator who's clearly unreliable, so one is always wondering if incidents or even entire characters …

more ...

Tap 7 Times to Enable Developer Options in Android Jelly Bean

How to enable developer settings on Android 4.2 | Android Central.

I just got myself a Nexus 4 for cross-platform development, but it didn't initially appear as a device in Xamarin Studio. Initial Googling and SO'ing indicated a non-existent "Settings->Application->Developer" route to enable debugging on the phone.

Instead …

more ...

The Governor vs. Boyd Crowder

The Justified finale had a scene that summed up one of it's greatest strengths: Raylan, the putative hero, and Boyd, the putative villain, demonstrate how parallel they are to each other: Raylan points to Boyd's career and sneers at the thought that Boyd imagines himself anything other than "the bad …

more ...

Hungarian Monadic Notation: Call Me Maybe

Update: this is an April Fool's joke. It's the most incoherent, illogical thing I could think of. It's a bad idea, it wouldn't work, and it misses the point of everything.

Hungarian Monadic Notation: Call Me Maybe()

Update: This was an April Fool's joke. If you are interested in monads …

more ...

Literate Programming from HTML

OK, let's see if this works...

This is the basic structure of the "Hello, World!" program in C#:

using System;

class Hello
{
   <getchunk id="Main"/>
}

where the Main chunk is defined as :

static void Main()
{
   Console.WriteLine("Hello, World!");
}

C# Command-Line Extraction

And if you clone my Github repository, you …

more ...