Note: This is a tryout of the proposed pre-lesson documentation for drupal-dojo. Please add other resources or delete those that are irrelevant.
Note: Thanks for starting this off! -josh
Writing Clean Safe Code
- Drupal Coding Standards (main node).
- Issues related to documentation of coding standards.
- Coder module
- Writing secure code
- Handling text/user-input securely
- When to use db_rewrite_sql
Contributing Back To Drupal Project: Reviewing Patches
With the 5.0 RC2 coming out any minute now, I'd love to cover this so that dojo members can contribute to getting the release out in time for Drupal's birthday on the 14th!
Other coding standards
- PEAR coding standards. (referenced in the Drupal coding standards)
- GNU Coding Standards
Drupal Development Sandbox
In order to follow through with the coding and configuration examples, each of us should set up a Drupal Development Sandbox installation where we can play happily.
Some of us might want two Sandboxes, one for Drupal 4.7 experimentation (if we are working on 4.7 projects) and another for Drupal 5.x, but the lesson plan seems to follow 5.0, so a 5.0-rc2 installation is probably what most people are setting up for this.
The installation should include, at a minimum, the following modules:
- Content Construction Kit
- Views
- Devel
- Wouldn't hurt to have the code.moule from above installed, but not necessary.
Related reading?
- Cook, C. (2007, January 9). How to Grok Web Standards. A List Apart. http://alistapart.com/articles/grokwebstandards
- Li, X. and Prasad, C. (2005). Effectively teaching coding standards in programming. In Proceedings of the 6th Conference on information Technology Education (Newark, NJ, USA, October 20 - 22, 2005). SIGITE '05. ACM Press, New York, NY, 239-244. DOI= http://doi.acm.org/10.1145/1095714.1095770
- Mytton, D. (2004, September 23). Why You Need Coding Standards. Sitepoint. http://www.sitepoint.com/article/coding-standards