I gather that, just trying to find out if your annoyances with what's out there 
are the same as mine :)

My take on routing:
- I hate having to define it in ASP.NET or/and MR
- I wish it is derived from the code, eg if I have a controller named Products 
with an action View with a parameter called id, then just map that to 
/Products/View/{id}
- I hate having to define it upfront (usually in the global.asax)
- I wish I could define it on the actual actions (if it can;t be derived by 
convention) , eg:
[Route("/Products/List")]

public void Index(){ }

Does anyone else think that defining routes is a burden on the developer that 
could/should be avoided?

Cheers
John


________________________________
From: hammett <[email protected]>
To: [email protected]
Sent: Wednesday, 13 April 2011 4:08 PM
Subject: Re: New Routing

Same reason I'm building yet another mvc fx: I'm not happy with what's
out there...


On Tue, Apr 12, 2011 at 9:12 PM, John Simons <[email protected]> wrote:
> Hamilton,
>
> Apart from the speed optimisations, why write your own routing?
> Couldn't u have used the ASP.NET one?
> Cheers
> John
>
> ________________________________
> From: hammett <[email protected]>
> To: [email protected]
> Sent: Wednesday, 13 April 2011 2:06 PM
> Subject: Re: New Routing
>
> After the optimizations it takes less than half the time of asp.net's
> counterpart. Promising!
>
>
> On Tue, Apr 12, 2011 at 12:01 PM, hammett <[email protected]> wrote:
>> I've pushed to https://github.com/castleproject/Castle.MonoRail3 a new
>> routing lib, in very early stages. It's totally inspired on merb, so
>> the syntax is something like
>>
>> /something -> literal match
>> /:name -> named parameter
>> (/something) -> ( ) denote optional
>>
>> the default route is /:controller(/:action(/:id))(.:format) which is
>> quite self-explanatory
>>
>> Please please please code review my implementation. I'm sure it can be
>> improved in zillions of ways. I'm going to do some perf comparissons
>> today. Btw, do we have a license for dotTrace?
>>
>> --
>> Cheers,
>> hammett
>> http://hammett.castleproject.org/
>>
>
>
>
> --
> Cheers,
> hammett
> http://hammett.castleproject.org/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Development List" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-devel?hl=en.
>



-- 
Cheers,
hammett
http://hammett.castleproject.org/

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

Reply via email to