Write Once, Paste Everywhere



  • Found this little gem in a chunk of "shared" license validation code that obviously should have been factored out into a common library, but wasn't:


    /*
        <Application> doesn't care about <condition>, but anyone copy-pasting this code should include this:
        =============================================================================

            if ( <condition> )
            {
                etc.
            }

    */
     



  • And I'm sure the author of that code was like "At least I put the comment in there, so why are you complaining?"

     


Log in to reply