views:

733

answers:

1

Hi,

I recently came across DUI (diggs user interface) which implements jquery and gives you the ability to create classes, with jquery etc.

I can't seem to find any reviews.. i saw one comment to say it wasn't up to much.

I was wondering what everyone else is using with regards to separation of concerns with jquery

Do you use some kind of implementation of class, inheritance and namespaces

Any info really appreciated.

A: 

I thought this was a pretty elegant way to do things, and there are worse ways to go than following John Resig:

As far as namespaces and whatnot, I would keep it flat. Generally, you will not run into a lot of collisions unless you're trying to crowd into the $ function.

altCognito