Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AIを活かすためのリファクタリング

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 AIを活かすためのリファクタリング

本資料はすべてChatGPTによって自動生成された内容です。
誤字や表現の揺れ、内容の浅さなどが含まれている可能性があります。あらかじめご了承ください。

Avatar for chibicco

chibicco

May 17, 2025
Tweet

More Decks by chibicco

Other Decks in Programming

Transcript

  1. def execute(task) task.run end # Executes a background task that

    conforms to TaskInterface def execute(background_task) # TaskInterface guarantees `.run` is implemented background_task.run end ✅ AIにとって良いコード(前提をコード内に明示) ❌ AIにとって悪いコード(情報が隠れている)