[Pmwiki-users] Variable names
Jonathan Scott Duff
duff
Mon Oct 18 08:19:30 CDT 2004
On Mon, Oct 18, 2004 at 07:40:59AM -0600, Patrick R. Michaud wrote:
> On Mon, Oct 18, 2004 at 07:50:23AM -0400, Robert P. J. Day wrote:
> > unless all these names have been absolutely cast in stone (and they
> > may very well be), i *implore* you to change them to more meaningful
> > and relevant names. as options, the current group and page name might
> > be represented by
> > $CurrentGroup
> > $CurrentPage
>
> These are too long--variables that are used frequently (and $Group and
> $Name are by far the most commonly used items in templates) should
> be short and easy to remember. Also, $CurrentPage itself would be
> confusing -- does it refer to just the name component of the page or
> the page's full name? I'm very likely to leave $Name and $Group as
> they are, although I might switch to $FullPageName instead of $PageName.
I'll just note that I too dislike $Name. For reasons similar to why you
dislike the term "user" in fact :)
In a system where you have well-defined concepts of pages and groups,
$Group makes sense, but $Name does not. I suggest $Page instead.
-Scott
--
Jonathan Scott Duff
duff at pobox.com
More information about the pmwiki-users
mailing list