Improving the Rails Route Generator Discussion
I am constantly changing my mind wether it is better to use ruby and rails or something statically typed like go. I personally hate to dig through tons of code not knowing where something is defined because it is for example meta-generated or included where I don't expect it. printereasy.com routermanuals.net techtipseasy.com
Did you consider automatically generating the sentinel if a pre-existing namespace was used? That way the API of the route method can remain unchanged, but you still solve the issue of having duplicated namespace definitions.
Alternatively a route_namespace method that accepts a block might work to. Something like this:
route_namespace :madmin do route … route … end
I really liked your article. Keep up the good work.