Getting started with IronPython – Part 3: unit testing

Welcome to the 3rd part of my quest to learn IronPython. In this part I’ll show how I’ve unit tested my application. Previous parts of this series: Where to start – resources, environment and how I’ve started learning IronPython Let’s write some code – the project I’m writing along with my impressions of how things … Continue reading Getting started with IronPython – Part 3: unit testing

Getting started with IronPython – Part 1 where to start

It seems to me that there is a lot of talk about the new .NET Dynamic Languages lately. Because I wanted to see what the DLR was all about I will learn IronPython as part of my quest to learn new programming languages. Learning new language When I learn a new programming language I look … Continue reading Getting started with IronPython – Part 1 where to start

Aspect Oriented Programming in Python using Decorators

It always amazes me how some tasks are easier using dynamic languages. AOP (Aspect Oriented Programming) is just one more thing that can be done easily using Python – at least to some extent.Python has a powerful language feature that makes it all happen – called “Function Decorator” and this is how you use it: … Continue reading Aspect Oriented Programming in Python using Decorators

#Nose – the unit test discovery tool

One of the benefits of programming in C#/VB.NET is amount of tools available – from Visual Studio to build servers to unit testing frameworks it seems that there is a tool for every job. I thought that my .NET tool belt has everything I need until recently, while learning Python (actually IronPython) I’ve discovered Python-Nose … Continue reading #Nose – the unit test discovery tool

XmlWriter that automatically close elements using IDisposable

System.Xml.XmlWriter provides an easy and lightweight way to write xml strings, unfortunately it has a little gotcha. consider the following xml string (borrowed from IronPython in Action): Using XmlWriter the following code is needed to create that string: Keep in mind the fact that the code above only creates 5 lines of xml, and as … Continue reading XmlWriter that automatically close elements using IDisposable