Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    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?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: