title: Function Parameter best practice
body: <p>I have question regarding the use of function parameters.</p>
  
  <p>In the past I have always written my code such that all information needed by a function is passed in as a parameter. I.e. global parameters are not used.</p>
  
  <p>However through looking over other peoples code, functions without parameters seem to be the norm. I should note that these are for private functions of a class and that the values that would have been passed in as paramaters are in fact private member variables for that class.</p>
  
  <p>This leads to neater looking code and im starting to lean towards this for private functions but would like other peoples views.</p>
  
  <p>E.g.  </p>
  
  <pre><code>Start();  
  Process();  
  Stop();  
  </code></pre>
  
  <p>is neater and more readable than:  </p>
  
  <pre><code>ParamD = Start(paramA, ParamB, ParamC);  
  Process(ParamA, ParamD);  
  Stop(ParamC);  
  </code></pre>
  
  <p>It does break encapsulation from a method point of view but not from a class point of view.</p>