Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern: AI readable naming convention #46

Open
yuhattor opened this issue Aug 17, 2023 · 0 comments
Open

Pattern: AI readable naming convention #46

yuhattor opened this issue Aug 17, 2023 · 0 comments

Comments

@yuhattor
Copy link
Owner

Description

The AI readable naming convention focuses on the way we name variables and functions in our code to make them more readable by AI tools like GitHub Copilot. By avoiding generic and common programming names and embracing specific, descriptive names, we create code that both human developers and AI models which powers Copilot, can easily comprehend.
For example, an engineer creating a library system may use generic words such as "dictionary", "library", and "stack" for system variable names and function names. But what if the real type of the variable named "dictionaries" was an array? This is just an example, but GitHub Copilot may give the wrong answer when these things pile up. If you need to provide more context, it's a good idea to type hint or use comments to add context.
By following this pattern, we enhance the effectiveness of GitHub Copilot, leading to more accurate suggestions and increased developers' velocity.

https://www.ai-native.dev/docs/design-patterns/ai-readable-naming-convention

@yuhattor yuhattor moved this to Lv0 - Pattern Ideas in GitHub Copilot Patterns Dashboard Aug 21, 2023
@yuhattor yuhattor moved this from Lv0 - Pattern Ideas to Lv2 - Practically Viable Patterns in GitHub Copilot Patterns Dashboard Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Lv2 - Practically Viable Patterns
Development

No branches or pull requests

1 participant