Software Coding- Software Coding

nik1020 3,592 views 15 slides Feb 12, 2016
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Software Coding
-Software Standards and Guidelines
-Software Documentation
-Software Review


Slide Content

Software Engineering
Software Coding
1

Overview
•Objective of Coding.
•Software Standards.
•Software Guidelines.
•Software Review.
•Software Documentation
2

Objective of Software Coding
•Transform Design of a system into code.
•And then to test this code.
•Programmers should adhere well defined.
standards for coding called coding standards.
3

Why Coding Standards and Guidelines?
•They are required for:
Software maintainability
To Add features to software
Clean coding
Error free/ Very few errors in the code.
Easy debugging
4

Coding Guidelines
•Coding Guidelines are rules about how to write
code so that it will be:
•Consistent
•Robust
•Easily Understood
5

Coding Standards
•Coding standards are coding guidelines, which
are acceptable to the entity(e.g. Software
Company) that is paying the coder for writing
that code.
•Gives uniform appearance to the codes.
•It enhances code understanding.
•It encourages good programming practices.
6

Representative Coding Standards
•Limiting the use of global data type
•Contents of the headers preceding codes for
different modules
•Naming conventions for global variables, local
variables, and constant identifiers
•Error return conventions and exception handling
mechanisms
7

Google’s Java coding standards
•No wildcard imports.
•Overloads appear sequentially.
•2 spaces indentation.
•Braces are used even when the body is empty or
contains a single statement.
•Column limit can be 80 or 100 characters.
•No C-style array declarations.
•The default statement in switch statements are
required.

Code Review
•Code review for a model is carried out after
the module is successfully compiled and the
all the syntax errors have been eliminated.
•Normally, two types of reviews are carried out
on the code of a module
•Code walkthrough
•Code Inspection

Code Review
•Code walkthrough
•To discover the algorithm and logical errors.
•Code Inspection
•The aim of code inspection is to discover some
common types of errors caused due to oversight
and improper programming.

Software Documentation
•Software Documentation is written text
accompanying software
•It’s varies from people to people depending on
their role.
•It is very useful aspect of Software
engineering.

Software Documentation
•Software Documentation includes:
•Requirements
•Architecture/ Design
•Technical – Documentation of code/Algo.
•Manuals for End-User.
•Marketing – Demands and analysis.

Example of Software Documentation

References
•Wikipedia: -
•https://en.wikipedia.org/wiki/Use_Case_Diagram
•https://en.wikipedia.org/wiki/Sequence_diagram
•https://google.github.io/styleguide/javaguide.html
14

Thank you