シナリオ
あなたはECサイトを開発する日系グローバル企業のソフトウェアエンジニアです。今日、チームメンバーの Mark(アメリカ人、英語ネイティブ)が書いたコードのプルリクエストをレビューしました。
コードには2つの問題点があります:
- 変数名が短すぎて意味が分かりにくい(
tmp,x,d) - エラーハンドリングが書かれていない
Mark と Slack ビデオ通話で1on1 レビューをしています。改善点を相手を傷つけずに伝えなければなりません。
文化的コンテキスト
英語圏のコードレビューは「批判 → 改善提案」ではなく「良い点 → 改善提案 → 一緒に解決」
"you" を主語にした批判は人格攻撃に見える
タスク
以下の Mark の発言に対して、英語で返答してください。
"Hey, I just submitted the PR. I think it's pretty clean — took me a while to optimize the logic. Let me know what you think!"
以下の内容を自然な会話で伝えてください:
- まず Mark の努力を認める(良い点を言う)
- 変数名の改善を提案する("I noticed..." や "It might help if..." など柔らかい表現で)
- エラーハンドリングの追加を提案する
- 全体的に前向きなトーンで締める
使える表現・フレーズ
カードをクリックすると英語フレーズを表示します。
ヒント(段階的開示)
ヒント 1 — 構成
1文目: 良い点を認める → 2〜3文目: 変数名の提案 → 4〜5文目: エラーハンドリングの提案 → 最後: 前向きな締め
ヒント 2 — キーフレーズ・表現
Good job on optimizing the logic!で始めると自然I noticed some of the variable names like `tmp` and `x` are a bit short→ 事実として伝えるIt might also help to add some error handling→ 提案口調
ヒント 3 — 骨格テンプレート
返答の骨格:
I noticed [問題1 — 変数名]. It might help to [具体的提案].
Also, [問題2 — エラー処理]. What do you think about [具体的提案]?
Overall, [前向きな締め]."
モデル解答(B2〜C1相当)
"Hey, I just submitted the PR. I think it's pretty clean — took me a while to optimize the logic. Let me know what you think!"
"Good job on optimizing the logic — I can see the effort you put into it!
I did notice that some of the variable names, like tmp and x, are a bit hard to follow. It might help to use more descriptive names, something like temp_price or discount_rate, so the next person reading the code can understand it at a glance.
Also, I didn't see any error handling in the payment processing section. What if we added a try-except block to catch potential exceptions? That way, we'd prevent any unexpected crashes in production.
Overall, the core logic is solid — just a couple of small tweaks and it'll be really clean. Let me know if you want to walk through it together!"
解説
構成分析
temp_price で明確化。
重要表現まとめ
| 表現 | 意味・ポイント |
|---|---|
at a glance | 一目で。コードの可読性について話すときの定番表現 |
catch potential exceptions | 潜在的な例外を捕捉する。エンジニア向け英語の定番 |
in production | 本番環境で。"prevent crashes in production" はよく使う |
walk through it together | 一緒に確認する。ペアプロやレビュー会話で頻出 |
文化的ポイント
"Your code is wrong" は人格攻撃に見える。"the code" や "I noticed" を主語にする
日本語の「〜しましょうか」より相手の意見を尊重するニュアンス
よくある日本人のミス
ワンランク上の表現(Phase 2 以降)
次のステップ
- 発展: Mark が「なぜ変数名を短くしたか」と反論してきたとき、どう返すか練習する
- 次回(Day 006): Negotiation × Engineering — 技術的負債対応のスコープ交渉