Is it a good thing create jquery plugins
<p>So let's say i'm building a huge website, something close to facebook size, and i'm using jquery for most of the client side stuff, now obviously there is probably going to be at least 4k lines of code and thousands of ajax request etc..</p>

<p>So my question is fairly simple, what is the best way to build my jquery based scripts, should i create plugins for things that im going to use multiple times or should i just use functions  and call them whenever i need?</p>

<p><strong>EDIT</strong> Well maybe i overdid it with <code>facebook size</code> but it's going to be pretty big anyways..</p>
