Dev @ Work

A day in the life of a developer

Breadcrumbs Framework Sample

October 10th, 2007 by

Breadcrumbs

Yesterday, I mentioned in my post about MonoRail that I would make the source of the framework available to the community. Today I found some time to build a sample application demonstrating the framework.

You can view the sample application by navigating to: http://breadcrumbs.premotion.nl and you can get the source by clicking here: Download here. The framework is by no means complete or stable and must not be used in any other application than test applications. Neither me nor Premotion can be held responsible for damage caused by the usage of the framework.

I know the framework contains a lot of bugs, but I am not going to fix them before I have a clear idea of what features the framework should contain. If you have any suggestions, ideas or comments, please let me know!

Monorail in a Castle

October 9th, 2007 by

Castle Monorail

This post is not about some train riding one single track and a big fortified building but about the Monorail MVC (Model View Controller) framework of the Castle Project.

This is not going to be an introduction to Monorail but rather a story about my workflow for this particular project. Although I might write an article about Monorail in the future, for now I will point you to the Castle Project website for information about Monorail.

Last week I had to build a web application for the Van der Werff project, which allows users to view project information online and report malfunctions. The access to the information must be protected from anonymous users and only be accessible for authenticated users. The project information comes from the WCF web service, which also provides the security.

In the next paragraphs you can read how I implemented the application.

Read the rest of this entry »

Rapid Application Building

August 20th, 2007 by

In the previous hour I wrote a real simple web application with the purpose of CRUD (Create, Read, Update and Delete) log entries. When you use ASP.NET and ADO.NET that would typically take a couple of hours. First you would have to create the database scheme then you would have to write the business logic and finally you need to create the pages.

However I decided to leverage the power of some components of the Castle project [1]: Castle MonoRail [2] and Castle ActiveRecord [3]. Castle Monorail is a MVC (Model View Controller) framework and Castle ActiveRecord is a framework based on the active record[4] pattern. The components integrate very nicely as you will see.

Read the rest of this entry »