News for hackers. Stuff that matters.
Re:MooTools: The Open Source Magic Behind Cloudera Desktop UI by jhammerb on Monday October 19, 2009 @01:40PM (#890508)
Re:MooTools: The Open Source Magic Behind Cloudera Desktop UI by vicaya on Monday October 19, 2009 @02:24PM (#890620)
Well, the facts mentioned in the post just confirms my judgment why MooTools/Prototype are bad: monkey-patching existing objects and polluting global namespace like no tomorrow, all in the name of object-orientation in a perfectly capable language that's prototype based and functional.
Re:MooTools: The Open Source Magic Behind Cloudera Desktop UI by anutron on Monday October 19, 2009 @07:51PM (#891373)
If you can't be bothered to author your code using only ONE JavaScript library, then yes, name space "pollution" is not very friendly. But if you write all your code using one framework, then the name space is yours to use, which to me is not pollution. It's only a pain when you want to use several frameworks, and the only reason I can imagine to to do that is to use plugins from more than one. That's laziness if you ask me; rather than ask your users to download two libraries, you should author your own version for your framework of choice.
Re:MooTools: The Open Source Magic Behind Cloudera Desktop UI by ilyak on Monday October 19, 2009 @04:46PM (#890963)
Sorry, but we do want to use actual useful objects (including built-in types) no matter what you'd say.

It's viable, it's useful, it's done, it works.

Re:MooTools: The Open Source Magic Behind Cloudera Desktop UI by vicaya on Monday October 19, 2009 @06:47PM (#891275)
That's a fine reason, as long as you don't care about being friendly for integration/customization/embedding with external sources.
Re:MooTools: The Open Source Magic Behind Cloudera Desktop UI by ilyak on Tuesday October 20, 2009 @04:18AM (#892016)
Should I?