Proper way of initializing jQuery

The best way to ensure the factory method ($) is recognized is to use:
<code>(function ($){}(jQuery) )</code>rather than <code>(function (){})</code>