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