Archive for May, 2008

May 13 2008

Castle demo App #2: Monorail basics

Published by gojko under articles, tutorials

In the second part of the Castle demo application tutorial, we look into the basic features of Castle’s powerful Model-View-Controller system, called Monorail. Monorail is based on Ruby on Rails, and brings two very important features to .NET web development:

1. Good separation of concerns between the domain model, workflow logic and the user interface: this allows us to unit test larger portions of web applications, makes the code more reusable and gives us flexibility for the user interface.

2. HTTP request/response plumbing, allowing us to be much more productive when developing web pages: Monorail will automatically convert HTTP request data into strongly typed function parameters, even domain objects; it provides an infrastructure for aspect-oriented request handling and reacting to errors. That allows us to focus on the business logic of the web application and skip writing boilerplate web code. Continue Reading »

No responses yet

May 07 2008

Castle demo app: ActiveRecord basics and unit testing

Published by gojko under articles, tutorials

Castle project is a great .NET enterprise application framework. It helps us develop .NET applications and web sites by providing the plumbing and making it easy to test the most important parts of the system. I’ve decided to build a demo application with the Castle project for an internal training session, to show how easy it is to work with this framework and to demonstrate the best practices. I will post the tutorial in parts on this web site as I develop it. In the first post, we work on the object-relational mapping with ActiveRecord and write unit tests for the database mapping layer. Continue Reading »

23 responses so far

May 05 2008

Put the web server on a diet and increase scalability

Published by gojko under articles

HTTP Sessions allow us to develop web applications as if they were running on a desktop machine, making the web so much more useful. Although HTTP is a stateless protocol and there is a lot of work involved in providing this abstraction, web servers make it very easy to use — perhaps too easy. Taking a quote from Spiderman, with great power comes great responsibility. That is why misusing HTTP sessions is probably the number one obstacle to building scalable web sites today. Here are some tips how to consume HTTP sessions responsibly. Continue Reading »

4 responses so far

May 03 2008

Alt.Net beers after the Castle session

Published by gojko under news

Alt.NET folks are organising an informal meeting after my Castle session. The first Alt.NET beers event will start at 8:30 in the Crown pub, five minutes after Skills Matter offices. For more information, see Seb’s blog post about the Beers event.

No responses yet

« Prev