Quantum Computing in JavaScript

rjray on 2002-10-24T21:21:28

A co-worker just showed me the following gem in a bit of JavaScript for one of our VoiceXML applications:

    if (value != "") {
        // Single line comment here
        if (value == "") {

I didn't replicate the comment, but the actual one is in fact just the one line. That means that someone (and we suspect this is the result of multiple developers trying to support on-going code) wrote the the comment and the second if test with the first one right in front of their eyes. Yay!


use the cvs blame command

ask on 2002-10-25T03:43:21


    $ cvs annotate filename.js :-)

  - ask