Editing Coding Standards

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
βˆ’
If you commit changes or submit patches to WeBWorK, make sure your work conforms with these standards. (This is not a complete list, just the things that have caused problems in the past.)
+
If you commit changes or submit patches to WeBWorK, make sure you're work conforms with these standards. (This is not a complete list, just the things that have caused problems in the past.)
   
 
Some of these standards are motivated by readability, some by the line-oriented nature of CVS, some by maintainability. (And some by Sam Hathaway's personal preferences and pet peeves.)
 
Some of these standards are motivated by readability, some by the line-oriented nature of CVS, some by maintainability. (And some by Sam Hathaway's personal preferences and pet peeves.)
Line 77: Line 77:
 
$xyzzy, $fizzy, $silly, \@wakakaka, $lalala, $webwork);
 
$xyzzy, $fizzy, $silly, \@wakakaka, $lalala, $webwork);
   
βˆ’
And if you've got hashes going, and you format them like this, you should probably leave out those spaces to save space. I like to keep the space after the comma even here, but I'm not married to it. Here's a real-life example:
+
And if you've got hashes going, and you format them like this, you should probably leave out those spaces to save space. I like to keep the space after the comma evern here, but I'm not married to it. Here's a real-life example:
   
 
CGI::table({-border=>"0", -cellpadding=>"10", cellspacing=>"10"},
 
CGI::table({-border=>"0", -cellpadding=>"10", cellspacing=>"10"},

Please note that all contributions to WeBWorK_wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see The WeBWorK Project wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)