Back to list
AIを最適に使用する: コードのため
The Best Way to Use AI for Coding
Translated: 2026/3/7 8:20:39
Japanese Translation
多くの初心者開発者がAIエンジンを使用してプロジェクトを作成しようとしている一般的な間違った行動について私を見ています。例えば、「このようにフルSCAアプリを作りたい」と質問します。結果は?混乱したコードベースになります。 AIはすべてのことを一度に生成しようと試みますが、アーキテクチャには通常陥ります。私はAIエンジンをテストし、良いワークフローがあるという学習を得ました。「建築家を思考するのではなく、プロンプト・エンジニアでない」と。主なアイデアは単純です:システムを設計します。全プロジェクトの生成にAIを要求しないでください。分割してください。あなたが決定するには:構造 フォルダ構造データモデルAPI設計その後、AIは次第にそれを実装します。良いワークフローのプロセスHere’s the process that works for me。まず建築設計を最優先しますプロジェクトの構造データベーススキーマAPIパス重要なコンポーネント例:/api/services/componentsこの制約はイマジネーションで構築するランダムな構造を防ぎます。AIに一つのフイルタを作成してほしいと尋ねていますユーザー登録、電子メールとパスワード検証APIルートコンポーネントを画面ダッシュボードとプロジェクトの一覧表示をします小さな課題は素晴らしい結果を返しますレビューや再 refinmentをしてくださいAIのコードを盲目的には不適です。「無駄な複雑性」や「セキュリティの問題」ということを確認してください。 AIはコード生成が得意です、しかし、開発者の方がそれに対して判断をするのはまだ良いのです。AIがあまりにも作業効率的な仕事を使うようにしましょうこのAIは最も適するようなもので:ボイラプレートテスターシンプルCRUDエンドポイントドキュメンタテンシミヒューリザブション提案AIの反復的なワークを任せましょうシステム設計と製品決定に焦点を当けることに時間集中します。実際の変形 AIは開発者を置き換えません。それは開発者的な役割を動かすことに変わります:最も時間を費やしているのはコードを書くことから、デザインシステムレビュージェネレーションされたコード思って構造が変わるという点に多くの時間を使うことができます。したがって、そのような問題は面白いですね。
Original Content
A mistake I see many beginner developers make with AI coding tools is this:
They ask the AI to build the entire project.
Something like:
“Build me a full SaaS app that does this”
The result?
A messy codebase.
AI tries to generate everything at once, and the architecture usually falls apart.
After experimenting with AI coding tools, I’ve found a workflow that works much better.
Think Like an Architect, Not a Prompt Engineer
The key idea is simple:
You design the system.
Instead of asking AI to generate the whole project, break it down.
You decide:
architecture
folder structure
data models
API design
Then AI helps implement one piece at a time.
A Better Workflow
Here’s the process that works well for me.
Design the architecture first
Before asking AI for code, define:
project structure
database schema
API routes
major components
Example:
/api
/services
/components
This prevents AI from inventing random structures.
Ask AI to build one file at a time
Instead of:
“Build the backend”
Ask:
“Create an Express API route for user registration with email and password validation.”
Or:
“Create a React component for a dashboard that displays a list of projects.”
Small tasks = much better results.
Review and refine
Never paste AI code blindly.
Check for:
unnecessary complexity
security issues
inconsistent patterns
AI is great at generating code, but developers are still better at judging it.
Use AI for boring work
Where AI really shines:
boilerplate
tests
simple CRUD endpoints
documentation
refactoring suggestions
Let AI do the repetitive work.
Focus your time on system design and product decisions.
The Real Shift
AI doesn’t replace developers.
It changes the role of developers.
Instead of spending most of our time writing code, we spend more time:
designing systems
reviewing generated code
thinking about architecture
Which, honestly, is where the interesting problems are anyway.