magpiebrain

Sam Newman's site, a Consultant at ThoughtWorks

Archive for ‘June, 2004’

Back from Glastonbury, and it seems people have been busy in my absence. A while back I integrated some Javascript from “Stuart Langridge”:http://www.kryogenix.org/ which parses Textile formatted text into HTML – I used this code to create a live preview for commentors (which itself was inspired by the HTML live preview on “Jon Hick’s”:http://www.hicksdesign.co.uk/journal/ site). Jeff Minard spotted my “original post(magpiebrain – Live textile comment previews)”:http://www.magpiebrain.com/archives/2004/05/18/preview on the subject, and “took it upon himself”:http://www.creatimation.net/journal/textile-live-preview to add support for some aspects of Textile formatting that were missing from Stuart’s original script prior to integrating it into his own very nice blog (another site that has encouraged me to start a minor design overhaul). When I get a spare moment, I’ll certainly be integrating Jeff’s changes into this site.

Any initial impressions are that its very nice indeed. I uninstalled 0.8 before installing “as advised(Firefox 0.9 release notes)”:http://www.mozilla.org/products/firefox/releases/, and was a little disappointed to see that it lost my settings. This however was a minor inconvenience (most of my bookmarks are in “del.icio.us”:http://del.icio.us for example) – the extension manager is fantastic, and it was a breeze to reinstall my favourite “Web Developer”:http://update.mozilla.org/extensions/moreinfo.php?application=firefox&id=60&vid=63 extension (which has added even more useful features, such as improved CSS reports and a “page speed report”:http://www.websiteoptimization.com/cgi-bin/wso/wso.pl?url=http%3A//www.magpiebrain.com/. Now all I have to do is wait for the “Tab Browser Extension”:http://white.sakura.ne.jp/~piro/xul/_tabextensions.html.en to support the new API…

I woke up this morning to a pleasant arrival in my inbox – no, not the latest Nigeria scam, instead a communication from “Sixapart”:http://www.sixapart.com/, makers of “Movable Type”:http://www.moveabletype.org. Firstly they informed me that my Personal Edition has been upgraded for free to an Unlimited Personal Edition (so I can now have as many authors as I like), but have also explained that the standard Personal Edition now allows an unlimited number of blogs too (previously you were limited to five authors).

When the original licensing structure was announced many bloggers got a “little histerical”:http://diveintomark.org/archives/2004/05/14/freedom-0 – I instead decided to wait it out and see how Six Apart dealt with the criticism. Six Apart listened, reacted, and the net result is that the new license scheme was to my liking. I paid for a license an am very happy with it. The fact that they’ve further rewarded me for my support is icing on an already quite nice cake.

You’ve found a project which interests you. It looks in fact like it might be incredibly useful. You start to play around with the code. You have some questions, find some bugs. You post queries and bug reports. Nothing happens. You find some more problems – some architectural issues for example, which result in queries you’d like answered. Still no reply. You even send in patches – still nothing. You like the idea of the project, just not the current implementation or the way its being run – so when do you make the decision to fork, or even re-implement it?

I’m currently writing a UI layer for Naked Objects. I’m using a TDD approach and have also used the development as an excuse to give “JMock”:http://www.jmock.org/ a go. It being my first experience using a proper Mock Objects API (I have used the very handy “MockRunner”:http://mockrunner.sourceforge.net/, which Mocks application frameworks rather than objects) its been slow going at the start. Things have now started to click into place mentally and JMock is at last making some sense.

Today however I hit a really annoying problem. I’m developing a simple @FrameFactory@, who when given a @NakedClass@ will return a window showing a list of instances. The code looks like this:


public class FrameFactory {
  public FrameFactory(FactoryDependancy dependancy) {
    ...
  }

  public Component makeInstanceList(NakedClass clazz) {
    //make an instance - this is what I want to test
  }
}

Continue reading…

After thinking it over for a while I decided to upgrade to Movable Type 3. The install process went well and everything seems to be working fine. Rather than simply going for the free version I decided instead to reach for the credit card and purchase a Personal Edition license – I had a beta testers discount so it made it stupidly cheap for what I was getting. Anyway, the earlier versions of MT gave me excellent service, and I thought it was time I contributed toward the development costs. As always, if it looks like anything is bust, “let me know(Contact Me)”:http://www.magpiebrain.com/contact.

Along the way I discovered I nifty little freeware (for non-commercial use) ftp tool called “SmartFTP”:www.smartftp.com/ which is worth a look if you’re in the market for a graphical FTP tool.