
When you're writing code, ask yourself if someone else could come in behind you and understand it. If not, refactor the code and/or add comments to explain what you're doing.

switch (selectedTab) {
case (Tab.SITES):
//do something for sites
case (Tab.CATEGORY):
//do something for category
case (Tab.DEMOGRAPHIC):
//do something for demographics
case (Tab.ALL_SITES):
//do something for all sites
}
switch (selectedTab) {
case (Tab.SITES):
renderSitesTab();
case (Tab.CATEGORY):
renderCategoryTab();
case (Tab.DEMOGRAPHIC):
renderDemographicsTab();
case (Tab.ALL_SITES):
renderAllSites();
}
OS version:
uname -a
cat /etc/redhat-release
Apache version:
httpd -v
/usr/local/apache/bin/httpd -version
Jrun version
For JRun 3.0, look at logs
/opt/jrun/bin/jrun -version
Perl
/usr/sbin/perl -version (-v works too)
Sendmail
/usr/lib/sendmail -d0.1 -bt
cat /proc/version