Java Coding Standards

Have Queries? Ask us +91 72592 22234

Course Overview


The Java Coding Standards Course describes a collection of standards, conventions and guidelines for writing Java code that is easy to understand, to maintain, and to enhance. Existing standards from the industry are used wherever possibleThe reason behind each standard is explained so that developers can understand why they should follow it. These standards are based on proven software-engineering principles that lead to improved development productivity, greater maintainability, and greater scalability.

Course Content


GENERAL CONCEPTS

  • WHY CODING StandardsS ARE IMPORTANT
  • THE PRIME DIRECTIVE
  • WHAT MAKES UP A GOOD NAME
  • GOOD DOCUMENTATION
    • The Three Types of Java Comments
    • A Quick Overview of javadoc
  • AMBLER'S LAW OF StandardsS

StandardsS FOR MEMBER FUNCTIONS

  • NAMING MEMBER FUNCTIONS
    • Naming Accessor Member Functions
    • Getters
    • Alternative Naming Convention for Getters - Has and Can
    • Constructors
  • MEMBER FUNCTION VISIBILITY
  • DOCUMENTING MEMBER FUNCTIONS
    • The Member Function Header
    • Internal Documentation
  • TECHNIQUES FOR WRITING CLEAN CODE
    • Document Your Code
    • Paragraph/Indent Your Code
    • Paragraph and Punctuate Multi-Line Statements
    • Use Whitespace in Your Code
    • Follow The Thirty-Second Rule
    • Write Short, Single Command Lines
    • Specify the Order of Operations
  • JAVA CODING TIPS
    • Organize Your Code Sensibly
    • Place Constants on the Left Side of Comparisons

StandardsS FOR FIELDS (ATTRIBUTES/PROPERTIES)

  • NAMING FIELDS
    • Use a Full English Descriptor for Field Names
    • Alternative - Hungarian Notation
    • Alternative - Leading or Trailing Underscores
    • Naming Components (Widgets)
      • Alternative for Naming Components - Hungarian Notation
      • Alternative for Naming Components - Postfix - Hungarian Notation
    • Naming Constants
    • Naming Collections
  • Alternative for Naming Collections - The 'Some' Approach
  • Do Not "Hide" Names
  • FIELD VISIBILITY
  • DOCUMENTING A FIELD
  • THE USE OF ACCESSOR MEMBER FUNCTIONS
  • Naming Accessors
  • Advanced Techniques for Accessors
  • Lazy Initialization
  • Getters for Constants
  • Accessors for Collections
  • Accessing Several Fields Simultaneously
  • Visibility of Accessors
  • Why Use Accessors?
  • Why Shouldn't You Use Accessors?
  • ALWAYS INITIALIZE STATIC FIELDS

StandardsS FOR LOCAL VARIABLES

  • NAMING LOCAL VARIABLES
  • Naming Streams
  • Naming Loop Counters
  • Naming Exception Objects
  • Bad Ideas for Naming Local Variables
  • DECLARING AND DOCUMENTING LOCAL VARIABLES
  • General Comments about Declaration.

StandardsS FOR PARAMETERS (ARGUMENTS) TO MEMBER FUNCTIONS

  • NAMING PARAMETERS
  • Alternative - Prefix Parameter Names with 'a' or 'an‘
  • Alternative - Name Parameters Based on Their Type
  • Alternative - Name Parameters the Same as Their Corresponding Fields
  • DOCUMENTING PARAMETERS

StandardsS FOR CLASSES, INTERFACES, PACKAGES, AND COMPILATION UNITS

  • StandardsS FOR CLASSES.
  • Class Visibility
  • Naming Classes
  • Documenting a Class
  • Class Declarations
  • Apply The "final" Keyword Sensibly
  • Ordering Member Functions and Fields
  • Minimize the Public and Protected Interface
  • StandardsS FOR INTERFACES
  • Naming Interfaces
  • Documenting Interfaces
  • StandardsS FOR PACKAGES
  • Naming Packages
  • Documenting a Package
  • StandardsS FOR COMPILATION UNITS
  • Naming a Compilation Unit
  • Documenting a Compilation Unit

MISCELLANEOUS StandardsS/ISSUES

  • REUSE
  • USE WILD CARDS WHEN IMPORTING CLASSES
  • Alternative - Explicitly Specify Each Imported Class
  • OPTIMIZING CODE
  • WRITING JAVA TEST HARNESSES
  • THE SECRETS OF SUCCESS
    • USING THESE StandardsS EFFECTIVELY
    • OTHER FACTORS THAT LEAD TO SUCCESSFUL CODE

Customer Reviews


Thanks to Xpertised and the tutor who walked me through all the topics with Practical exposure which is helping me in my current project.
-Waseem

Course was quite helpful in terms of understanding of concepts and practicality. Its really a very friendly environment to learn. The timing were mutually chosen, as we both are working professional. I am quite satisfied with the course.
-Tanmoy

...more
Share:

For Batch Details
Call us at: +91 7259222234

Not sure? Consult Our Experts

Looking for a Training for

Myself

My Team/Organization

I agree to be contacted over mail or phone

or
Call us at: +91 7259222234