- 
        Mocking in RubySaturday, March 19, 2011 in Blog Easy Dependency Injection and Mocking in Ruby Here is a simple technique where you can inject mock methods into a class that you are unit testing. Given you have a class ClassA class ClassA def hi "hi" end end Using .class_eval You can … 
- 
        Cloning Directories in RubyTuesday, March 01, 2011 in Blog Recursively Cloning Directories in Ruby using Hard Links Hard links exist under windows 7 so you can clone huge directories or files without taking up any extra disk space. Both the original and the copy are equal and apps can’t tell the … 
- 
        Ruby vs Python list comprehensionsThursday, November 18, 2010 in Blog Let’s compare Python list comprehensions vs. the way Ruby achieves the same thing thing. Intent: Loop through a list of numbers and pick out the ones greater than 5, and multiply them by 100. Return them as a list. Python #!/usr/bin/env python … 
- 
        Refactoring to PureMVCWednesday, April 01, 2009 in Blog Let’s look at how to refactor an existing architecture to the PureMVC architecture. Your application requires that you display ‘model’ data in some sort of UI ‘view’. Introduction MVC Architectural Pattern I have long … 
- 
        Central Patterns RepositoryThursday, February 12, 2009 in Blog Towards a central repository of Design Patterns An authoritative central repository of Design Patterns does not exist. There is a book called The Pattern Almanac 2000 by Linda Rising however this is no more than an index of patterns - nothing of … 
- 
        Netbeans UmlWednesday, February 11, 2009 in Blog Let’s take a look at the UML and design pattern support in Netbeans and investigate Netbean’s cool ability to build “custom” design patterns - visually. Introduction UML and Design Pattern Support in Netbeans 6.5 Netbeans is … 
- 
        Visualising SoftwareThursday, January 22, 2009 in Blog Ways of Visualising Software Designs This blog article explores the novel ways of developing software more visually and in visualising software generally - that is without coding. It also explores ways of visualising software designs and of watching … 
- 
        State Pattern in FlexThursday, September 11, 2008 in Blog A tutorial on how to implement the State design pattern in Flex 3. We are going to have a traffic light move through several states (red, orange, green). Of course there are other states the traffic light might be in, as well as transitional states … 
- 
        Extract Composite RefactoringWednesday, March 05, 2008 in Blog Extract Composite - Refactoring to a Pattern Refactoring existing code so that it improves and conforms to a design pattern can be a good thing. Your code will be easier to understand since it follows a known ‘pattern’. Of course you have …