0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AIが書いたKotlinコードと手書きKotlinコードを比較してみた

0
Last updated at Posted at 2026-03-01

AIが書いたKotlinコードと手書きKotlinコードを比較してみた

実験

同じ仕様(習慣トラッカーアプリ)をAI(Claude Code)と手書きで実装し、品質を比較。

比較表

項目 AI生成 手書き
所要時間 47秒 3日
アーキテクチャ MVVM + Repository 人による
DB Room + Flow Room or SQLiteOpenHelper
UI Jetpack Compose XML or Compose
テスト なし 人による
権限 0個 人による
Material3 あり 人による

AI生成コードの強み

  1. 一貫したアーキテクチャ: 毎回同じパターン(MVVM + Repository)
  2. 最新のAPI: Compose, Flow, StateFlow, Material3を使う
  3. 不要な権限がない: INTERNETすら要求しない

Room Entity コード例:

@Entity(tableName = "habits")
data class Habit(
    @PrimaryKey(autoGenerate = true) val id: Int = 0,
    val name: String,
    val createdAt: Long = System.currentTimeMillis()
)

AI生成コードの弱み

  1. テストコードなし
  2. CI/CDなし
  3. ProGuardルールなし
  4. エッジケース未対応

結論

  • シンプルなアプリ → AIで十分
  • 複雑なアプリ → AI生成 + 人間のレビューが最適
  • 「コードを書く能力」と「アプリを作る能力」は別物になった

8種類のAndroidアプリテンプレート(AI生成、エンジニアレビュー済み)をGumroadで公開中。

関連: 47秒でアプリ生成(Zenn)


関連記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?