[jQuery] Slightly OT: How to organize your site's javscript?

[jQuery] Slightly OT: How to organize your site's javscript?

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi everbody,
I've been using jQuery for a while and am pretty much in love with it -
as far as love for a JS library can go that is ; ).
But one of the things I recently tried to figure out for myself, is how
to organize ones Javascript. I mean having a JS file with hundreds of
stand-alone functions seems pretty messy, so there got to be something
better. I just did a <a
href="http://www.thinkingphp.org/2006/10/10/how-to-organize-your-cakephp-apps-javascript/">little
blog post</a>  writing about my current approach of having a globally
available Singleton class that allows to structure an application's
functionality in a hierarchy while not having to deal with JS scoping
issues (or let's say the lag of knowledge about it ^^). While I like
the approach, I would love to hear about other people's strategies. I'm
not looking for a concept that would work for any kind of applications,
but I would deeply appreciate your guys help on compiling a list /
starting a discussion of best practices and conventions you use in your
projects. Since my readers are mostly PHP coders and no real JS guru's
like many of you guys here, I decided to post this message on this list
to get the chance for both of these worlds to meet. So either comments
on this list or on the blog post would be appreciated and I will most
likely write a sum-up in a couple of days, pointing out the most
interesting insides. I'm especially interested in jQuery'ish solutions
that play well with the <a href="http://cakephp.org/">CakePHP framework</a>.
I hope this is not totally off topic / spam to you guys - otherwise I
apologize.
Best Regards,
Felix Geisendörfer
<div class="moz-signature">--
<small>--------------------------
<a href="http://www.thinkingphp.org">http://www.thinkingphp.org</a>
<a href="http://www.fg-webdesign.de">http://www.fg-webdesign.de</a>
</small></div>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/