On Mon, February 4, 2008 4:23 pm, Christian Bartolomaeus wrote: > I think about putting some generic, non-specific methods in a separate > module, which wouldn't be useful by itself, but would be used by the > more specific modules. Maybe it would be useful to put those generic > methods to > > Chess::Rating::Calculate > > Unfortunately those names don't fit with the existing modules. > > Finally my questions: Is it bad practice to invent yet another > namespace instead of adding to an existing one (Terrence Brannon > offered me to use "his" Chess::Elo namespace)? Do you have any advices > for me?
In general, if it fits in the current that's probably best, but there isn't much preference. (Except for top-level namespaces: The fewer of those the better.) My first thought, after looking through your Wikipedia link, is to ask if there is anything specifcally 'chess' about your module: That ratings system looks to be useable (and used...) outside the one area. Perhaps Statistics::Ratings::Elo? Daniel T. Staal --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------