Creating Testable Applications Using the MVP Pattern

(The following post talks about ASP.NET, but it actually applies to all UI-based applications, web and non-web. PHP, WPF, Winforms, etc. It does not require a framework, nor anything to install – it’s just an interesting way to write your code such that it has a clear separation of concerns).   The Problem Your typical…

1

Code commenting? Try Business Commenting.

Jeff has a good post here about code comments and that they shouldn’t be used as crutches: Coding Horror: Coding Without Comments I agree with the article, but one thing I rarely hear mentioned is that it’s often more interesting to comment the business justification than it is to comment the code. Jeff goes some…

16

Drawing Fractal Trees – Part 3

The Application Itself Firstly, here’s what we’re aiming towards: Live demo: Click to view live. Download the code: Screenshot:   Writing The Application Now, when I originally wrote the bones of the app it was very simple; everything fit in the single Page.xaml.cs file; there’s actually very little to it. Since then I’ve expanded it…

1

Turn down the ugly…

I’ve always struggled with making my apps look decent. In my head I can picture how it should look, but when it comes down to it, I often end up with stuff that looks like a dog’s breakfast. Here’s the cure: http://blogs.msdn.com/corrinab/archive/2008/07/22/8764478.aspx That post in particular helped me understand how to use Blend to turn…

0

Drawing Fractal Trees – Part 2

L-Systems We’ve established that drawing the tree will use the concept of self-similarity. To put this in action, we’re going to use what’s called an L-System. Here’s a crash-course… Firstly, we establish that we have a "pen" that at any given time has a current position and a current heading/angle. It’s always touching the paper,…

0

Drawing Fractal Trees – Part 1

Table Of Contents Part 1: Basic fractal theory (this page) Part 2: L-Systems – drawing trees. Part 3: Implementation in Silverlight, live demo, code download.   A Brief Explanation of Fractals In plain English, a fractal is a shape whose constituent parts are really just copies (scaled down) of the whole.  Here’s a simple example,…

1

[The Global] War On Terrier

I mentioned in the last series of posts that I’d written a small Silverlight game for an internal competition. Well, I’m finally able to put it online, here it is: http://silverlight.net/samples/2b2/waronterrier/waronterriertestpage.html It’s very similar to the old Worms games (which I love!), but much simpler. The reason I used puppies? Because my colleague suggested “War…

2

Australia is going to France!

(Bonus points for misleading title) The Australian Team SOAK just made it into the finals of the Imagine Cup. They were one of the 6 teams chosen in the Software Design Category. This year’s theme was “The Environment”, and Team SOAK has written software to monitor/control water usage on farms. Well done guys! I’ll even…

0

It’s all just a clock measuring contest…

Did you know that SBCL is now faster than Java, as fast as Ocaml, and getting better?! What does this mean for you? Most likely, nothing. They have various benchmarks that are used to measure the speed of a language implementation; and I think it’s a good thing – it keeps the implementers honest, and…

6

Can Software be Reliable?

Just read a post (permalink is broken) regarding how software engineering is nowhere near the level of quality as traditional engineering, partially because we don’t have standards, regulations, etc. While I agree with some of the argument, people often give too much credit to meatspace engineering when compared to software. You often get what you…

1