[GRASS5] Zoom

Carl Worth cworth at east.isi.edu
Tue Apr 30 10:13:03 EDT 2002


On Apr 30, Radim Blazek wrote:
 > On Monday 22 April 2002 10:40 pm, Carl Worth wrote:
 > > I guess those would work. But, I would prefer naming the functionality
 > > "d.pan" rather than "d.zoom -p". I'm a big fan of making interfaces
 > > that actually name the functionality being provided.
 > 
 > I think that it is not question of name, but of duplicating
 > code and additional work. To maintaine 3 modules is more work than to
 > maintain one. If you look at d.zoom, d.pan, most of the code is (was)
 > identical or similar. Don't forget that you have also man pages,
 > links to manpages, and links from manpages to manpages ...

The correct way to avoid duplication of code is to abstract any code
that would be useful to multiple modules into a library.

-Carl

-- 
Carl Worth                                        
USC Information Sciences Institute                 cworth at east.isi.edu
3811 N. Fairfax Dr. #200, Arlington VA 22203		  703-812-3725



More information about the grass-dev mailing list