maya90 — 2013-09-20T10:06:36-04:00 — #1
some job descriptions now include:
[quote]Applying OOP principles to jQuery development[quote]
would appreciate being enlightened here a bit.. I'm very good with DOM-scripting with jQuery.. and also have basic OO, but would love to see some elaboration here, maybe code samples...
jeff_mott — 2013-09-20T11:51:11-04:00 — #2
I don't think I would be quite sure what this employer was looking for either. jQuery of course manipulates lots of objects, especially DOM objects, but the vast majority of jQuery code is written in a procedural style. There's no object type hierarchy or composition. There's just the one, monolithic jQuery object type. Not even jQuery.extend does prototypal inheritance. It actually just copies properties from one object into another.
If you want to see what real OOP principles looks like, you should check out other libraries such as YUI, Dojo, or ExtJS.
jeff_mott — 2013-09-20T12:04:36-04:00 — #3
maya90 — 2013-09-20T19:49:23-04:00 — #4
yes I thought someone would say something like this...
(yes they could be referring to plain JS instead of jQ, like other responder said, but if it's a job description for a web developer one would think they'd get the terminology correct, right? ;~))