Re: Amazed by macros working on first attempt





Zach Beane wrote:
> "Eric Lavigne" <lavigne.eric@xxxxxxxxx> writes:
>
> > If you are annoyed by the idea of encapsulation, in which a package
> > maintainer decides which variables you should or shouldn't touch, then
> > just use the double colon all the time. mypackage::*exported-variable*
> > works just fine.
>
> This will also keep you from getting annoyed when things work
> correctly through package internals updates.

Yes, this is the idea. I *could* access any variable from another
package, but if I make these accessors instead, then internal variable
name changes and/or implementation won't affect as much code in other
packages, if any.

This app started out with keyboard input, and I didn't care if a few
menu routines had access to the important objects and variables. In
fact, everything was in one package. Now that I've added another
package to make this a web app, the idea of clearly defined interfaces
makes it more maintainable.




>
> Zach

.



Relevant Pages

  • Re: A real package manager in action
    ... The maintainer is the person who does the packaging, ... not necessarily the original author who is upstream. ... It also spreads the support load: package ... It depends what the resource is, and the worst that can happen is ...
    (comp.sys.acorn.apps)
  • Regarding unresponsive Debian maintainers (was: Re: Open-Source environments for Java)
    ... package anymore and won't be stalling the project (or, at least, the users ... > without any indication of an intent to fix them. ... any response from the maintainer. ... I merged some bugs there. ...
    (Debian-User)
  • Re: Linux and viruses, worms, etc (newbie)
    ... sorts of mistakes to watch out for. ... So, having one package maintainer ... maintainer then becomes something of a single point of failure. ...
    (alt.os.linux.suse)
  • Re: Tickets, explained...
    ... look at the package he's complaining about -- there's an email address for the maintainer in there. ... can be a service to generate public acknowledgment ... simply as user carping. ...
    (comp.text.tex)
  • Re: A real package manager in action
    ... The maintainer is the person who does the packaging, ... Splitting the responsibility for managing the package from the author ... His website doesn't 404, it's still there, it's ... yes but google has resources that RO doesn't have, ...
    (comp.sys.acorn.apps)