Bình loạn trong chương trình (máy tính)

Bên Stackoverflow có câu hỏi: “What is the best comment in source code you have ever encountered?” Dưới đây là vài câu trả lời.

Nếu bạn không cười lăn ra đất thì bạn nên chuyển sang làm địa ốc, làm máy tính không thích hợp với bạn.

#define if while
//When I wrote this, only God and I understood what I was doing
//Now, God only knows
//
// Dear maintainer:
//
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
//
// total_hours_wasted_here = 16
//
// sometimes I believe compiler ignores all my comments
Exception up = new Exception("Something is really wrong.");
throw up;
// I dedicate all this code, all my work, to my wife, Darlene, who will
// have to support me and our three children and the dog once it gets
// released into the public.
#define TRUE FALSE //Happy debugging suckers
// I am not responsible of this code.
// They made me write it, against my will.

Chủ đề : Lập trình, Vui - Giải Trí and tagged , . Bookmark the permalink. Trackbacks are closed, but you can post a comment.

3 Comments

  1. Duy
    Posted 23/08/2010 at 9:13 am | Permalink

    // This code does not work in some cases

  2. Huan
    Posted 24/08/2010 at 2:42 am | Permalink

    Thôi chết, em đọc mà không cười lăn được, em có nên chuyển sang học kinh tế không?

  3. Posted 25/08/2010 at 10:05 am | Permalink

    Tôi chưa bao h được đọc những comment “vui tính” như trên cả. Tuy nhiên trong trang cá nhân của tôi, ở mục “Các thuật ngữ được tìm kiếm” (để tìm ra blog của bạn), có lần tôi phát hiện ra ai đấy đã search: “download btqhtt.edu.tf” :D

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>