[r175]: site / standards / naming.html  Maximize  Restore  History

Download this file

54 lines (50 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>YaBB 3 - Open source forum software</title>
<link type="text/css" rel="stylesheet" href="../site.css" />
</head>
<body>
<div id="header">
YaBB 3
<span class="subheader">open source forum software</span>
</div>
<div id="menu">
<ul>
<li><a href="../index.html">Home</a></li>
<li class="curpage"><a href="../standards.html">Coding Standards</a></li>
<li><a href="../roadmap.html">Project Roadmap</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="../source.html">Browse SVN</a></li>
<li><a href="https://sourceforge.net/pm/?group_id=9008">Task Tracker</a></li>
<li><a href="http://www.yabbforum.com/team.php">Team</a></li>
</ul>
</div>
<div id="content">
<p><a href="../standards.html">&lt;&lt; Back</a></p>
<h2>Variables</h2>
<ul>
<li>Variables should be named descriptively. The length of the names should be somewhat
proportional to their scope. For example, <strong>$a</strong> is fine for a custom sort block, but
not as a module-scoped variable.</li>
<li>Use <em>UPPER_CASE</em> for globals and constants. Use <em>CamelCase</em> for module names. Use
<em>lower_case</em> in all other situations.</li>
</ul>
<div class="clearfix"></div>
</div>
<div id="footer">
<ul>
<li><a href="../index.html">Home</a></li>
<li class="curpage"><a href="../standards.html">Coding Standards</a></li>
<li><a href="../roadmap.html">Project Roadmap</a></li>
<li><a href="documentation.html">Documentation</a></li>
<li><a href="../source.html">Browse SVN</a></li>
<li><a href="https://sourceforge.net/pm/?group_id=9008">Task Tracker</a></li>
<li><a href="http://www.yabbforum.com/team.php">Team</a></li>
</ul>
</div>
<div id="copy">Copyright &copy; 2009 Yet another Bulliten Board. All rights reserved.</div>
<div class="clearfix"></div>
</body>
</html>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks