|
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 little blog post 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 CakePHP framework. I hope this is not totally off topic / spam to you guys - otherwise I apologize. Best Regards, Felix Geisendörfer |
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
