Re: Coding Standards

2007-08-31 Thread Laurent Pointal
[EMAIL PROTECTED] a écrit :
 'Good code' is code that works, is bug free, and is readable and
 maintainable. Standards need to be followed for coding. Read more...
 
 http://brsx.co.uk/SWtesting/FAQs/FAQs012.asp

You misstyped your URL and referenced a C++ related document, for Python 
its here:

http://www.python.org/dev/peps/pep-0008/

;-)
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding standards without control?

2006-12-06 Thread Soni Bergraj
 Python makes coding standards obsolete;)
 But Python has the advantage, that your coding standards can concentrate on
 the important things and skip most of the formatting rules, that are often
 part of other languages coding standards.

Better to say, almost obsolete, i guess :D

-- 
Soni Bergraj
http://www.YouJoy.org/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding standards without control?

2006-12-05 Thread Soni Bergraj
editormt wrote:
 A majority of the participating organisations have coding standards...
 and a majority does not control them ;o) What is the situation at your
 location? Does this lack of control really hurt?

A Foolish Consistency is the Hobgoblin of Little Minds

from: http://www.python.org/dev/peps/pep-0008/

Python makes coding standards obsolete;)

-- 
Soni Bergraj
http://www.YouJoy.org/
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding standards without control?

2006-12-05 Thread Stephan Kuhagen
Soni Bergraj wrote:

 editormt wrote:
 A majority of the participating organisations have coding standards...
 and a majority does not control them ;o) What is the situation at your
 location? Does this lack of control really hurt?
 
 A Foolish Consistency is the Hobgoblin of Little Minds
 
 from: http://www.python.org/dev/peps/pep-0008/
 
 Python makes coding standards obsolete;)

No, it does not. If you have a team of, say, 50 programmers, everyone
following his own mind-to-ascii-mapping, you are very soon in a situation,
where code is completely unmaintainable.

But Python has the advantage, that your coding standards can concentrate on
the important things and skip most of the formatting rules, that are often
part of other languages coding standards.

To the control part: this is where Python comes in for general coding
standards. Many rules of coding standards can be tested automatically and
Python is a good choice for text processing and checking source code
against the rules of a coding standard. I wrote a Python package for a
subset of our coding standards and that is a very useful tool to check some
100k files.

Regards
Stephan
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding Standards (and Best Practices)

2005-04-27 Thread Sylvain Thenault
On Tue, 26 Apr 2005 11:02:33 -0700, Trent Mick wrote:

 [Isaac Rodriguez wrote]
 Hi,
 
 I am fairily new to Python, but I am really liking what I am seeing. My team 
 is going to re-design some automation projects, and we were going to use 
 Python as our programming language. One of the things we would like to do, 
 since we are all new to the language, is to define a set of guidelines and 
 best practices as our coding standards.
 
 Does anyone know where I can get some information about what the community 
 is doing? Are there any well defined guidelines established?
 
 http://www.python.org/peps/pep-0008.html

and you may also be interested by a tool such as pylint[1] which help to
enforce coding standards on your code base. Most of the styles suggested
in pep 8 are checked by pylint, using its default configuration.

[1] http://www.logilab.org/projects/pylint/

-- 
Sylvain Thénault   LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding Standards (and Best Practices)

2005-04-26 Thread Trent Mick
[Isaac Rodriguez wrote]
 Hi,
 
 I am fairily new to Python, but I am really liking what I am seeing. My team 
 is going to re-design some automation projects, and we were going to use 
 Python as our programming language. One of the things we would like to do, 
 since we are all new to the language, is to define a set of guidelines and 
 best practices as our coding standards.
 
 Does anyone know where I can get some information about what the community 
 is doing? Are there any well defined guidelines established?

http://www.python.org/peps/pep-0008.html


Cheers,
Trent

-- 
Trent Mick
[EMAIL PROTECTED]
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Coding Standards (and Best Practices)

2005-04-26 Thread Jp Calderone
On Tue, 26 Apr 2005 14:04:45 -0400, Isaac Rodriguez [EMAIL PROTECTED] wrote:
Hi,
I am fairily new to Python, but I am really liking what I am seeing. My team
is going to re-design some automation projects, and we were going to use
Python as our programming language. One of the things we would like to do,
since we are all new to the language, is to define a set of guidelines and
best practices as our coding standards.
Does anyone know where I can get some information about what the community
is doing? Are there any well defined guidelines established?
 One such document:
   http://python.org/peps/pep-0008.html
 Jp
--
http://mail.python.org/mailman/listinfo/python-list


Re: Coding Standards (and Best Practices)

2005-04-26 Thread Terry Reedy

Isaac Rodriguez [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Does anyone know where I can get some information about what
 the community is doing? Are there any well defined guidelines 
 established?

Besides PEP8, there is also the library code itself.  When reading that 
though, keep in mind that different modules were written by different 
people at different times.  Some were written before PEP8.

TJR
] 



-- 
http://mail.python.org/mailman/listinfo/python-list