AI readable naming convention
Name your variables and functions in a way that is readable by AI. Because AI behind GitHub Copilot is GPT-based, which is essentially a natural language model, it will understand code as natural lang
Description
Example
# This may confuse whether "dictionary" refers to a book or a data type dictionary =# sample list of dictionaries in the library, like "Oxford" and "Cambridge" library_dictionaries = ["Merriam-Webster", "Oxford", "Cambridge"]from typing import List # A clear and specific variable name with type hinting list_of_dictionaries_in_library: List[str] = ["Merriam-Webster", "Oxford", "Cambridge"]
Exerecise
Checklist for Further Learning
Last updated