numero = 103306
interpreted = N
texte = Eddie Z wrote:> Is naming a database users.db a no no? I’m pretty sure I just found out > the hard way that it is, but wanted to clarify. I’m not sure why I added > an s to the end of a database I normally would call user.db, but for > some reason I did and then I couldn’t figure out why my searches weren’t > working.This is a good time to revisit 'convensions' once again I think. ;-)Because WebDNA is written in basic English, it is *always* a goodidea to use naming conventions that are not basic English...such as:Text vars prefixed with "T_": [text]T_name=Donovan[/text]Form vars prefixed with "F_": Math vars prefixed with "M_": [math show=f]M_total=3000[/math]Global text vars "G_": [text scope=global]G_T_var=somevalue[/text]Customers Database that is specific to a site called "yourdomain"could be called "YD_customers.db", then the fields: [YDC_NAME] [YDC_ADDRESS] etc..You don't have to use what I have above, rather roll your own.Conventions help insure that you don't run into reserved names, andthey can make it much clearer for a 3rd party programmer to see whatis going on.Just my .02¢ :-)Donovan-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Associated Messages, from the most recent to the oldest:
Eddie Z wrote:> Is naming a database users.db a no no? I’m pretty sure I just found out > the hard way that it is, but wanted to clarify. I’m not sure why I added > an s to the end of a database I normally would call user.db, but for > some reason I did and then I couldn’t figure out why my searches weren’t > working.This is a good time to revisit 'convensions' once again I think. ;-)Because WebDNA is written in basic English, it is *always* a goodidea to use naming conventions that are not basic English...such as:Text vars prefixed with "T_": [text]T_name=Donovan[/text]Form vars prefixed with "F_": Math vars prefixed with "M_": [math show=f]M_total=3000[/math]Global text vars "G_": [text scope=global]G_T_var=somevalue[/text]Customers Database that is specific to a site called "yourdomain"could be called "YD_customers.db", then the fields: [YDC_NAME] [YDC_ADDRESS] etc..You don't have to use what I have above, rather roll your own.Conventions help insure that you don't run into reserved names, andthey can make it much clearer for a 3rd party programmer to see whatis going on.Just my .02¢ :-)Donovan-- Donovan BrookeWebDNA Software Corporationhttp://www.webdna.us**[Square Bracket Utopia]**
Donovan Brooke
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...