Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

[PEPr] +1 for System::System_Serial
Justin Patrin (http://pear.php.net/user/justinpatrin) has voted +1 on the pr
oposal for System::System_Serial.

Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=149
Vote information:
http://pear.php.net/pepr/pepr-vote-...le=justinpatrin

This vote is conditional. The condition is:

Strings should use ', not " if they have no replacements within them (backsl
ash expressions like \n or variables). It requires slightly less parsing and
 makes it clear that the string is literal.

Comments should be tabbed according to CS. If there is nothing in CS specifi
cally about this, the / should be level with the code it's commenting, the *
 should be one more space in as should the */. Like this:

/**
*
*/
function foo() {
}

NULL should be null (I believe)

Function definitions should use the one true brace style:

function ($arg)
{
//code
}

--
Sent by PEPr, the automatic proposal system at http://pear.php.net

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
10-01-04 08:56 PM


Re: [PEPr] +1 for System::System_Serial
On 1 Oct 2004 17:31:28 -0000, Justin Patrin <papercrane@reversefold.com> wrote:
>
> Justin Patrin (http://pear.php.net/user/justinpatrin) has voted +1 on the 
proposal for System::System_Serial.
>
> Proposal information:
> http://pear.php.net/pepr/pepr-proposal-show.php?id=149
> Vote information:
> http://pear.php.net/pepr/pepr-vote-...le=justinpatrin
>
> This vote is conditional. The condition is:
>
> Strings should use ', not " if they have no replacements within them (back
slash expressions like \n or variables). It requires slightly less parsing a
nd makes it clear that the string is literal.
>
> Comments should be tabbed according to CS. If there is nothing in CS speci
fically about this, the / should be level with the code it's commenting, the
 * should be one more space in as should the */. Like this:
>
>     /**
>
>      *
>
>      */
>
>     function foo() {
>
>     }
>
> NULL should be null (I believe)
>
> Function definitions should use the one true brace style:
>
> function ($arg)
>
> {
>
>     //code
>
> }
>

Please ignore the extra newlines. Is this a Pepr bug?


--
paperCrane --Justin Patrin--

Report this thread to moderator Post Follow-up to this message
Old Post
Justin Patrin
10-01-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Pear Developers archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:12 PM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.