ILoggable

A place to keep my thoughts on programming

Monthly Archives: July 2010

Promise: Building the repository pattern on the language IoC

Before I get into the code samples, I should point out one more "construction" caveat and change from my previous writing: Constructors don't have to be part of the Type. What does that mean? If you were to explictly declare … Continue reading

July 26, 2010 .net, geek, Promise , ,

Public Static Void – Go at OSCON

My favorite Keynote at OSCON was Rob Pike's "Public Static Void", which in a nutshell is "Why we created Go". But it is also a history lesson of how we got from C to C++ to Java and C# and … Continue reading

July 24, 2010 geek , ,

Promise: IoC Lifespan management

In my last post about Promise i explained how a Type can be mapped to a particular Class to override the implicit Type/Class mapping like this: $#[User].Use<MockUser>; This registration is global and always returns a new instance, i.e. it acts … Continue reading

July 22, 2010 .net, geek, Promise , ,

Promise: IoC Type/Class mapping

Before I can get into mapping, I need to changed the way I defined getting an instance in Type and Class definition: Getting an instance in Promise, revisited When I talked about Object.new, I eluded to it being a call … Continue reading

July 19, 2010 .net, geek, Promise ,

Promise: Inversion of Control is the new garbage collection

Before continuing with additional forms of method defintions, I want to take a detour through the Inversion of Control facilities, since certain method resolution behavior relies on those facilities. IoC is one feature of Promise that is meant to not … Continue reading

July 17, 2010 .net, geek, Promise , , , , ,

Promise: Constructor revisionism

Only 3 posts into the definition of the language and already I'm changing previously published specs. Well, that's the way it goes. I'm currently writing the article about language level IoC which I eluded to previously, but the syntax effects … Continue reading

July 15, 2010 .net, geek, Promise ,

Promise: Defining Types and Classes

Once you get into TDD with statically typed languages you realize you almost always want to deal with interfaces not classes, because you are almost always looking at two implementations of the same contract: the real one and the Mock. … Continue reading

July 13, 2010 .net, geek, Promise ,

Promise: Lambdas

Lambdas in Promise, like other languages, are anonymous functions and first-class values. They act as closures over the scope they are defined in and can capture the free variables in their current lexical scope. Promise uses lambdas for all function … Continue reading

July 11, 2010 .net, geek, Promise , , , , ,

Promise: Classes aren’t Types

I wanted to start with the basic unit of construction in Promise, the lambda or closure. However, since Promise's lambda's borrow from C#, allowing Type definition in the declaration, I really need to cover the concepts of the promissory type … Continue reading

July 9, 2010 .net, geek, Promise ,

I made this half-pony half-monkey monster to please you

I made this half-pony half-monkey monster to please you But I get the feeling that you don’t like it What’s with all the screaming? You like monkeys, you like ponies Maybe you don’t like monsters so much Maybe I used … Continue reading

July 6, 2010 .net, geek, Promise , , , ,