http://qs1969.pair.com?node_id=1206875


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.