Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
生成AIによる PHP = Node.js 変換の検証
Search
kouki.miura
February 08, 2025
Programming
0
29
生成AIによる PHP = Node.js 変換の検証
ChatGPTでPHPのソースコードをNode.jsに変換して実用的なコードが生成できるか確認してみました。
kouki.miura
February 08, 2025
Tweet
Share
More Decks by kouki.miura
See All by kouki.miura
Javaの学習・実行環境-JBangの概要
koukimiura
0
48
オンプレミス環境にKubernetesを構築する
koukimiura
0
96
TypeScriptがなぜ必要だったか
koukimiura
0
41
PHPUnitのマニュアルを徹底解剖してみる パート2
koukimiura
1
60
初心者向け!OSSコントリビュート概要 ~ Keycloakにプルリクエストしてみた話
koukimiura
0
160
Vuetify - Data Table Componentの検証
koukimiura
0
55
PostgreSQL-Windows x86-64インストーラでインストール
koukimiura
0
72
QuarkusによるCloudNativeなJava
koukimiura
0
110
リーン、アジャイルと自社プロセスの比較
koukimiura
0
180
Other Decks in Programming
See All in Programming
Pythonでもちょっとリッチな見た目のアプリを設計してみる
ueponx
1
350
技術を根付かせる / How to make technology take root
kubode
1
110
Pulsar2 を雰囲気で使ってみよう
anoken
0
210
『品質』という言葉が嫌いな理由
korimu
0
120
Swiftコンパイラ超入門+async関数の仕組み
shiz
0
200
CloudNativePGがCNCF Sandboxプロジェクトになったぞ! 〜CloudNativePGの仕組みの紹介〜
nnaka2992
0
210
ErdMap: Thinking about a map for Rails applications
makicamel
1
1.3k
Multi Step Form, Decentralized Autonomous Organization
pumpkiinbell
1
240
法律の脱レガシーに学ぶフロントエンド刷新
oguemon
5
680
[Fin-JAWS 第38回 ~re:Invent 2024 金融re:Cap~]FaultInjectionServiceアップデート@pre:Invent2024
shintaro_fukatsu
0
390
Writing documentation can be fun with plugin system
okuramasafumi
0
110
Spring gRPC について / About Spring gRPC
mackey0225
0
200
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
6
530
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.5k
Visualization
eitanlees
146
15k
The Cost Of JavaScript in 2023
addyosmani
47
7.3k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.4k
Navigating Team Friction
lara
183
15k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.8k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
9
1.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
330
21k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Transcript
生成AIによる PHP = Node.js 変換の検証 2025.02.08 第5回 札幌PHP勉強会 三浦 恒樹
(MIURA KOUKI) 診療情報管理士 上級医療情報技師 医用画像情報専門技師 ドゥウェル株式会社
長男が飼っている ハリネズミがアイコン INTRODUCE ・ドゥウェル株式会社 (医療系IT開発・導入会社)に所属 ・マネージャー(プレイング・マネージャー) ・仕事では TypeScript, Node.js/JavaScript, Java,C#
・趣味でも TypeScript,Node.js/JavaScript ・3児の父 ・札幌PHP勉強会、JBUG札幌、JavaDO、ゆるWeb勉強会、えびてく 等に参加
・生成AIとは(ChatGPT) ・PHP to Node.js ・変換① ・変換② ・まとめ INDEX
生成AIとは(ChatGPT) ChatGPT無料版を使用
PHP to Node.js Controller Service Repository Validator BizLogic DAO ①
② ③ ①~③のPHPをNode.jsに変換可能か検証する。 2025.02.08検証範囲
変換①
変換① - 結果 ChatGPTへのプロンプト: ChatGPTの回答:
変換① - 検証 変換元PHP実行結果: 変換後Node.js実行結果:
変換②
変換② - 結果 ChatGPTへのプロンプト: ChatGPTの回答:
変換② - 検証 変換元PHP実行結果: 変換後Node.js実行結果:
検証結果 ・PHP Webアプリ(Controller→Service)はNode.jsに100%変換できた 今後の検証 ・Controller→Service→Repositoryまでの変換 ・PHP→Node.js(JavaScript)→TypeScriptへの変換 ・FuelPHP等の旧フレームワークを使用したアプリからの変換 その他 ・今回の検証用ソースコードは”コメント駆動開発” (コメント記述→GitHub Copilotでコード生成→微修正)
ご清聴ありがとうございました。 SUMMARY
None
None