[Biophp-dev] Standards

Andrés Pinzón biophp-dev@bioinformatics.org
Fri, 25 Apr 2003 21:57:30 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C30B75.AB24A310
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

 Hi everyone!
 FIRST OF ALL xcuseme if this has ALREADY been discussed..i just don`t =
know it!

 I've been thinking that maybe it would be OK if
 we stop for a moment and think about some "standards",i mean,
 1)why don't we try to give some parameters to the code?
 and...
 2)Why don't we try to post the code at CVS under other parameters (as =
someone else already said!)different from developer?
 3) Why don't we try to choose what are we gonna develop based on the =
classes  posted at the BIOPHP web page?

 How`s the deal?..............

 Ok. As we are supossed to be watching at someone else code, it would be =
easier to write the code
 in a way that everyone can easily interpret, for example:
-------------------------------------------------------------------------=
---------------
 "Rule 1"
       -All variables and properties must begin in capital letters as =
follows:
            $Variable
        ...if the variable or propertie has two or more words, each one =
must begin the same way, as follows:
             $MyVariable
             $MySecondVariable
        ...and never like:
              $My_variable or
              $My_Second_Variable
        ...that will be the way to name classes and functions (I MEAN =
WITH UNDERSCORE)!
-------------------------------------------------------------------------=
----------------
 "Rule 2"
       - All "{" or "}" in a loop or function must begin and end in a =
new line,as follows:

         for("whatever")
         {
                 CODE-HERE;
         }

         ...and never like this:

         for("whatever"){
         CODE-HERE;}
         ...OR OTHER VARIANT!
-------------------------------------------------------------------------=
------------------
"Rule 3"
      -All scripts must begin with a long comment at top as follows:

      #######################
      #
      #  Description, version, author,  etc...
      #
      #
      #######################

-------------------------------------------------------------------------=
------------------
I think this is a good idea and can be helpful in the near future! IF U =
don't agree tell me why please!

The other 2 points should be disscussed also, this is just my first =
clear opinion, please comments!
See u
Andres

------=_NextPart_000_0007_01C30B75.AB24A310
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New" color=3D#000080 size=3D2>&nbsp;Hi=20
everyone!<BR>&nbsp;FIRST OF ALL xcuseme if this has ALREADY been =
discussed..i=20
just don`t know it!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080 size=3D2>&nbsp;I've been =
thinking that=20
maybe it would be OK if<BR>&nbsp;we stop for a moment and think about =
some=20
"standards",i mean,<BR>&nbsp;1)why don't we try to give some parameters =
to the=20
code?<BR>&nbsp;and...<BR>&nbsp;2)Why don't we try to post the code at =
CVS under=20
other parameters (as someone else already said!)different from=20
developer?<BR>&nbsp;3) Why don't we try to choose what are we gonna =
develop=20
based on the classes&nbsp; posted at the BIOPHP web page?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080 size=3D2>&nbsp;How`s the =

deal?..............</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080 size=3D2>&nbsp;Ok. As we =
are supossed=20
to be watching at someone else code, it would be easier to write the=20
code<BR>&nbsp;in a way that everyone can easily interpret, for=20
example:<BR>-------------------------------------------------------------=
---------------------------<BR>&nbsp;"Rule=20
1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -All variables and properties =
must=20
begin in capital letters as=20
follows:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;=20
$Variable<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...if the =
variable or=20
propertie has two or more words, each one must begin the same way, as=20
follows:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
$MyVariable<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
$MySecondVariable<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...and =
never=20
like:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
$My_variable=20
or<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
$My_Second_Variable<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
...that will=20
be the way to name classes and functions (I MEAN WITH=20
UNDERSCORE)!<BR>---------------------------------------------------------=
--------------------------------<BR>&nbsp;"Rule=20
2"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - All "{" or "}" in a loop or =

function must begin and end in a new line,as follows:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
for("whatever")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
CODE-HERE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
}</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...and never =
like=20
this:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
for("whatever"){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
CODE-HERE;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...OR =
OTHER=20
VARIANT!<BR>-------------------------------------------------------------=
------------------------------<BR>"Rule=20
3"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -All scripts must begin with a long =
comment=20
at top as follows:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
#######################<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
#<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #&nbsp; Description, version, =
author,&nbsp;=20
etc...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
#<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
#<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #######################</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080=20
size=3D2>----------------------------------------------------------------=
---------------------------<BR>I=20
think this is a good idea and can be helpful in the near future! IF U =
don't=20
agree tell me why please!</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" color=3D#000080 size=3D2>The other 2 =
points should be=20
disscussed also, this is just my first clear opinion, please =
comments!<BR>See=20
u<BR>Andres</FONT></DIV></BODY></HTML>

------=_NextPart_000_0007_01C30B75.AB24A310--