|
|
Choosing A Webhost: |
r3439 - Archetypes/branches/release-1_4-branch/docs: msg#00034web.zope.plone.archetypes.cvs
Author: tiran Date: Mon Jan 17 12:18:44 2005 New Revision: 3439 Added: Archetypes/branches/release-1_4-branch/docs/CHANGES_AT14.txt (contents, props changed) Archetypes/branches/release-1_4-branch/docs/CodingRules.txt (contents, props changed) Log: Added CHANGES_AT14.txt which will describe the changes from AT 1.3 to AT 1.4 and how to migrate your products to AT 1.4 CodingRules describes how to code nicely :) Added: Archetypes/branches/release-1_4-branch/docs/CHANGES_AT14.txt ============================================================================== --- (empty file) +++ Archetypes/branches/release-1_4-branch/docs/CHANGES_AT14.txt Mon Jan 17 12:18:44 2005 @@ -0,0 +1,3 @@ +XXX memo list -> nice list + +* validation package changes \ No newline at end of file Added: Archetypes/branches/release-1_4-branch/docs/CodingRules.txt ============================================================================== --- (empty file) +++ Archetypes/branches/release-1_4-branch/docs/CodingRules.txt Mon Jan 17 12:18:44 2005 @@ -0,0 +1,40 @@ +=========================== +Coding rules for Archetypes +=========================== + +--------- +Read this +--------- + +http://www.python.org/peps/pep-0008.html +http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ZopePythonNamingConventions +http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ClassesAttributesMethods +http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/CodeOptimization + +-------- +Overview +-------- + +* Write unit tests for new features or bugs + +* Don't use the string module - use string methods instead + +* Use startswith/endswith instead of slicing + +* Use isinstance(egg, str) instead of type(egg) is StringType + +* Use interfaces instead of isinstance() or issubclass() if possible + +* Follow the naming convention mentioned in PEP 008 and + ZopePythonNamingConventions + +* Don't create strings by adding them - instead use the list.append(str), + ''.join(list) trick + +* Avoid creating large lists in memory + +* Avoid loading lot's of objects from ZODB at once - use objectIds() instead + objectValues() + +* Avoid waking objects from their ghost state - use the catalog and brains if + possible ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | r3436 - in Archetypes/branches/release-1_4-branch: . Extensions bases docs registries storages tests, tiran |
|---|---|
| Next by Date: | r3437 - validation/trunk, bcsaller |
| Previous by Thread: | r3436 - in Archetypes/branches/release-1_4-branch: . Extensions bases docs registries storages tests, tiran |
| Next by Thread: | r3437 - validation/trunk, bcsaller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |