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 |