By SamStephens on January 30, 2011
I’m going to be talking about Android for the Summer of Tech Mobile Developers Panel on the 8th of February. This is going to be my first public speaking engagement, and I’m really looking forward to it. Come and support, the discussion should be interesting and informative, and there’s pizza and beer! You need to RSVP on Lil’ Regie.
Posted in Android | Tagged android, Mobile, Presentation, Summer of Tech |
By SamStephens on December 20, 2010
Happy holidays, all. I’m having a break over the Christmas period, and will be posting again in the New Year. Thanks for reading.
Posted in Meta |
By SamStephens on December 13, 2010
I have discovered a need to be able to search and replace registry values. I originally thought about using Powershell but after reading this blog post about Powershell performance with the registry, I decided to use .NET. I quickly encountered the idea of using LogParser to read the registry at high speed, and decided this was a fruitful avenue.
Posted in .NET, C# | Tagged .NET, C#, COM Interop, LogParser, Registry |
By SamStephens on December 6, 2010
Whilst looking through a codebase, I saw implementations of IEqualityComparer<>. After thinking to myself that the need to create an entire implementation of IEqualityComparer<> per use creates quite a bit of boilerplate for such a small amount of signal, I realised that creating a generic implementation of IEqualityComparer<> that takes a definition of equality in its constructor would be very simple.
Posted in .NET, C# | Tagged .NET, C#, Generics, Lambas |
By SamStephens on November 29, 2010
I’ve once again lost a decent sized chunk of text in a textarea, due to a browser crash. I’ve started wondering about whether browsers should implement autosaving for textareas. Our usage patterns have got to the point where we use browsers to write large chunks of text on a regular basis.
Posted in Opinion | Tagged Browsers, Opinion, Usability |
By SamStephens on November 22, 2010
I’ve been thinking on and off about the appropriate return signature for a method that returns an immutable list of objects, sparked off by reading Eric Lippert’s article, Arrays considered somewhat harmful, and my belief that the value of functional program and growth of parallelism means that immutability is desirable most of the time.
However, once you decide to return an immutable collection, what type do you return?
Posted in .NET, C# | Tagged .NET, C#, Immutable |
By SamStephens on November 15, 2010
It’s a waste of processor cycles and user time to make web service calls to systems that are not currently functioning. I was involved in building a solution that allows code that depends on non-functioning systems to be skipped entirely. Code simply needs to be attributed with the systems it uses. Then a policy injection handler will throw an exception without even calling that code if a system is known to be unavailable.
Posted in C# | Tagged Aspect-oriented Programming, Attributes, C#, Policy Injection, Unity |
By SamStephens on November 8, 2010
If you’re going to choose a single mobile platform to develop for in the next year, there are three main alternatives: Android; iPhone; and Windows Phone 7. It’s my belief Android is the platform for developers new to mobile to choose, unless you have an overriding reason to look at the other platforms.
Posted in Opinion | Tagged android, Mobile, Opinion |
By SamStephens on November 1, 2010
Android’s Intent resolution can find Activities to act on a datatype. But using this resolution, a single activity can’t consume a datatype in multiple ways.
Posted in Android | Tagged android, java |