-
markdown samples
Thursday, January 04, 2018 in Markdown Experiments
Text can be bold, italic, or strikethrough. Links should be blue with no underlines (unless hovered over). There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. …
-
UML Layout
Wednesday, April 06, 2011 in Blog
Developing a Layout Algorithm for UML diagrams Intro Presented to the Melbourne Patterns Group, Wednesday 6th April 2011 6:30 PM The Problem: Untangling UML Diagrams Terms Nodes – these are the shapes/rectangles Edges – these are the lines connecting …
-
Mocking in Ruby
Saturday, 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 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 …