Spikdi
B10:45
B10:45
Last week I pushed a code change too fast.
เมื่อสัปดาห์ที่แล้วฉันส่งโค้ดไวเกินไป
It broke the login page for many users.
มันทำให้หน้าเข้าสู่ระบบพังสำหรับผู้ใช้หลายคน
My manager asked me what had happened.
ผู้จัดการถามฉันว่าเกิดอะไรขึ้น
I said, that one was on me, honestly.
ฉันพูดว่า เรื่องนั้นเป็นความผิดฉันเอง พูดตรงๆ
I didn't try to make excuses.
ฉันไม่ได้พยายามหาเหตุผลมาอ้าง
Here is what I missed, I told them.
นี่คือสิ่งที่ฉันพลาด ฉันบอกพวกเขา
I forgot to test one edge case.
ฉันลืมทดสอบกรณีขอบหนึ่งกรณี
It only appears when a user has no email.
มันเกิดขึ้นเฉพาะเมื่อผู้ใช้ไม่มีอีเมล
My manager nodded and said, good to know.
ผู้จัดการพยักหน้าและพูดว่า ดีที่รู้
We fixed the bug within an hour.
เราแก้ไขบั๊กได้ภายในหนึ่งชั่วโมง
To stop it happening again, I will write better tests.
เพื่อไม่ให้เกิดอีก ฉันจะเขียนเทสต์ให้ดีขึ้น
I will also ask a coworker to review my code.
ฉันจะขอให้เพื่อนร่วมงานรีวิวโค้ดด้วย
วิ
That One Was On Me: A Bug and What I Learned
by @wichaireads