News for hackers. Stuff that matters.
Re:JavaScript Tips by WilliamLP on Thursday May 06, 2010 @10:06AM (#1324420)

    var queue = [];
    queue.add = queue.push;
    queue.remove = queue.shift;
Oh god no! I pray I don't ever have to work with this guy after he learns about prototypes.

Also, he is using "shift" and requires binary trees, but makes no mention whatsoever of the performance characteristics?

There are no comments on this comment yet.