程序员用代码讲述悲伤的故事,一段代码一段故事
程序员的悲伤故事难道不应该是:
别人的老板晚上带他出去耍,你的老板半夜催你改代码;
别的程序员工资高、待遇好,而你只是血压高、心态好……
1、刚开始学编程的时候,课堂上老师说的话必须尊为圣旨,老师说“写好注释是一个好的工作习惯”,所以就有了下面的代码,请注意看那一组组工工整整、清清楚楚的123456……花去了比程序本身还要多的时间。
<tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="margin-top: 0px; color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
2、都说了500行的if mountain不算多,悲剧的是老板让重构下面这个,还说做不完不能下班……
<tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
3、更悲剧的是,做上面这个重构的人居然不知道还有*kwargs可用,世界上最遥远的距离莫非就是你和下班之间的距离?</tt-image> <tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
如果有想学习ja va的同学,可来我们的ja va技术学习扣qun的哦:74544,6493里面免费送整套系统的ja va教程!
4、夜深人静的时候,空旷寂静的办公室里只有你的电脑是亮的,好不容易等到数据全部导入完毕已是凌晨,接下来只要删除一部分数据就完成了,当你输入“DELETE from important_table; where id=4”,按下回车键的时候,这才发现不小心漏掉了分号……</tt-image> <tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
5、其实,这段代码写的还不错啦,不过返回了41个指针是怎么回事?</tt-image> <tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
6、公司让大牛带教一下新手,大牛说本着先易后难的原则,准备带我们从基础的部分开始,在开始常规的部分之前,先了解一下“简单的查询”……
<tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
7、代码写得多了难免会带有鲜明的个人特点,比如写下面这段代码的人就对“if”情有独钟,整篇代码里if一层又一层,层出不穷,只见if开始,却不见结束。</tt-image> <tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
这个其实也不算多,只是500行的if mountain而已……</tt-image>
8、学生时代犯个拼写错误,也许老师会帮你指出纠正,但是工作后就没那么幸运了,所以一个带拼写检查的编辑器还是很有必要的,否则没有仔细检查拼写就将代码交上去,可能很快就可以卷铺盖回家了。</tt-image> <tt-image data-tteditor-tag="tteditorTag" data-render-status="finished" data-syl-blot="image" style="color: rgb(37, 53, 69); font-family: "PingFang SC", SourceHanSansCN, "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica, DINAlternate-Bold; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
欢迎关注胖胖程序员,可视化学习java,每天更新文章,让Java学习更加简单。