Re: Symrefs



Uri Guttman wrote:
even though there may be duplication in the sub names and dispatch
table entry keys, i agree that having the DB hold those names is a
bad idea. i know reasons why you do that such as a personal list of
plugins to load, etc. but those names could be different than the
actual sub names or even map 1 to many (or many to 1) so a dispatch
table (even manually created) is safer as the coder controls what is
allowed to be
called. using the symbol table to check for sub existance is bad
because of the possibility of calling code not under your control. as
brian said, that is nasty regardless of dispatch tables but it is
just safer IMO. i would consider the names in the DB as data that
request operations to be called rather than explicit sub names to be
called by symrefs.

Yes, you are right. But my reason to use sub names in DB is very simple. I see I must to view the true :-)
I write web application for collecting weather data for as many locations as possible. In internet are many servers with weather data. Some personal, some business, some government. On some servers you can collect data about tens or hundred towns, on some servers you can get data about one location only. Of course, every server generate different html code which I must to parse for get data.
A limited number of people in world have access to my database and can to add new link to weather page. The "link" field in database have own unique index and cannot be inserted twice. So as you can see for some pages the links are similar, say
http://www.france-weather.fr?town=Paris
http://www.france-weather.fr?town=Caen
and I can use the same sub to parse html code. Other links are very different and I must use very different subs. I don't know how many locations/links I will have in DB next year or in 5 years ;-) And I don't know too, how many subs I will have. Maybe links will be 5000 and subs 100, maybe links will be 5000 and subs 4000.
--

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail from another non-spammer site please.)




.



Relevant Pages

  • Re: Home Directories not mapping
    ... Secure channel for domain 'DOMAIN' was successfully set to PDC ... >> looking at those servers to see what state they are in. ... >>> For Each objGroup In ObjGroupDict ... >>> Sub InformationSystems ...
    (microsoft.public.win2000.active_directory)
  • Re: Change DNS ip configuration through script
    ... address of 10000 servers which list is their with me in excel. ... > Sub Main ... > Sub ErrorHandler(byVal errorNum, byVal errorDesc) ... > Set objFile = fso.CreateTextFile ...
    (microsoft.public.scripting.wsh)
  • Re: Re-configuring remoting from config file during application session
    ... two different servers remoting the same object type, ... > Private Sub frmMain_Load(ByVal sender As Object, ... >> channel and formatter info is in the config file. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Home Directories not mapping
    ... We have used the SET command to identify the logonserver for one user ... > looking at those servers to see what state they are in. ... >> For Each objGroup In ObjGroupDict ... >> Sub InformationSystems ...
    (microsoft.public.win2000.active_directory)
  • Re: W97 Form Field Crash
    ... The reasons for this are: ... in Module1 you have Sub Mainand in Module2 you have ... Post Service Release ...
    (microsoft.public.word.application.errors)