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?

【公ド読】GitHub Copilot を使ってレガシ コードを最新化する

Posted at

【公式ドキュメントを読もうシリーズ】GitHub Copilot を使ってレガシ コードを最新化する

シリーズ概要

https://qiita.com/yasu_programming/items/cec66f9e8d5d571e9ce3

URL

https://docs.github.com/ja/copilot/using-github-copilot/guides-on-using-github-copilot/modernizing-legacy-code-with-github-copilot

説明

言語の違いがあっても変換することができるみたい。
COBOLからNode.jsに変換している。

  1. コードについての説明をしてもらう(/explanで挙動を聞いている)
  2. /workspaceでファイル間でのデータフローを図式として確認する(Mermaid記法で出力できる)
  3. テストの方法を聞く
  4. COBOL -> Node.jsにプロンプト入れて変換
  5. 単体テスト、統合テスト

これで、言語の変更もできる模様。

所感

テストとか変換するためのプロンプトなど結構必要になると思われるが、確かにできるんだろうなと思った。
まだそういうケースに遭遇したことがないが、今後必要になるのかも知れない。

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?