An Architect's View

CFML, Clojure, Software Design, Frameworks and more...

An Architect's View

Entries for month: March 2008

CFEasyMock on RIAForge

March 31, 2008 ·

As a fan of unit testing, I was interested to hear about a new mock object generator project appearing in the CF world. I've been using Brian Kotek's ColdMock for a while and I really like how easy it makes it to test CFCs that depend on several other CFCs - because you can create "mock" versions of those CFCs on the fly that return specific values. Mock objects are a good way to provide a consistent environment for your CFCs under test, as well as a way to let your CFCs be tested without them affected the "real" environment (because you can create a "mock" environment which can even include things such as data access objects to fake the whole database layer). As I blogged recently, I've switched from cfcUnit to MXUnit and the mailing list is pretty active. Mike Steele posted that he had ported EasyMock to CFML. My first reaction was "Have you looked at Brian Kotek's ColdMock project?" and Mike explained that EasyMock isn't just about creating simple mock objects but about verifying behavior in those mock objects. Intrigued, I read about EasyMock, a Java project that targets JUnit, and realized the power of being able to create mock objects that expect to be called in certain ways and can, as part of your unit test, actually verify the calls made on them! I asked Mike to send me a build and I played with it and liked it a lot, pretty much instantly. I sent him some feedback and very soon I got an updated build that incorporated much of my feedback - and a note saying he was already going in that direction. Nice to find a project where I'm on the same page as the author! You can download the latest build from the CFEasyMock project page on RIAForge. It's a very simple but very powerful concept that should really help you with your unit testing!

Tags: oss · tdd · coldfusion

cf.Objective() 2008 - Session Change

March 31, 2008 ·

Joe Rinehart just let me know today that his Model-Glue session will no longer be about Model-Glue 2 (Unity) but will instead be the first full public showing of Model-Glue 3, codenamed "Gesture". The session will cover the history and philosophy of Model-Glue and show how the new release "will make it easier then ever to employ architectural concepts like MVC and Implicit Invocation in your ColdFusion applications".

Tags: cfobjective · coldfusion · modelglue

cf.Objective() 2008 Session Focus - Enterprise Class MVC with ColdFusion and Java

March 30, 2008 ·

Andrew Powell - Enterprise Class MVC with ColdFusion and Java - Saturday 11:25am We hear a lot of talk about using individual Java objects within ColdFusion but the reality of enterprise development is that entire subsystems tend to built entirely in Java. Software teams that serve the enterprise often build large, complex systems using Spring and Hibernate. How do you go about using ColdFusion with such systems? I haven't seen any presentations on this subject so I was pleasantly surprised when I started reviewing Andrew Powell's slide deck to find that he was focusing on how ColdFusion can provide the web front end to enterprise class Java systems. He introduces Spring (the Java version) with a demo and then introduces Hibernate (the industry standard ORM for Java), again with a demo. After that, he will walk you through solutions to the problem of connecting ColdFusion on the front end to Spring on the backend and, using Mach-II as an example, he then shows how to create an MVC web application that allows you to leverage the entire Spring-powered, Hibernate-persisted Java backend. If you work along a Java team - or you are considering using more Java for your backend systems - this talk will provide you with a lot of good information about how well ColdFusion plays in this space.

Tags: architecture · cfobjective · coldfusion · j2ee · machii

Adobe AIR for Linux - Alpha available

March 30, 2008 ·

True cross-platform desktop applications built with familiar web technologies just became a reality with the availability of an alpha release of Adobe AIR for Linux.

Tags: air · adobe

Warp - Making Leopard Spaces Even Better

March 30, 2008 ·

I like Spaces but I always like improving my workflow. A small utility called Warp does just that. It allows you to switch Spaces using the mouse, with a variety of options including modifier keys, clickable previews etc. Since I currently have six Spaces (two columns, three rows), I'm finding Warp speeds up my workflow by adding a natural way to move around my extended workspace.

Tags: osx

cf.Objective() 2008 Session Focus - Introduction

March 30, 2008 ·

Over the next few weeks, I'll be blogging about upcoming sessions at cf.Objective() 2008 that will go beyond what's in the session abstract on the website so that you can make more informed decisions about which sessions to attend - or maybe even make the decision to register for the conference!

[

Tags: coldfusion · flex · cfobjective

cf.Objective() 2008 - Flex Frameworks BOF?

March 30, 2008 ·

I was chatting with a few folks today and it seems the Flex frameworks space is heating up these days. Cairngorm is, of course, the incumbent, but there are a number of other frameworks out there and more on the way. cf.Objective() already has three sessions on Flex frameworks: Two other Flex framework authors are also speaking at cf.Objective(): Joe Rinehart (Model-Glue: Flex) and Chris Scott (Swiz - soon to be released). Would folks be interested in a Flex frameworks shootout BOF?

Tags: swiz · flex · cfobjective

Post-Leopard Glitch #2

March 29, 2008 ·

It won't recognize my Verizon broadband card - or at least it won't connect. Network preferences show that it thinks the "Novatel CDMA" card has become an Apple modem (huh?!). Delete the network profile, re-insert the card, bingo! Auto-configuration "just works". I'm posting these little notes in case they might help anyone else moving to Leopard (and as a testament to the fact that whilst I love Apple, I know not everything goes smoothly with a Mac - and this is why I held off upgrading for three months after buying the Leopard DVD!).

Tags: osx · wifi

Post-Leopard Glitch #1

March 29, 2008 ·

It won't recognize my iPhone. Google turns up lots of similar complaints. Solution? Download iTunes and re-install it. Weird but it works.

Tags: osx · iphone

ColdBox 2.6

March 29, 2008 ·

Want to help with the development of ColdBox? Fill out this survey about features. It covers plugins, interceptors and your general impressions of ColdBox. Completing the survey will help Luis create a better framework for everyone.

Tags: coldfusion · coldbox