Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

r3439 - Archetypes/branches/release-1_4-branch/docs: msg#00034

web.zope.plone.archetypes.cvs

Subject: r3439 - Archetypes/branches/release-1_4-branch/docs

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>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation