Posts in 2011
  • Cloning Directories in Ruby

    Tuesday, 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 …

    Read more

Posts in 2010
  • Ruby vs Python list comprehensions

    Thursday, 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 …

    Read more

Posts in 2009
  • Refactoring to PureMVC

    Wednesday, 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 …

    Read more

  • PureMVC

    Sunday, March 01, 2009 in Blog

    PureMVC - Architectural Pattern incl. a minimal wxPython example. Understanding PureMVC can be hard, even though it is a relatively simple framework. That’s why a minimal example can help. Here is one I created for wxPython and Python users. …

    Read more

  • Central Patterns Repository

    Thursday, 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 …

    Read more

  • Netbeans Uml

    Wednesday, 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 …

    Read more

  • Visualising Software

    Thursday, 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 …

    Read more

Posts in 2008
  • State Pattern in Flex

    Thursday, 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 …

    Read more

  • Extract Composite Refactoring

    Wednesday, 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 …

    Read more

Posts in 2007
  • Thoughts on Closures

    Monday, November 05, 2007 in Blog

    Thoughts on Closures It seems like closures are all the rage in software development circles. Ruby and Groovy have them and then C# got them. Python had a form of them but are they really closures? What are closures anyway - do we need them? In this …

    Read more