Syntax, Variables, Objects, and Classes

Course Description

Clean coding is as much about the code itself as it is about principles. In this course, you'll learn about syntax, variables, objects, and classes and methods for better clean coding.

Learning Objectives

Syntax and Formatting

start the course

describe how syntax, regardless of language, should be honored and respected

define the purpose of commenting and why it's important in clean coding

specify the purpose of indentation and why it's important in clean coding

describe the purpose of white space and why it's important in clean coding

Naming Conventions

define the purpose of using proper naming conventions in clean coding

use camel case and pascal case and state why it's important to choose the right case in clean coding

use snake case and describe why it's important to choose the right case in clean coding

Variable Basics

define the purpose of variables and how they relate to clean coding

describe variable naming and how it may be used in clean coding

define the difference between local and global variables and how they may be used in clean coding

describe explicit naming and how it may be implemented in clean coding

Nesting and Return Statements

describe deep nesting and why it may be avoided in clean coding

describe return statements and why it's important to consider their use in clean coding

Classes and Objects

define classes and objects and how they may be implemented in clean coding

specify encapsulation and how it may be implemented in clean coding

define whether public, private, or protected members may be implemented in clean coding

describe inheritance and how it may be implemented in clean coding

discuss fluency and what it represents in clean coding

Practice: Variables, Objects, and Classes

describe clean coding techniques for variables, objects, and classes

Framework Connections

The materials within this course focus on the Knowledge Skills and Abilities (KSAs) identified within the Specialty Areas listed below. Click to view Specialty Area details within the interactive National Cybersecurity Workforce Framework.