上线前的夜晚
The Night Before Launch · On the night before a Shenzhen startup launches its neighborhood app, a bug appears, and the team must decide what to fix first.
Read with audio and tap-to-translate
晚上九点,南山的办公室还很亮,可是咖啡机已经不响了。
At nine at night, the office in Nanshan was still bright, but the coffee machine had gone quiet.
林薇第四十次看着笔电上的上线清单。
Lin Wei looked at the launch checklist on her laptop for the fortieth time.
明天十点,这个应用程式就会正式上线,给六个社区的居民用。
Tomorrow at ten, the app would go live for the residents of six neighborhoods in Shenzhen.
这是一个简单的想法,让社区里的阿姨们透过微信上的小程序,把新鲜的菜卖给邻居。
It was a simple idea: aunties in the community could sell fresh vegetables to their neighbors through a small program in WeChat.
她的团队花了八个月做它,大部分的时间都用在吵架上。
Her team had spent eight months on it, and most of the time had been spent arguing.
阿强,后端工程师,戴着帽子在打字,旁边放着一瓶凉茶。
Ah Qiang, the backend engineer, was typing with his hood up and a bottle of cold tea beside him.
小周,新来的实习生,假装不紧张,正在整理贴纸。
Xiao Zhou, the new intern, was pretending not to be nervous by sorting stickers.
九点四十,阿强在房间那头大声喊。
At 9:40, Ah Qiang shouted across the room.
「支付测试失败了!每一笔超过五十块的订单都报错。」
“The payment test is failing! Every order over fifty yuan comes back as an error.”
林薇走过去,把错误代码读了两遍。
Lin Wei walked over and read the error code twice.
不是支付公司的问题,是优惠券的问题。
It was not the payment provider. It was the discount code.
新的优惠券逻辑,只要顾客用社区券,就会扣两次。
The new coupon logic was subtracting twice whenever a customer used a neighborhood voucher.
小周停下手上的工作,脸色白得像纸一样,走过来。
Xiao Zhou stopped sorting stickers and came over with a face like paper.
「我要不要打电话给老板?」
“Should I call the boss?” he asked.
「还不用,我们先弄清楚有多严重。」
“Not yet,” Lin Wei said. “First we find out how bad it is.”
阿强已经打开了三个终端,正在一行一行地查日志。
Ah Qiang had already opened three terminals and was tracing the logs line by line.
测试帐号用了一张券,可是资料库记录了两次扣款。
The test account had used one coupon, but the database recorded two deductions.
「那问题就在重试里。」阿强慢慢地说。
“Then the bug is in the retry,” Ah Qiang said slowly.
网路慢的时候,应用程式以为第一次的请求失败了,就又发了一次。
When the network was slow, the app assumed the first request had failed and sent a second one.
修复在理论上很简单,可是它碰到了处理钱的程式。
The fix was simple in theory, but it touched the code that handled money.
王哥,设计师,整个晚上都很安静,一边吃瓜子,一边看手机。
Wang, the designer, had been quiet all evening, eating sunflower seeds from a paper cone.
现在他把手机放下,看着萤幕。
Now he put his phone down and looked at the screen.
「今晚要全部修吗,还是只修优惠券?」
“Do we have to fix everything tonight? Or only the coupon?” he asked.
如果优惠券出错,福田的一位奶奶买菠菜就要付两次钱,她以后就不会再用了。
If the coupon failed, a grandmother in Futian could pay twice for her spinach, and she would never trust the app again.
林薇下定决心,把椅子拉近了一点。
Lin Wei made a decision and pulled her chair closer to the table.
「我们今晚先修优惠券。其他的事如果必要,可以等到早上。」
“We fix the coupon tonight. The rest can wait until morning, if it has to.”
小周把这句话写在便利贴上,贴在萤幕旁边。
Xiao Zhou wrote the words on a sticky note and stuck it to his monitor.
十点十五,窗外的天色从黑变成一种脏的橘黄色,像雨中的路灯。
At 10:15, the sky outside turned from black to a dirty orange, the color of the streetlights in the rain.
阿强揉了揉眼睛,打了一个新分支名字:修复优惠券分支。
Ah Qiang rubbed his eyes and typed a new branch name: 修復優惠券分支.
「名字不错,不过现在不是聪明的时候。」
“Good name,” said Lin Wei. “Bad time to be clever.”
到了十一点,他们找到了那一行程式码,它检查重试次数,然后却把结果忽略了。
By eleven, they had found the line of code that checked the retry count and then ignored it.
阿强用四分钟修好了,然后又花了四十分钟确认没有其他地方坏掉。
Ah Qiang fixed it in four minutes and then spent forty more making sure nothing else broke.
测试一个一个地变成绿色,像安静街道上的红绿灯。
The tests turned green one by one, like traffic lights on a quiet street.
小周吐出了一口气,那口气好像从晚饭就憋着。
Xiao Zhou let out a breath that he seemed to have been holding since dinner.
「现在可以点外卖了吗?我饿得可以吃贴纸了。」
“Can we order food now?” he asked. “I am hungry enough to eat the stickers.”
他们在三条街外的小店点了牛肉面,然后下楼在雨里等。
They ordered beef noodles from a stall three streets away and walked downstairs to wait in the rain.
在便利店的遮阳棚下,林薇看了看手机。
Under the awning of the convenience store, Lin Wei checked her phone.
一条妈妈的消息问她吃过饭了没有,毛衣够不够暖。
A message from her mother asked if she had eaten and if the sweater was warm enough.
她回了一个笑脸,停了一下以后,又打了一句真心话:「明天会是好的一天。」
She typed back a smiley face and then, after a pause, a real sentence: “Tomorrow is going to be a good day.”
半夜十二点半,面装在塑胶袋里,送来了,还是热的。
At half past midnight, the noodles arrived in a plastic bag, still hot.
他们围着桌子站着吃,大声吸面,谁也不在意。
They ate standing up around the desk, slurping loudly, and nobody cared.
凌晨一点,阿强又把整套测试跑了一遍。
At one, Ah Qiang ran the full test suite one last time.
凌晨四点,应用程式已经上线了,第一笔订单就进来了,人还有点迷糊。
At four in the morning, the app was live in the store, and the first order came in, half asleep.
是福田的一位奶奶下的,她买了一把菠菜和两个鸡蛋。
It was from a grandmother in Futian, who ordered a bundle of spinach and two eggs.
订单下面,她给送货员写了一句话:「我女儿教我用的。请等我开门。」
Under the order, she had written a note for the delivery boy: “My daughter showed me how. Please wait for my door to open.”
林薇读了这条消息,在空荡荡的办公室里轻轻笑了。
Lin Wei read the message and laughed quietly in the empty office.
「这是我们的第一位顾客,她还要等我们呢。」
“That is our first customer,” she said. “And she is going to wait for us.”
小周把便利贴从萤幕上撕下来,在旧字下面又写了一行。
Xiao Zhou took the sticky note off the monitor and wrote a new line under the old one.
「没有东西是完美的,可是有人在等。」
“Nothing is perfect. But someone is waiting.”
早上七点,雨停了,南山的街道开始有湿柏油和早餐的味道。
At seven, the rain stopped, and the streets of Nanshan began to smell of wet pavement and breakfast.
林薇坐地铁去福田,太阳晃着眼睛,手里拿着一杯豆浆。
Lin Wei took the metro to Futian, with the sun in her eyes and a cup of soy milk in her hand.
奶奶在门铃响以前就把门打开了,脸上带着笑。
The grandmother opened her door before the bell rang, and she was smiling.
「你们亲自来了,那我就不怕这个应用程式了。」
“You came yourself,” she said. “Then I am not afraid of this app anymore.”
林薇把菠菜递给她,老太太一个一个地检查鸡蛋。
Lin Wei handed her the spinach, and the old woman checked the eggs one by one.
林薇口袋里的手机上的后台显示着一个小数字:一单,一位顾客,一次成功。
On the phone in Lin Wei’s pocket, the dashboard showed a small number: one order, one customer, one success.
Kànshū