Spikdi
B10:35
B10:35
Yesterday I reviewed my teammate's code.
เมื่อวานฉันรีวิวโค้ดของเพื่อนร่วมทีม
I saw a small issue in one function.
ฉันเห็นปัญหาเล็ก ๆ ในฟังก์ชันหนึ่ง
I said, "What do you think about changing this part?"
ฉันพูดว่า "คุณคิดยังไงถ้าเปลี่ยนส่วนนี้"
I added, "One small suggestion: use a variable here."
ฉันพูดเพิ่มว่า "คำแนะนำเล็กน้อย: ใช้ตัวแปรตรงนี้"
He didn't get upset.
เขาไม่ได้โกรธ
He looked at the code and nodded.
เขามองที่โค้ดแล้วพยักหน้า
He said, "Good call, let me fix that."
เขาพูดว่า "ดีเลย เดี๋ยวฉันแก้"
I felt relieved.
ฉันรู้สึกโล่งใจ
It was about the work, not about him.
มันเกี่ยวกับงาน ไม่ใช่เกี่ยวกับตัวเขา
Now I always phrase feedback as a question.
ตอนนี้ฉันมักพูดคำแนะนำเป็นคำถามเสมอ
It keeps things friendly and clear.
มันทำให้บรรยากาศเป็นกันเองและชัดเจน
Next time I'll do the same.
คราวหน้าฉันจะทำแบบเดียวกัน
What I learned from a code review
by @wannawords