-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
content/personal/viewpoint/content/tech/impove-code-quality-by-ai.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: 通过 AI 来自动化提升代码质量 | ||
--- | ||
|
||
AI 的优势: | ||
1. 思路广。能找到一些有创意的解决问题的新方案。很像人的无意思。 | ||
2. 运算速度快。 | ||
|
||
缺点: 生成的内容的质量不稳定。 | ||
|
||
## 实现思路 | ||
1. 在 AI 的辅助下:罗列高代码质量的原则和原则的高优先级。 | ||
2. 基于上面的原则,生成: | ||
1. Prompt。 => 提升生成质量。 | ||
2. 示例。 将示例 Embedding 。 => 提升生成质量。 | ||
3. 应用在需要重构的代码上。 |