Well-written source code is important in creating and maintaining an error-free and robust software application. In this course, you'll learn best practices for writing and documenting your source code. Additionally, best practices for variable naming, working with methods and classes, and object-oriented principles will also be examined.
Learning Objectives
General Coding Conventions
- start the course
- recognize the benefits and importance of writing quality source code
- describe the concept of self-documenting code and its importance in the creation process
- describe why you should include comments in your code and distinguish good comments from bad ones
- identify best formatting practices for use in your source code
- identify source code that utilizes best coding conventions
Identifiers
- recognize the benefits of using best practices for naming identifiers in your program
- recognize the various styles used in different programming languages for naming identifiers
- recognize the best practices used when naming identifiers
- recognize identifiers that follow the best practices
Writing Methods
- describe the purpose of methods and be able to distinguish between methods and procedures
- describe method cohesion and its advantages when creating methods
- identify best practices for working with arguments and distinguish between by value and by reference parameters
- identify best practices for working with return values
- identify best practices for working with exceptions
- identify source code that follows best practices for method writing
Object-Oriented Coding
- describe the capabilities of a class, including abstraction and encapsulation
- recognize best practices for using constructors and destructors
- identify best practices for declaring a class and creating an object of that class
- recognize best practices for implementing inheritance and polymorphism
- describe the characteristics and use of interfaces and abstract classes
- recognize how to create and work with interfaces
- recognize how to create and work with abstract classes
Practice: Best Coding Practices
- describe the benefits of following best practices when creating source code