Naming conventions are a set of rules or guidelines used to create names for files, variables, functions, and other items in computer programming and software development. These rules help make code easier to read, understand, and maintain. For example, a naming convention might suggest using lowercase letters and underscores to separate words, like 'student_name', or using camelCase, where the first word is lowercase and each following word starts with a capital letter, like 'studentName'. By following these conventions, programmers can work together more effectively because everyone understands what each part of the code is meant to do, reducing confusion and errors.
Examiner-written GCSE Computer Science revision resources that improve your grades 2x
- Written by expert teachers and examiners
- Aligned to exam specifications
- Everything you need to know, and nothing you don’t

Share this article