Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Mojolicious Routing mangles controller path

by Anonymous Monk
on Jan 08, 2018 at 01:44 UTC ( #1206875=note: print w/replies, xml ) Need Help??


in reply to Mojolicious Routing mangles controller path

As a guy whos only ever used lite, im wondering why youre specifying controllers , as in perl packages/modules, using strings with dashes -- Why map routes manualy and indirectly ? Thats neither convention nor convenience...
  • Comment on Re: Mojolicious Routing mangles controller path

Replies are listed 'Best First'.
Re^2: Mojolicious Routing mangles controller path
by Your Mother (Archbishop) on Jan 08, 2018 at 16:56 UTC

    Dashes are easier to type, especially for non-typists, and read better to non hackers—are also far less confusing when handwritten—so it's potentially a convenience for end users.

      Dashes are easier to type, especially for non-typists, and read better to non hackers—are also far less confusing when handwritten—so it's potentially a convenience for end users.

      Why would any of those non-OPs/non-programmers be involved in typing the name of controllers?

      Also what exactly does that have to do with the programmer OP whos having trouble getting mojo to call the correct controller (perl module)?

      Seems to me the most straight forward thing to do, since OP is already typing all this out, is to tell mojo in perl module terms what to call, not in shorthand terms

        URLs are what is at issue. There is nothing wrong with using hyphens in them and, as I remarked, it's even preferable. You, or another noname monk, remarked, wondering why one might want to do that, claiming it was neither convention nor convenience. I gave examples of why it is actually both for all the potential users as opposed to the one, maybe a dozen, developers.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1206875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2023-06-06 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?