To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 8405
8404  |  8406
Subject: 
Re: Calling all Meta-commands
Newsgroups: 
lugnet.cad.dev
Date: 
Fri, 14 Mar 2003 19:26:48 GMT
Viewed: 
1366 times
  
Dan Boger wrote:


except that if you do that, it discourages cross-tool commands.  If I'm
writing FooCAD, and I want to implement one of the LTrax commands,
should I make a new command '0 FooCad xxxx'?  should I secretly support
the '0 LTrax xxxx'?

I'm not sure what the best answer here is.  Maybe aliasing (internally)
'0 LTrax xxxx' to '0 FooCAD xxxx' does make sense?


I think that, with a little investigation, each command might be
identified as 'general purpose' or 'application specific.' I think
that haveing the app-specific ones prefixed with the appname (or
even 'APP {appname}') isn't such a bad idea.

Also I think that having some sort of community discussion on the
general purpose commands might be a good idea in order to also
help keep the namespace polution to a minimum. But by using the
'APP {appname}' prefix app authors could add whatever they wanted
while keeping the polution confinde to a small metacommand sandbox.
If some app-specific command were found to be useful to more than
one program, there isn't any reason it couldn't be 'promoted' to
the general purpose level and have the prefix stripped.

-Kyle


--
                                    _
-------------------------------ooO( )Ooo-------------------------------
Kyle J. McDonald                 (o o)         Systems Support Engineer
Sun Microsystems Inc.            |||||
Enterprise Server Products                        Kyle.McDonald@Sun.COM
1 Network Drive BUR03-4630       \\\//          voice:   (781) 442-2184
Burlington, MA 01803             (o o)            fax:   (781) 442-1542
-------------------------------ooO(_)Ooo-------------------------------



Message has 2 Replies:
  Re: Calling all Meta-commands
 
Kyle, This seems very pragmatic solution. I like it because there does not seem to be a "one size fits all" solution. Kevin (...) (22 years ago, 14-Mar-03, to lugnet.cad.dev)
  Re: Calling all Meta-commands
 
In thinking about this a bit more, I flashed on a quote from Yoda in one of the Star Wars movies "Hard to see the future is".... I've added some meta-commands to the name space that are certainly specific to LPub and the creation of building (...) (22 years ago, 14-Mar-03, to lugnet.cad.dev)

Message is in Reply To:
  Re: Calling all Meta-commands
 
(...) except that if you do that, it discourages cross-tool commands. If I'm writing FooCAD, and I want to implement one of the LTrax commands, should I make a new command '0 FooCad xxxx'? should I secretly support the '0 LTrax xxxx'? I'm not sure (...) (22 years ago, 14-Mar-03, to lugnet.cad.dev)

154 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR