InfoQ

News

The Future of MonoRail in the Wake of MS MVC

Posted by Hartmut Wilms on Nov 20, 2007 03:16 PM

Community
.NET
Topics
Web Frameworks
Tags
Rails ,
MVC

Hamilton Verissimo, the founder of the Castle Project, has discussed means of integrating Castle/MonoRail into MS MVC as well as real-world requirements with the MS MVC team.

During the last weak Hamilton informed the MS MVC team "of all complex and even counter intuitive requirements that [the Castle team] got from the real world apps and how/if the MS MVC would be able to handle them". He was also able to develop some integration samples as a proof-of-concept for MS MVC's extensibility and pluggability:

I was able to:

  • Create a initial IParameterBinder support
  • Create a NVelocity View Factory
  • Get a REST support working (both for url semantics and rendering based on the accept header)
  • Get it working with Castle’s DataBinder and ActiveRecordDataBinder

Things that I wanted but weren’t able to do:

  • Reuse MonoRail’s helpers: mostly because they are too tightly coupled with MonoRail
  • Create a Brail View Factory: same reason
  • Create a selector for view factories: impacts on testability

Hamilton is very pleased with the MS MVC Framework approach, but he advises the community not to expect too much of the CTP bits that have been announced for the end of the year:

That’s because what you’re going to see is a very small framework, with a lot to be done to be useful. As they say, the CTP is mainly for feedback. I’m sure Milestone 2 would be something great, though.

Concerning the future of Castle MonoRail Hamilton says that we'll have to wait until the final release and its feature set:

I was really adamant that they should try to support all things that MonoRail support, but I’m not sure they are going for that. MonoRail 2.0 is pending their implementation. If the final MS MVC rocks, and provides so many things, I’d vote for forget the MR 2. If the final MS MVC has clearly something lacking, MR 2 could reuse the infrastructure and provide some nice extensions.

Aaron Jensen, Director of Engineering at Eleutian Technology, shares Hamilton's thoughts and suggests:

What I'd like to see is MonoRail become more like Rails. I want to see something built on top of MS MVC that even more-so favors Convention over Configuration--including but not limited to generators and such. I want it to take it to the next level and be exactly what the community wants for a C# web platform.

Aaron as well as Adam Esterline and others have pointed out the deficient routing capabilities of MonoRail:

Routing - RoR and MS MVC treat Routing as a first class citizen. Routing in MonoRail is an after thought and it shows.

Why is first class Routing a big deal?
  • DRY - Tight integration between the routing engine and URL generation allows URLs to refactored easily and safely.
  • Testing - Testing routes, in MonoRail, requires an end-to-end test. If routes were first class objects, then routes could be tested in isolation.

The routing issue has already been addressed by Hamilton, who came up with a new MonoRail routing engine. The "bleeding-edge" code is on the MonoRail SVN.

Ben Scheirman refers to the MS technology vs. OSS technology issue and concludes that "System.Web.MVC will reach an audience that MonoRail doesn’t: The corporate giant who already swallowed the pill and will do anything that Microsoft pushes, good or bad. And a lot of consultants work firmly in this space".

No comments

Watch Thread Reply

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.