#141616 - 2005-06-15 12:23 AM
Re: Standards for KixTart Programming: I.E. Variable naming
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Here one we did for Kixforms scripts:
Naming Standards
-Shawn
|
|
Top
|
|
|
|
#141619 - 2005-06-15 12:47 AM
Re: Standards for KixTart Programming: I.E. Variable naming
|
Kdyer
KiX Supporter
   
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Quote:
Here one we did for Kixforms scripts:
Naming Standards
-Shawn
We may need to add this to the - Best Practices and Methods
Kent
|
|
Top
|
|
|
|
#141621 - 2005-06-15 12:49 AM
Re: Standards for KixTart Programming: I.E. Variable naming
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
Standards are a good thing..
otherwise a code monkey on crack will write something like this...
Code:
$ = Open(1,'Rightpane.html',5) For Each $ In $rp1 $ = WriteLine(1,$+@CRLF) Next $ = WriteLine(1,$html) For Each $ In $rp2 $ = WriteLine(1,$+@CRLF) Next $ = Close(1)
variables... we dont need no stinking variables!!
|
|
Top
|
|
|
|
#141622 - 2005-06-15 01:58 AM
Re: Standards for KiXtart Programming: I.E. Variable naming
|
Huffinagle
Getting the hang of it
   
Registered: 2002-09-04
Posts: 75
Loc: McMinnville, OR, USA
|
Les, I knew I could count on you to address the important stuff!
|
|
Top
|
|
|
|
#141623 - 2005-06-15 03:21 AM
Re: Standards for KiXtart Programming: I.E. Variable naming
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11634
Loc: Space
|
Well if the lady assisting you at the Dept of Motor Vehicles to renew your license was named KATHERINE and you kept calling her Kat, you might not have your drivers license updated. 
Please try to remember this is an International board and items that may or may not disturb you, may disturb other members.
As for the Standards. Currently there are NO agreed upon standards for variable naming conventions with KiXtart.
You are free to use any name that makes sense to you. My own personal preference is (as shown by Bryce) to avoid single letter abreviations for variables. They are quite valid, but mean little to you or another Admin down the road who has to maybe update your code. I would recommend using small variables that make sense to most people when and where possible.
Good luck.
|
|
Top
|
|
|
|
#141625 - 2005-06-15 05:08 PM
Re: Standards for KiXtart Programming: I.E. Variable naming
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
got a chuckle out of me
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 1300 anonymous users online.
|
|
|