Spreadfirefox Dev Tips: Difference between revisions
Jump to navigation
Jump to search
(Created page with 'Spread Firefox wiki home') |
No edit summary |
||
| Line 1: | Line 1: | ||
[[Spreadfirefox|Spread Firefox wiki home]] | [[Spreadfirefox|Spread Firefox wiki home]] | ||
* Use [http://drupal.org/coding-standards PEAR coding style] | |||
* Comment your code. | |||
** Function definition blocks at the least | |||
** Inline comments for complex code, use your best judgment | |||
* Always put a bug # and descriptive comment about the changes in your SVN commit messages. | |||
* Don't embed HTML code in PHP code. | |||
** Define templates and keep presentation separate from logic code. | |||
* Don't touch the Drupal core. If you think you absolutely have to, OK it with another developer and document where and why you did so. | |||
* Don't push on Fridays or when you won't be around to verify the changes. | |||
=== How to anonymously download drupal from CVS === | |||
**cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-<TAG> drupal | |||
* How to checkout a contributed module from CVS | |||
**cvs co -r DRUPAL-<TAG> -d <CONTRIBUTED-MODULE> contributions/modules/<CONTRIBUTED-MODULE> | |||
* How to update drupal core or contributed module to a new release | |||
**cvs update -r DRUPAL-<TAG> | |||
=== Notes === | |||
#Please commit changes back to drupal.org wherever possible as it's important that we don't fork our distribution | |||
Revision as of 05:56, 30 March 2009
- Use PEAR coding style
- Comment your code.
- Function definition blocks at the least
- Inline comments for complex code, use your best judgment
- Always put a bug # and descriptive comment about the changes in your SVN commit messages.
- Don't embed HTML code in PHP code.
- Define templates and keep presentation separate from logic code.
- Don't touch the Drupal core. If you think you absolutely have to, OK it with another developer and document where and why you did so.
- Don't push on Fridays or when you won't be around to verify the changes.
How to anonymously download drupal from CVS
- cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-<TAG> drupal
- How to checkout a contributed module from CVS
- cvs co -r DRUPAL-<TAG> -d <CONTRIBUTED-MODULE> contributions/modules/<CONTRIBUTED-MODULE>
- How to update drupal core or contributed module to a new release
- cvs update -r DRUPAL-<TAG>
Notes
- Please commit changes back to drupal.org wherever possible as it's important that we don't fork our distribution