-
01Mar
2010 F# – Combinators And Tail RecursionPerhaps combinators and tail recursion are not the best beginner topics in F# but they are the ones I got stuck into pretty much straight away. I blame Google. After reading a few google hits on functional programming I of course found out about combinators and I just had to understand them.
I finally got it [...]
-
26Feb
2010 What Conroy’s tag cloud really looks likeHere is a screenshot of what the now infamous Conroy’s tag cloud would look like without the “censorship” attempt:
It’s certainly not hugely prominent and, frankly, I am disappointed about that. It would have been way funnier if it was the biggest tag in the cloud.
Here is the greesemonkey script for those that feel inclined to [...]
-
20Feb
2010 Unit Tests As A Refactoring ToolSo I have this class that is a bit too fat and has no unit tests. It’s way overdue for a clean up. I thought I would investigate how to refactor with unit tests.
Application
The application in question is a fairly normal case of a business DSL where the domain rules are expressed in XML and [...]
-
09Feb
2010 I Like Words – Or Introduction Into Functional Programming and F#.If you hoped to find some sort of functional programming introduction here you are sadly mistaken. This is MY introduction into such said programming. Or it is more like “I’ve read up on F#, my brain exploded and spilled out into this blog post”.
I would like to start off by comparing programming languages to spoken [...]
-
04Feb
2010 #iitrial Result – What’s Next?Now that iiNet has won a a landmark court case, what does that mean for the future of Internet users in Australia?
-
02Feb
2010 Double Dispatch – RTTI vs. Pure VtableAs Jeremy Clarkson would say, I have been inundated with a request to performance test a dynamic_cast DD mechanism against the pure vtable one. The results surprised me, both in Debug and Release modes. So here is the dynamic_cast implementation:
void c_rtti::foobar(a_rtti & a2) { c_rtti* c_ = dynamic_cast<c_rtti*>(&a2); if (c_) { [...]
-
01Feb
2010 Double dispatch without RTTII liked my StackOverflow answer so much that I decided to make it into a blog post. The question was how to implement a double dispatch mechanism for subclasses of one base class without casting. After dismissing the question as stupid, I spent a bit of time trying to come up with a solution that [...]
-
28Jan
2010 Adding schemaLocation attribute to XElement in LINQ to SQLI have spent a bit of time trying to figure out how to generate an XML document with all the XML namespace paraphernalia – including schema location. I got stuck trying to create the xmlns:xsi attribute – LINQ to XML kept creating a namespace alias for me and calling it p1 like so:
<rootNode p1:xsi="http://www.w3.org/2001/XMLSchema-instance" p1="http://www.foo.bar" [...]
-
18Jan
2010 Apple Tablet – Make the pain stopApple marketing machine has been working in overdrive by continually circulating tablet rumours. Everywhere you go (technology wise) you are bound to hear speculation on what the damn thing is. I can’t wait utill Jan 26 when they finally announce it so we can all be over it.
This Week in Tech has a dedicated half [...]
-
08Jan
2010 I have a new pet hate browserHating IE6 is so 2003. I hate Chrome now. Maybe I am biased. I only used Chrome to test a layout that has a lot of transparency. It’s quite well known that webkit sucks a bit handling RGBA. But I am getting ahead of myself.
Everyone kept going on about how fast Chrome after it came [...]