WTF saw the funniest joke of all time.

Source: Internet
Author: User

See Http://thedailywtf.com/forums/65091/ShowPost.aspx in the original

Here is the code written by the good-hearted programmer.

/* This piece of code sucks. It's really bad. I honestly admit that my code sucks. If you are an employee of Intertrode Communications Corporation *. I am very, very sorry that you have to maintain this code. I'm going to rewrite this piece of code tomorrow, but I'm forgetful. I often forget the code I wrote.
 This code, for example, is the product of my forgetfulness. * * The ins and outs of things are like this.
 I can't remember. AccountId (account number) Why this variable has no value set. * I checked the code again and again. Just don't understand. Now I have to leave. Fortunately, I found that I could catch accountid from the debug log (Debugging * log). Maybe it's just that the problem has been fixed.
 Figure out when AccountId is emptied. * * Finally, please accept my sincere apology again * * * if ((AccountId = = NULL) | |
     (AccountId = = "") | | (serversesion["AccountId"] = = NULL) | |
(serversesion["AccountId"] = = ""))
  {//open session logs FileHandle file = F_open (Log_path + "/sessionlog-" + Log_file_date + ". LOG", 1);

    while (file! = NULL) {tstring line = f_readline (file);
      Look for IP and Changereg if ((Sfind (line,remote_addr)! =-1) && (Sfind (line, "Changereg")! =-1)) { 0000-00-00 00:00/accountmaint/changereg/? accountid=123456 255.255.255.255 ...//* AccountId = subst
    R (Line, 52, 6); } if (f_eof (file)) {f_close (file); file = NULL; }
  }

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.