On 7/20/06, Brian Feliciano
<[EMAIL PROTECTED]> wrote:
Anyway, my base is still going to be prototype. But is there any difference/problem if i use the yui namespacing and proceed with object notation?
something like:
var ObjectName = function (){
return {
propertyOne: propertyValue,methodOne: function () {},
sub: {},
}
}();
ObjectName.sub.ClassOne = Class.create();
ObjectName.sub.ClassOne.prototype = {
//do some stuff here
};
ObjectName.sub.ObjectTwo = {
// do more stuff here..
};
thanks for helping out a newbie.On 7/21/06, Hill, Greg <[EMAIL PROTECTED] > wrote:I'd reckon less than half the list are rails developers, so no worries. If I had to guess, without having concrete numbers, I'd say YUI is likely faster in general. Procedural programming is usually faster than object-oriented programming. That said, Prototype is a lot more flexible and gives you a lot of handy methods for writing concise code. So, I go with prototype, but your situation might be different.
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs