Programming

AOP in TypeScript Using Aspect

Posted on

Update! I am actually using decorators for this kind of thing these days. Original article below. I recently wrote about using an existing JavaScript AOP framework with TypeScript, but in this article I’m going to talk about using Aspect, an AOP framework written for, and in, TypeScript. Why? Aspect is small, completely stand alone and […]

Programming

AOP with TypeScript

Posted on

For this example, I am using the jquery.aop plugin to weave aspects into the TypeScript program. Other Aspect-Oriented Programming frameworks are available for JavaScript – but this is the one I have used in JavaScript and is a good example of bringing a JavaScript framework into TypeScript. I will create a follow up to discuss […]

Programming

Code Contracts Fail to Fire

Posted on

If you are using Code Contracts in .NET and you find that they aren’t running, there are a few simple checks to perform to work out why those clever little definitions aren’t working. If you have used Code Contracts a couple of times, these are the most likely reasons the Code Contracts aren’t doing anything […]