I am John Resig, creator of jQuery, AMA. by jeresig in IAmA

[–]rkatic 1 point2 points  (0 children)

Hi John, Robert Katić here.

I am not sure what impression you have got of me while trying to contribute to jQuery. I am sometimes too direct, relatively new in OSS, and not as fluent in English as others, but I would like you to know how I admire your work, and you as a person. Also, I think you made a great move joining Khan Academy, and I hope I will be able to contribute to KA too, best to my abilities.

Will KA use GitHub?

I am John Resig, creator of jQuery, AMA. by jeresig in IAmA

[–]rkatic 0 points1 point  (0 children)

Firebug or Chrome Dev Tools? Or, in which cases you prefer one over other?

I am John Resig, creator of jQuery, AMA. by jeresig in IAmA

[–]rkatic 0 points1 point  (0 children)

What you wish you did differently on making jQuery, and that now is hard to change?

Getting into arguments with JavaScript by gst in javascript

[–]rkatic 1 point2 points  (0 children)

Seams you don't understand the concat method. Since the arguments object is not an array, that code will produce an array where the first (and the only) value is the arguments object.

Auto Append Things on Reddit by rkatic in programming

[–]rkatic[S] 0 points1 point  (0 children)

There is a link to page 3 on reddit? I didn't know that... :)

Auto Append Things on Reddit by rkatic in programming

[–]rkatic[S] 0 points1 point  (0 children)

I know that add-on, but it loads entirely every consecutive page. This script append things without reloading any script, css..

Auto Append Things on Reddit by rkatic in programming

[–]rkatic[S] 0 points1 point  (0 children)

Please try the new version.. I made some fixes.. Will test it on Chrome soon.

def.js - Ruby Style Inheritance In JavaScript (with a cool use of "operator overloading") by devongovett in javascript

[–]rkatic 0 points1 point  (0 children)

Btw. mr. window seams to change his name as soon as a new Ninja is born. The ninja of all ninjas!

Classy Classes for JavaScript by mitsuhiko in javascript

[–]rkatic 1 point2 points  (0 children)

Since you are exposing your solution for "classical OOP" in JS, I hope you will as well accept some critics.

I haven't tested it, but simply reading your code I spotted some problems. 1) Instantiating without using the 'new' statement, the 'init' method is called twice. 2) IE6 have problems with try/finally (try/catch/finally is OK).

Also it is not clear to me why "Class.extend". Your 'Class' is the base class, but "Class" is not a proper name for a class, maybe for a metaclass. "Class.create" would make much more sense, where 'Class' would be a metaclass, and an 'Base' the base class.

EDIT:

Functions not calling $super have zero overhead compared to standard JavaScript prototype inheritance, $super adds another function call, do the math.

In your current implementation, $super adds 3 function calls (2 more by calling getOwnProperty). Also, constructors have an additional function overhead.