轻松一刻(Show me the code)

博客:fearless’s blog

IT名言

Talk is cheap.Show me the code——废话少说,放码过来

Stay hungry Stay foolish——求知若饥,虚心若愚

Go big or go home——要么牛逼要么滚蛋

Done is better than perfect——完成的比完美更好

趣味注释

只有上帝知道

  • // When I wrote this, only God and I understood what I was doing
    // 当我写这行代码的时候,只有上帝和我知道我在写什么
    // Now, God only konws
    // 现在,只有上帝知道了
    

相隔时空的diss

  • // somedev1 - 6/7/02 Adding temporary tracking of Login screen
    // somedev1 - 6/7/02 添加对登录屏幕的暂时追踪功能
    // somedev2 - 5/22/07 Temporary my ass
    // somedev2 - 5/22/07 暂时个屁
    

喝大了

  • // Drunk, fix later
    // 喝大了,等会再改bug
    

别碰,有魔法

  • // Magic. Do not touch
    // 别碰,有魔法
    

开心吗?

  • // Happy debugging suckers
    // 开森地调bug吧,傻x
    

糊弄过去算了

  • /**
     * You may think you know what the following code does
     * But you don't. Trust me
     * Fiddle with it, and you'll spend many a sleepless night cursing the moment you thought you'd be clever 
     * enough to "optimize" the code below
     * Now close this file and go play with something else
     */
    /**
     * 你可能觉得自己看懂下面的代码了
     * 然而你并没有,相信我
     * 糊弄过去算了,不然你会好多个晚上睡不着觉
     * 嘴里骂着这段注释,觉得自己很聪明
     * 真能“优化”下面的代码
     * 现在关上文件,去玩点别的吧
     */
    

你懂的

  • // This code sucks, you know it and I know it
    // 这代码真是烂透了,你懂的,我也懂的
    

先往下看

  • // Move on and call me an idiot later
    // 先往下看,后面再喊我傻x
    

好怕怕

  • // I am not sure if we need this, but too scared to delete
    // 我也不确定我们到底需不需要这个,但是删了又特害怕
    

到底要怎样

  • /** 
     * To understand recursion, see the bottom of this file
     * At the bottom of the file:
     * To understand recursion, see the top of this file
     */
    /** 
     * 要想理解递归,移步本文件底部
     * 然后翻到文件底部:
     * 要想理解递归,移步本文件顶部
     */
    

本人对本代码概不负责

  • // I am not responsible of this code
    // 本人对本代码概不负责
    // They made me write it, against my will
    // 他们让我写的,非本人自愿
    

我偏不

  • // No comments for you
    // 就不给你们写注释
    // It was hard to write
    // 这代码写得这么费劲
    // So it should be hard to read
    // 所以你们读着也得费劲
    

没有错,不好用就不是我写的

  • // I this code works, it was written by Paul Dilascia. If not, I don't know who wrote it
    // 如果这段代码跑的通,那就是Paul Dilascia写的。要是跑不通,那我就不知道是谁写的了
    

没毛病

  • // This formula is right, work out the math yourself if you don't believe me
    // 这公式没毛病,你要不信自己去算
    

就问你服不服

  • // Remove this if you wanna be fired
    // 要是你想被炒鱿鱼,那就删吧
    

好好活着

  • // If I from the future read this I'll back in time and kill myself
    // 如果将来读到这行代码,我会穿越回来,然后一死以谢天下
    

谨以此代码献给我的妻子

  • // 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
    // 谨以此代码和我所有的工作献给我的老婆Darlene,这段代码要是放出去,她就得照顾我和三个孩子还有狗了
    

我读书少,别骗我

  • // If this comment is removed the program will blow up
    // 别删这行注释啊,删了程序就崩了
    

你可能看不懂这个

  • // You are not expected to understand this
    // 你不可能看懂这个
    

新人默默的在后面增加一行注释:浪费在这里的总时间=48h

  • /**
     * 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 = 48
     */
    /**
     * 亲爱的维护者:
     *
     * 如果你尝试了对这段代码进行“优化”,然后意识到那是一个糟糕的错误,请增加下面的计数器,作为对下个有相同想法家伙的一个
     * 警告:
     * 
     * 浪费在这里的总时间 = 48小时
     */
    

公众号:
在这里插入图片描述

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

fearIess233

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值