0% found this document useful (0 votes)
7 views

Programming Guidelines

Uploaded by

rayin58259
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Programming Guidelines

Uploaded by

rayin58259
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 14

Programming Guidelines

XI-IP
Introduction
• Programming guidelines provides a very
comfortable feel to the programmer to develop
applications without getting into complicated and
cumbersome logic and command.
• It helps to utilize GUI tools to develop programs for
various application in efficient and effective
manner.
Application Development Guidelines :
• Error free coding.
• Meaningful names for identifiers.
• Clarity of expressions and structures.
• Use of comments and indentation.
• Insert blank lines and blank spaces.
• Statement formatting style.
Characteristics of good program:
• Effective and efficient.
• Reliable.
• Portable
• Self documenting code.
• User friendly
Stages of GUI Development
Stages of GUI Development Process:
• Analysis – Understanding the problem,
identify the requirements .
• Design – Planning of step-by-step procedures
required to solve a given problem.
– Input
– Output
– User Interface
– Modular Components
– Algorithms
Stages of GUI Development Process:
• Coding – Actual writing of programs using
appropriate, optimum and easy
understandable code.

• Testing & Debugging – Detection method of a


program is Testing. Defects in the code is called
‘bugs’ and the elimination of bugs is known as
debugging.
Stages of GUI Development Process:
• Documentation – The instruction and
information about the uses of the application.
It help to understand the functionality of
application.

• Maintenance – At the time using application,


any kind of error is their, then maintenance is
involves the rectification and editing of codes.
Errors
• An error, sometimes called ‘bug’ is anything in
the code that prevents and program from
compiling and running correctly.

• Types of Errors: Different types of errors


encountered while developing any application.
1. Syntax Error (compile-time error)
2. Run-time Error
3. Logical Error
Types of errors
• Syntax Error – Formal set of rules defined for
writing any statement in a language is known
as syntax. Syntax error occur when syntax
rules of any programming language are
violated.
These errors occurs during the compilation of the
application but in NetBeans these errors are
highlighted in the design stage itself.
Types of errors
• Run-time Error – These errors occur during
the execution of an application. It will result
in abnormal termination of the application.
e.g. – division by zero, trying to convert to number
Types of errors
• Logical Error – In case the appliation is not
giving any compilation or runtime error but
still giving incorrect output, it is logical error.
These errors occurs due to mistakes on condition
expression's etc.
Exception Handling
• Handling of errors and debugging methods
are called exception handling. In java
exception handling is done using try {} and
catch{} blocks.
Queries :
• Differentiate between errors.
• Explain the following terms :
– Syntax
– Debugging
– Portability
– Exception Handling
– Pretty printing (formatting of program)
– Robustness
– Guard Code

You might also like