The .NET framework is getting on a bit. Many users of the .NET framework are either resistant to API changes, or are stuck with binary-only 3rd party tools that would break with API changes. As a consequence of these two things, the .NET framework has aspects to it that go against modern thinking, but we are stuck with them. The solution to this is often to encapsulate those features within newer frameworks, which offer “best practice” facades on to those features. SuccincT is one such framework. Continue reading “SuccincT — A .NET framework to solve unexceptional exceptions & out parameter annoyances”
Sometime ago, I wrote what turned out to be a highly controversial post in which I argued that private members should be avoided as they caused more problems than they solved. Two years on, I have come to realise that I was wrong and that problems with private members are simply symptoms of bad written code, rather than problems in their own right. Continue reading “I was wrong regarding the private keyword. Here’s why”
This is the first of a set of five tutorial articles covering the collections.immutable framework. This article covers the simplest of the classes: Tuple. Continue reading “A guide to using the immutable classes: Tuple”
As part of writing a preprocessor for generating AS3 enums, I hit upon the need for a means of passing around a set of enums in a way that couldn’t corrupt the original data. After a bit of thought and digging around the core Flash/ Flex classes, I realised that:
- There are no immutable collections in Flash or Flex.
- Immutable collections are fairly easy to create using standard AS3 and the magical Proxy class.