flâneur — a map of the web's best reading

vu-cs3270-s24/hw05-i-DavidHuang2002: hw05-i-DavidHuang2002 created by GitHub Classroom

github.com · saved by 1 readers

Names: Use proper style for names. The naming convention in Prolog is to separate multi-word names with underscores. For example, a predicate that determines if an element is a member of a list could be called my_member and an atom that represents a particular book title could be called tree_of_hands. For variables, multi-word names can also be separated with an uppercase first letter for each name. For example, a variable that represents a last name could be called Last_Name or LastName. Also, use meaningful names. For example, a name representing speed should be called speed instead of just s. Line lengths: No lines should exceed 100 columns. Indentation: Use proper and consistent indentation. When separating out sub-goals of a single rule into multiple lines, use consistent indenting for all sub-goals after the first line of the rule. Whitespace: Predicates with different names should be separated by at least one empty line. Comments: Provide a short descriptive comment before each

Names: Use proper style for names. The naming convention in Prolog is to separate multi-word names with underscores. For example, a predicate that determines if an element is a member of a list could be called my_member and an atom that represents a particular book title could be called tree_of_hands. For variables, multi-word names can also be separated with an uppercase first letter for each name. For example, a variable that represents a last name could be called Last_Name or LastName. Also, use meaningful names. For example, a name representing speed should be called speed instead of just

Explore this link on the map →