jQuery Concrete: Support for ConcreteUI programming
Posted on November 2, 2009, Filled under JQuery,
Bookmark it
Thanks for visiting our website! We regularly publish posts like this one. If you are interested in receiving the latest updates as soon as they are posted, please consider subscribing to the RSS feed or to our e-mail newsletter.
Hamish Friedlander’s JQuery Concrete tries to provide a new model of code organization. It intends to be a replacement for Object Oriented Programming that is focused on adding functions to groups of DOM elements based on the content and structure of those DOM elements. This merging of the model and view layer may seem weird initially, it can give very powerful results.
Basic Usage Example
Given this DOM example:
<body>
<div class="internal_text">Internal text</div>
<div class="attribute_text" rel="Attribute text"></div>
<div>some text</div>
</body>
And this concrete function:
$('.internal_text').concrete({
foo: function(){ console.log(this.text()); }
});
$('.attribute_text').concrete({
foo: function(){ console.log(this.attr('rel')); }
});
Then the following call:
$('div').foo();
The following result will be logged to the console:
Internal text Attribute text
We’re standing on the shoulders of giants here – combining ideas from Prototype’s behaviour & lowpro and jQuery’s effen & livequery (who themselves stole ideals from Self’s Morphic UI and others), but extending & combining the concepts presented in those tools to provide a complete alternative to traditional OO concepts – self-aware methods, inheritance, polymorphisim and namespacing without a single class definition.
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- November 2, 2009
- article by Gabriel C.
- 1 comment
Sponsors
Related Posts
-
jQuery Lint: Stay notified of the incorrect usages of jQuery’s APIat January 19, 2010
-
Create pretty graphs with jQuery TufteGraph Pluginat December 31, 2009
-
Style your markup: Brosho ‘Design in the Browser’ jQuery Pluginat January 30, 2010
-
Stylish GMail-like buttons: JQuery styledButton Pluginat January 28, 2010
-
Flexible and Expandable Form Validator: Ketchup jQuery Pluginat February 14, 2010


One Reply to "jQuery Concrete: Support for ConcreteUI programming"
November 3, 2009 at 1:21 AM
[...] the original post: JQuery Concrete: Support for ConcreteUI programming SHARETHIS.addEntry({ title: "JQuery Concrete: Support for ConcreteUI programming", url: [...]