博客
关于我
注释,今晚我不关心代码,我只想你
阅读量:439 次
发布时间:2019-03-06

本文共 1925 字,大约阅读时间需要 6 分钟。

友情提示,关注下方公众号,回复[资料]

可免费获取我的转行学习资料

世上本没有注释,垃圾代码写多了,也便有了注释。

注释仿佛是依赖于代码存在的。

你会要求代码干净,整洁,优雅,虽然你自己都做不到这三点。

但是从来没听过你要求注释要押韵,要是七言绝句,要形散而神不散。

编译器,都会把注释忽略掉。

甚至有人说好的代码即是注释,你看,其实连人都不需要注释。

即便面试吹逼,你也不会说自己喜欢写注释。

怎么了,是注释不配吗?

你明明忘了,刚开始学代码时,你能看懂的只有注释啊!

我职业生涯最大的挑战,不是看不懂代码,而且看不懂注释。

尤其注释只有六个字:“别动,后果自负”。

在单个函数超过一千行屎山代码和一天开发两天上线的傻X需求之前,能拯救我的只有注释。

没有注释,我只能骂娘。

但我不会骂娘,因为我会要求自己干净,整齐,优雅。

所以,即便是注释,我也要认真写,用中英日德法语写,重构着写,甚至用设计模式写。

而今天,和大家分享一些有趣的注释。

也可参考

/*** *                    .::::. *                  .::::::::. *                 :::::::::::  FUCK YOU *             ..:::::::::::' *           '::::::::::::' *             .:::::::::: *        '::::::::::::::.. *             ..::::::::::::. *           ``:::::::::::::::: *            ::::``:::::::::'        .:::. *           ::::'   ':::::'       .::::::::. *         .::::'      ::::     .:::::::'::::. *        .:::'       :::::  .:::::::::' ':::::. *       .::'        :::::.:::::::::'      ':::::. *      .::'         ::::::::::::::'         ``::::. *  ...:::           ::::::::::::'              ``::. * ```` ':.          ':::::::::'                  ::::.. *                    '.:::::'                    ':'````.. */
/*** * http://www.freebuf.com/ *           _.._        ,------------. *        ,'      `.    ( We want you! ) *       /  __) __` \    `-,----------' *      (  (`-`(-')  ) _.-' *      /)  \  = /  ( *     /'    |--' .  \ *    (  ,---|  `-.)__` *     )(  `-.,--'   _`-. *    '/,'          (  Uu", *     (_       ,    `/,-' ) *     `.__,  : `-'/  /`--' *       |     `--'  | *       `   `-._   / *        \        ( *        /\ .      \.  freebuf *       / |` \     ,-\ *      /  \| .)   /   \ *     ( ,'|\    ,'     : *     | \,`.`--"/      } *     `,'    \  |,'    / *    / "-._   `-/      | *    "-.   "-.,'|     ; *   /        _/["---'""] *  :        /  |"-     ' *  '           |      / *              `      | */

热衷于写注释的我,终于也快要放弃了。。。

其他精彩文章

关注公众号,回复 [资料] ,一起学习吧!

转载地址:http://kusyz.baihongyu.com/

你可能感兴趣的文章
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named 'pandads'
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No qualifying bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>‘ available
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>