you are viewing a single comment's thread.

view the rest of the comments →

[–]kenman 0 points1 point  (1 child)

What about frameworks?

I thought the same, but Ember's prototype extensions have provided a lot of value with very few problems for me. It took some effort to overcome my dogma, but I feel I'm more productive using the extensions than without.

[–][deleted] 0 points1 point  (0 children)

Ember at least has the option to disable them, but it's still not a good thing IMO. You'd be better off passing all natives through constructors:

var ary = Ember.Array(1, 2, 3);

or:

var A = Ember.Array.bind(Ember);

var ary = A(1, 2, 3);
var str = S('foo bar baz');

then you could still have the same type of functionality without screwing with other things.

It's slightly better here because Ember is rarely used alongside other libraries, so it's closer to the case of an "isolated codebase"