Professional Web Applications Themes

roguelike perl module namespace advice - PERL Modules

I've developed a set of modules which can be used to assist in programming a Roguelike in perl. Currently, the set is: rll::world (container for areas) rll::world::daemon (multiplayer server support via telnet) rll::area (container for map, mobs, items) rll::mob rll::item rll::pov_c (inline-c version of "point of view" code) rll::console rll::console::ansi rll::console::dump rll::console::win32 rll::console::curses it's at sourceforge under "rll-pm.sourceforge.net" II know the namespace isn't standard ... but i think it looks nice Very arguably the whole "rll::console" set *could* be renamed to Term::Console, since it's somewhat useful outside the "roguelike" development world, but I'd have to add functions to the ansi.pm ...

  1. #1

    Default roguelike perl module namespace advice

    I've developed a set of modules which can be used to assist in
    programming a Roguelike in perl.

    Currently, the set is:

    rll::world (container for areas)
    rll::world::daemon (multiplayer server support via telnet)
    rll::area (container for map, mobs, items)
    rll::mob
    rll::item
    rll::pov_c (inline-c version of "point of view" code)
    rll::console
    rll::console::ansi
    rll::console::dump
    rll::console::win32
    rll::console::curses

    it's at sourceforge under "rll-pm.sourceforge.net"

    II know the namespace isn't standard ... but i think it looks nice

    Very arguably the whole "rll::console" set *could* be renamed to
    Term::Console, since it's somewhat useful outside the "roguelike"
    development world, but I'd have to add functions to the ansi.pm for
    getting out of cbreak mode, which it defaults to, etc.

    I'm *hoping* someone will tell me "don't rename everything", but I
    would appreciate any advice.
    Erik Guest

  2. #2

    Default Re: roguelike perl module namespace advice

    Erik Aronesty <com> writes:
     

    "Looks nice" is well and good in the privacy of your own computer, but
    when you're releasing your work to the world, you should follow the
    standard. In particular, lowercase module names are officially reserved
    for pragma modules like "warnings.pm" and "strict.pm".
     

    I'd replace the rll:: with Games::Roguelike::. There's no real reason to
    create a new top-level name space for this.

    I'd also capitalize things like they're supposed to be.

    sherm--

    --
    My blog: http://shermspace.blogspot.com
    Cocoa programming in Perl: http://camelbones.sourceforge.net
    Sherm Guest

  3. #3

    Default Re: roguelike perl module namespace advice

    > standard. In particular, lowercase module names are officially reserved 

    Well, that's something I hadn't thought of. Thanks.
     

    OK.
     

    OK.

    Erik Guest

  4. #4

    Default Re: roguelike perl module namespace advice

    > > I'd replace the rll:: with Games::Roguelike::. There's no real reason to 
    >
    > OK.

    >
    > OK.[/ref]

    It's now Games::Roguelike::World, Games::Roguelike::Utils, etc. on
    CPAN.

    Erik Guest

  5. #5

    Default Re: roguelike perl module namespace advice

    Erik Aronesty <com> writes:
     

    Cool! Just in time for the 7DRL competition over on rgrd. :-)

    sherm--

    --
    My blog: http://shermspace.blogspot.com
    Cocoa programming in Perl: http://camelbones.sourceforge.net
    Sherm Guest

  6. #6

    Default Re: roguelike perl module namespace advice

    Erik Aronesty <com> writes:
     

    BTW, you might want to mention these in rec.games.roguelike.developer -
    I've seen folks there talking about writing RLs in Perl from time to time.

    Another resource is RogueBasin:
    <http://roguebasin.roguelikedevelopment.org>

    sherm--

    --
    My blog: http://shermspace.blogspot.com
    Cocoa programming in Perl: http://camelbones.sourceforge.net
    Sherm Guest

  7. #7

    Default Re: roguelike perl module namespace advice

    Sherm Pendley <org> writes:
     

    s/developer/development/;

    It's been one of those days... :-(

    sherm--

    --
    My blog: http://shermspace.blogspot.com
    Cocoa programming in Perl: http://camelbones.sourceforge.net
    Sherm Guest

Similar Threads

  1. Replies: 1
    Last Post: March 25th, 08:55 AM
  2. advice needed on using proper perl graphics module(s)
    By Zhiliang Hu in forum PERL Modules
    Replies: 2
    Last Post: November 5th, 06:16 PM
  3. MI::TD - namespace advice
    By Tom McGlynn in forum PERL Modules
    Replies: 0
    Last Post: February 8th, 10:52 PM
  4. MP3::Archive - namespace advice
    By Ian Beckwith in forum PERL Modules
    Replies: 6
    Last Post: December 25th, 02:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139