Alex Rivera | Logout

How to name variables

Asked 2008-10-15T03:24:52.310
50
  • What rules do you use to name your variables?
  • Where are single letter vars allowed?
  • How much info do you put in the name?
  • How about for example code?
  • What are your preferred meaningless variable names? (after foo & bar)
  • Why are they spelled "foo" and "bar" rather than FUBAR
Edit
Report

1 Answer

54
function startEditing(){
   if (user.canEdit(currentDocument)){
      editorControl.setEditMode(true);
      setButtonDown(btnStartEditing);
   }
 }

Should read like a narrative work.

answered 2008-10-15T03:38:10.523

Your Answer