title: Self executing functions with AngularJS
body: <p>What are the benefits of using self executing functions with a framework, such as, Angular?</p>
  
  <p>I am new to Angular but my understanding thus far is the module-based design gives most of the benefits that the Self executing function gives.  What am I missing? Is it just a matter of style?</p>
  
  <p><a href="https://github.com/bennadel/AngularJS-Routing/blob/master/assets/app/controllers/home/home-controller.js" rel="noreferrer">Here is an example by Ben Nadel.</a> I really like the style but want to understand if there are any gains by writing Angular code this way or if it is mostly a style choice.</p>