程序员头条 报道




作为一名互联网项目开发者,在工作的过程中遇到 Bug 是很正常的事情,然而有时候一些代码也是类似于 Bug
这样的存在,虽然看起来到处都是错误,可是却能正常运行!




最近有位程序员在某论坛吐槽月薪 9K 的他写了一段排序代码,遭到老板辞退:
















有网友解释这段代码的含义:如果两个数相等,并且start时间相近,那么唤醒时间先后不确定,这是一个不稳定的排序,要是这个排序中有很多个数组,数组中有很多个数的话,那估计要排很久才能排完!














精彩回顾





<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 互联网公司各岗位真实工作内容起底
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118423&idx=1&sn=4d1d7a77a2251767009966848f511e89&chksm=87cc9bd1b0bb12c762e4c3d22ea8b9c34910bac327743b45f6ad107dadb7a4fe1852cae4ee71&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 一次尴尬的采访和程序员的传奇脑洞!
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118377&idx=1&sn=6196db39bed3a3ed7861b84fae10bc4a&chksm=87cc9a2fb0bb13398036bf1237d8fb9d8b74c794e08fe257b9fb3096542bd7aaa48e698bcb00&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 天一冷,程序员都穿上格子衫
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118326&idx=1&sn=35836dc93d42cc32ec4d1cf942245d6b&chksm=87cc9a70b0bb13663eb9e5ae6af563ab287bbb4f8737a0107126ab8f2294b5a595acac98d299&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 史上最真实的行业鄙视链曝光
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118320&idx=1&sn=7b34bee258b9592456607ee0c760a513&chksm=87cc9a76b0bb13608c754e75b2e721d36cad8549043f0221d86e82d480860845f17fdb16657d&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 IT公司老板落水,各部门员工怎么救
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118309&idx=1&sn=19b64e65071818b5152eab3a15dc1be3&chksm=87cc9a63b0bb1375accc05ee1d4b3ebd5f6e6e86f600d2464f90d692ba4bb27c3e802db7ca0d&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 宿命之战:程序员VS产品经理
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118281&idx=1&sn=c07b710e28c7b8171a72afb3f2a25c8c&chksm=87cc9a4fb0bb135904f3cf1c0284274db60eaa0b37d561abc3fb1ee9b4c72677c5288ac60552&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 作为一个前端,可以如何机智地弄坏一台电脑?
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118250&idx=1&sn=c5c98ca546a1dba87866301ba0cd7a99&chksm=87cc9aacb0bb13ba93c208643698af0606a63fc6e68808b8115a619c6a9e3f46f3179ebd42ee&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 
<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
程序员跟产品经理打起来了,这是一个需求引发的血案...
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118225&idx=1&sn=47ced9328e860c539ecdaf906f540d84&chksm=87cc9a97b0bb138185d672b8260985f484fd016b6b209334dab96d8469b432956badd067887e&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 后端说,你个前端不会用 headers吧,我怒了!
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118180&idx=1&sn=501c53bcccc2ada6798160da566ec7fe&chksm=87cc9ae2b0bb13f4934069480d83a1a13eb202148d12093eb7cfe3d02531211b07ea135ea677&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 有个厉害的程序员女朋友是什么体验?
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118130&idx=1&sn=fefe85dfbcd6113183c4c772680089ff&chksm=87cc9534b0bb1c22cb9225bd6b7b0eb43f0dc6f1f9108ba2780a35d0cae7b66487fd9af12a15&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 多年来,程序员经常加班的真相终于揭开了…
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118130&idx=2&sn=429b86a3d1d31eaf9a5433f673ad4f05&chksm=87cc9534b0bb1c2259664264a9e1459edb026145b81aa1a91c8b040aa5ea53f10572113989b2&scene=21#wechat_redirect>


<http://mp.weixin.qq.com/s?__biz=MzA4NjAwOTQzNg==&mid=2653452940&idx=1&sn=618d70548c4a641346456d3ddcb49a19&chksm=8413e9bfb36460a9121b7492b6fbf31e2c715abb898b65ac221c9c56bdd58496883b637d8c0b&scene=21#wechat_redirect>
 如果编程替换成中文就会怎样? 程序员看了表示头疼
<http://mp.weixin.qq.com/s?__biz=MzA4NjExMjE2OQ==&mid=2650118099&idx=1&sn=1f95ca1fce6f64fe16e9b7b9594471cc&chksm=87cc9515b0bb1c03fd49237371fa0b412a5e6a7a59e3dae767321d9b09736ec1fd2031512e8b&scene=21#wechat_redirect>