[
Lists Home |
Date Index |
Thread Index
]
- From: David Brownell <db@Eng.Sun.COM>
- To: Rob Williams <rob@robco-inc.com>
- Date: Tue, 01 Dec 1998 21:17:21 -0800
Rob Williams wrote:
>
> What do you mean by helper methods? You mean taking Jack's suggestion and
> just writing a little method that is going to wrap the newline and post the
> field value all in one fell swoop? That does look good; I mainly wanted to
> see what seasoned vets of this stuff were doing before I started rewriting.
Yes -- so you make one call to the method that does those several
things, rather than several calls to primitive methods.
"Helper Subroutines" (or methods, or macros, or what have you) are
a good idiom to use whenever you find yourself repeating code.
- Dave
p.s. Since at least some of that code was there to deal with an
issue much like prettyprinting, try grabbing the new release
of the library: http://java.sun.com/jdc/earlyAccess/xml
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|