← Kànshū

HSK4 · Story

上线前的夜晚

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

晚wǎn上shang九jiǔ点diǎn,南Nán山shān的de办bàn公gōng室shì还hái很hěn亮liàng,可kě是shì咖kā啡fēi机jī已yǐ经jīng不bù响xiǎng了le。

At nine at night, the office in Nanshan was still bright, but the coffee machine had gone quiet.

林Lín薇Wēi第dì四sì十shí次cì看kàn着zhe笔bǐ电diàn上shàng的de上shàng线xiàn清qīng单dān。

Lin Wei looked at the launch checklist on her laptop for the fortieth time.

明míng天tiān十shí点diǎn,这zhè个gè应yìng用yòng程chéng式shì就jiù会huì正zhèng式shì上shàng线xiàn,给gěi六liù个gè社shè区qū的de居jū民mín用yòng。

Tomorrow at ten, the app would go live for the residents of six neighborhoods in Shenzhen.

这zhè是shì一yí个gè简jiǎn单dān的de想xiǎng法fǎ,让ràng社shè区qū里lǐ的de阿ā姨yí们men透tòu过guò微Wēi信xìn上shàng的de小xiǎo程chéng序xù,把bǎ新xīn鲜xiān的de菜cài卖mài给gěi邻lín居jū。

It was a simple idea: aunties in the community could sell fresh vegetables to their neighbors through a small program in WeChat.

她tā的de团tuán队duì花huā了le八bā个gè月yuè做zuò它tā,大dà部bù分fen的de时shí间jiān都dōu用yòng在zài吵chǎo架jià上shàng。

Her team had spent eight months on it, and most of the time had been spent arguing.

阿Ā强Qiáng,后hòu端duān工gōng程chéng师shī,戴dài着zhe帽mào子zi在zài打dǎ字zì,旁páng边biān放fàng着zhe一yì瓶píng凉liáng茶chá。

Ah Qiang, the backend engineer, was typing with his hood up and a bottle of cold tea beside him.

小Xiǎo周Zhōu,新xīn来lái的de实shí习xí生shēng,假jiǎ装zhuāng不bù紧jǐn张zhāng,正zhèng在zài整zhěng理lǐ贴tiē纸zhǐ。

Xiao Zhou, the new intern, was pretending not to be nervous by sorting stickers.

九jiǔ点diǎn四sì十shí,阿Ā强Qiáng在zài房fáng间jiān那nà头tóu大dà声shēng喊hǎn。

At 9:40, Ah Qiang shouted across the room.

「支zhī付fù测cè试shì失shī败bài了le!每měi一yì笔bǐ超chāo过guò五wǔ十shí块kuài的de订dìng单dān都dōu报bào错cuò。」

“The payment test is failing! Every order over fifty yuan comes back as an error.”

林Lín薇Wēi走zǒu过guò去qù,把bǎ错cuò误wù代dài码mǎ读dú了le两liǎng遍biàn。

Lin Wei walked over and read the error code twice.

不bú是shì支zhī付fù公gōng司sī的de问wèn题tí,是shì优yōu惠huì券quàn的de问wèn题tí。

It was not the payment provider. It was the discount code.

新xīn的de优yōu惠huì券quàn逻luó辑jí,只zhǐ要yào顾gù客kè用yòng社shè区qū券quàn,就jiù会huì扣kòu两liǎng次cì。

The new coupon logic was subtracting twice whenever a customer used a neighborhood voucher.

小Xiǎo周Zhōu停tíng下xià手shǒu上shàng的de工gōng作zuò,脸liǎn色sè白bái得de像xiàng纸zhǐ一yí样yàng,走zǒu过guò来lai。

Xiao Zhou stopped sorting stickers and came over with a face like paper.

「我wǒ要yào不bú要yào打dǎ电diàn话huà给gěi老lǎo板bǎn?」

“Should I call the boss?” he asked.

「还hái不bú用yòng,我wǒ们men先xiān弄nòng清qīng楚chu有yǒu多duō严yán重zhòng。」

“Not yet,” Lin Wei said. “First we find out how bad it is.”

阿Ā强Qiáng已yǐ经jīng打dǎ开kāi了le三sān个gè终zhōng端duān,正zhèng在zài一yì行háng一yì行háng地de查chá日rì志zhì。

Ah Qiang had already opened three terminals and was tracing the logs line by line.

测cè试shì帐zhàng号hào用yòng了le一yì张zhāng券quàn,可kě是shì资zī料liào库kù记jì录lù了le两liǎng次cì扣kòu款kuǎn。

The test account had used one coupon, but the database recorded two deductions.

「那nà问wèn题tí就jiù在zài重chóng试shì里lǐ。」阿Ā强Qiáng慢màn慢màn地de说shuō。

“Then the bug is in the retry,” Ah Qiang said slowly.

网wǎng路lù慢màn的de时shí候hou,应yìng用yòng程chéng式shì以yǐ为wéi第dì一yī次cì的de请qǐng求qiú失shī败bài了le,就jiù又yòu发fā了le一yí次cì。

When the network was slow, the app assumed the first request had failed and sent a second one.

修xiū复fù在zài理lǐ论lùn上shang很hěn简jiǎn单dān,可kě是shì它tā碰pèng到dào了le处chǔ理lǐ钱qián的de程chéng式shì。

The fix was simple in theory, but it touched the code that handled money.

王Wáng哥gē,设shè计jì师shī,整zhěng个gè晚wǎn上shang都dōu很hěn安ān静jìng,一yì边biān吃chī瓜guā子zi,一yì边biān看kàn手shǒu机jī。

Wang, the designer, had been quiet all evening, eating sunflower seeds from a paper cone.

现xiàn在zài他tā把bǎ手shǒu机jī放fàng下xià,看kàn着zhe萤yíng幕mù。

Now he put his phone down and looked at the screen.

「今jīn晚wǎn要yào全quán部bù修xiū吗ma,还hái是shì只zhǐ修xiū优yōu惠huì券quàn?」

“Do we have to fix everything tonight? Or only the coupon?” he asked.

如rú果guǒ优yōu惠huì券quàn出chū错cuò,福Fú田tián的de一yí位wèi奶nǎi奶nai买mǎi菠bō菜cài就jiù要yào付fù两liǎng次cì钱qián,她tā以yǐ后hòu就jiù不bú会huì再zài用yòng了le。

If the coupon failed, a grandmother in Futian could pay twice for her spinach, and she would never trust the app again.

林Lín薇Wēi下xià定dìng决jué心xīn,把bǎ椅yǐ子zi拉lā近jìn了le一yì点diǎn。

Lin Wei made a decision and pulled her chair closer to the table.

「我wǒ们men今jīn晚wǎn先xiān修xiū优yōu惠huì券quàn。其qí他tā的de事shì如rú果guǒ必bì要yào,可kě以yǐ等děng到dào早zǎo上shang。」

“We fix the coupon tonight. The rest can wait until morning, if it has to.”

小Xiǎo周Zhōu把bǎ这zhè句jù话huà写xiě在zài便biàn利lì贴tiē上shàng,贴tiē在zài萤yíng幕mù旁páng边biān。

Xiao Zhou wrote the words on a sticky note and stuck it to his monitor.

十shí点diǎn十shí五wǔ,窗chuāng外wài的de天tiān色sè从cóng黑hēi变biàn成chéng一yì种zhǒng脏zāng的de橘jú黄huáng色sè,像xiàng雨yǔ中zhōng的de路lù灯dēng。

At 10:15, the sky outside turned from black to a dirty orange, the color of the streetlights in the rain.

阿Ā强Qiáng揉róu了le揉róu眼yǎn睛jing,打dǎ了le一yí个gè新xīn分fēn支zhī名míng字zi:修xiū复fù优yōu惠huì券quàn分fēn支zhī。

Ah Qiang rubbed his eyes and typed a new branch name: 修復優惠券分支.

「名míng字zi不bú错cuò,不bú过guò现xiàn在zài不bú是shì聪cōng明ming的de时shí候hou。」

“Good name,” said Lin Wei. “Bad time to be clever.”

到dào了le十shí一yī点diǎn,他tā们men找zhǎo到dào了le那nà一yì行háng程chéng式shì码mǎ,它tā检jiǎn查chá重chóng试shì次cì数shù,然rán后hòu却què把bǎ结jié果guǒ忽hū略lüè了le。

By eleven, they had found the line of code that checked the retry count and then ignored it.

阿Ā强Qiáng用yòng四sì分fēn钟zhōng修xiū好hǎo了le,然rán后hòu又yòu花huā了le四sì十shí分fēn钟zhōng确què认rèn没méi有yǒu其qí他tā地dì方fang坏huài掉diào。

Ah Qiang fixed it in four minutes and then spent forty more making sure nothing else broke.

测cè试shì一yí个gè一yí个gè地de变biàn成chéng绿lǜ色sè,像xiàng安ān静jìng街jiē道dào上shàng的de红hóng绿lǜ灯dēng。

The tests turned green one by one, like traffic lights on a quiet street.

小Xiǎo周Zhōu吐tǔ出chū了le一yì口kǒu气qì,那nà口kǒu气qì好hǎo像xiàng从cóng晚wǎn饭fàn就jiù憋biē着zhe。

Xiao Zhou let out a breath that he seemed to have been holding since dinner.

「现xiàn在zài可kě以yǐ点diǎn外wài卖mài了le吗ma?我wǒ饿è得de可kě以yǐ吃chī贴tiē纸zhǐ了le。」

“Can we order food now?” he asked. “I am hungry enough to eat the stickers.”

他tā们men在zài三sān条tiáo街jiē外wài的de小xiǎo店diàn点diǎn了le牛niú肉ròu面miàn,然rán后hòu下xià楼lóu在zài雨yǔ里lǐ等děng。

They ordered beef noodles from a stall three streets away and walked downstairs to wait in the rain.

在zài便biàn利lì店diàn的de遮zhē阳yáng棚péng下xià,林Lín薇Wēi看kàn了le看kàn手shǒu机jī。

Under the awning of the convenience store, Lin Wei checked her phone.

一yì条tiáo妈mā妈ma的de消xiāo息xi问wèn她tā吃chī过guo饭fàn了le没méi有yǒu,毛máo衣yī够gòu不bu够gòu暖nuǎn。

A message from her mother asked if she had eaten and if the sweater was warm enough.

她tā回huí了le一yí个gè笑xiào脸liǎn,停tíng了le一yí下xià以yǐ后hòu,又yòu打dǎ了le一yí句jù真zhēn心xīn话huà:「明míng天tiān会huì是shì好hǎo的de一yì天tiān。」

She typed back a smiley face and then, after a pause, a real sentence: “Tomorrow is going to be a good day.”

半bàn夜yè十shí二èr点diǎn半bàn,面miàn装zhuāng在zài塑sù胶jiāo袋dài里lǐ,送sòng来lái了le,还hái是shì热rè的de。

At half past midnight, the noodles arrived in a plastic bag, still hot.

他tā们men围wéi着zhe桌zhuō子zi站zhàn着zhe吃chī,大dà声shēng吸xī面miàn,谁shéi也yě不bú在zài意yì。

They ate standing up around the desk, slurping loudly, and nobody cared.

凌líng晨chén一yī点diǎn,阿Ā强Qiáng又yòu把bǎ整zhěng套tào测cè试shì跑pǎo了le一yí遍biàn。

At one, Ah Qiang ran the full test suite one last time.

凌líng晨chén四sì点diǎn,应yìng用yòng程chéng式shì已yǐ经jīng上shàng线xiàn了le,第dì一yī笔bǐ订dìng单dān就jiù进jìn来lai了le,人rén还hái有yǒu点diǎn迷mí糊hu。

At four in the morning, the app was live in the store, and the first order came in, half asleep.

是shì福Fú田tián的de一yí位wèi奶nǎi奶nai下xià的de,她tā买mǎi了le一yì把bǎ菠bō菜cài和hé两liǎng个gè鸡jī蛋dàn。

It was from a grandmother in Futian, who ordered a bundle of spinach and two eggs.

订dìng单dān下xià面miàn,她tā给gěi送sòng货huò员yuán写xiě了le一yí句jù话huà:「我wǒ女nǚ儿ér教jiāo我wǒ用yòng的de。请qǐng等děng我wǒ开kāi门mén。」

Under the order, she had written a note for the delivery boy: “My daughter showed me how. Please wait for my door to open.”

林Lín薇Wēi读dú了le这zhè条tiáo消xiāo息xi,在zài空kōng荡dàng荡dàng的de办bàn公gōng室shì里lǐ轻qīng轻qīng笑xiào了le。

Lin Wei read the message and laughed quietly in the empty office.

「这zhè是shì我wǒ们men的de第dì一yī位wèi顾gù客kè,她tā还hái要yào等děng我wǒ们men呢ne。」

“That is our first customer,” she said. “And she is going to wait for us.”

小Xiǎo周Zhōu把bǎ便biàn利lì贴tiē从cóng萤yíng幕mù上shàng撕sī下xià来lai,在zài旧jiù字zì下xià面miàn又yòu写xiě了le一yì行háng。

Xiao Zhou took the sticky note off the monitor and wrote a new line under the old one.

「没méi有yǒu东dōng西xi是shì完wán美měi的de,可kě是shì有yǒu人rén在zài等děng。」

“Nothing is perfect. But someone is waiting.”

早zǎo上shang七qī点diǎn,雨yǔ停tíng了le,南Nán山shān的de街jiē道dào开kāi始shǐ有yǒu湿shī柏bǎi油yóu和hé早zǎo餐cān的de味wèi道dao。

At seven, the rain stopped, and the streets of Nanshan began to smell of wet pavement and breakfast.

林Lín薇Wēi坐zuò地dì铁tiě去qù福Fú田tián,太tài阳yáng晃huàng着zhe眼yǎn睛jing,手shǒu里lǐ拿ná着zhe一yì杯bēi豆dòu浆jiāng。

Lin Wei took the metro to Futian, with the sun in her eyes and a cup of soy milk in her hand.

奶nǎi奶nai在zài门mén铃líng响xiǎng以yǐ前qián就jiù把bǎ门mén打dǎ开kāi了le,脸liǎn上shang带dài着zhe笑xiào。

The grandmother opened her door before the bell rang, and she was smiling.

「你nǐ们men亲qīn自zì来lái了le,那nà我wǒ就jiù不bú怕pà这zhè个gè应yìng用yòng程chéng式shì了le。」

“You came yourself,” she said. “Then I am not afraid of this app anymore.”

林Lín薇Wēi把bǎ菠bō菜cài递dì给gěi她tā,老lǎo太tài太tai一yí个gè一yí个gè地de检jiǎn查chá鸡jī蛋dàn。

Lin Wei handed her the spinach, and the old woman checked the eggs one by one.

林Lín薇Wēi口kǒu袋dài里lǐ的de手shǒu机jī上shàng的de后hòu台tái显xiǎn示shì着zhe一yí个gè小xiǎo数shù字zì:一yì单dān,一yí位wèi顾gù客kè,一yí次cì成chéng功gōng。

On the phone in Lin Wei’s pocket, the dashboard showed a small number: one order, one customer, one success.

Open in Kànshū