SlideShare ist ein Scribd-Unternehmen logo
1 von 15
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

Weitere ähnliche Inhalte

Was ist angesagt?

The Art Of Debugging
The Art Of DebuggingThe Art Of Debugging
The Art Of Debugging
svilen.ivanov
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
Chankey Pathak
 
1.1 The nature of software.ppt
1.1 The nature of software.ppt1.1 The nature of software.ppt
1.1 The nature of software.ppt
JAYAPRIYAR7
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
Chandan Chaurasia
 

Was ist angesagt? (20)

The Art Of Debugging
The Art Of DebuggingThe Art Of Debugging
The Art Of Debugging
 
Software Testing Fundamentals
Software Testing FundamentalsSoftware Testing Fundamentals
Software Testing Fundamentals
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
Cohesion and coupling
Cohesion and couplingCohesion and coupling
Cohesion and coupling
 
Software Cost Estimation Techniques
Software Cost Estimation TechniquesSoftware Cost Estimation Techniques
Software Cost Estimation Techniques
 
Language and Processors for Requirements Specification
Language and Processors for Requirements SpecificationLanguage and Processors for Requirements Specification
Language and Processors for Requirements Specification
 
2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf2- THE CHANGING NATURE OF SOFTWARE.pdf
2- THE CHANGING NATURE OF SOFTWARE.pdf
 
Design Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software EngineeringDesign Model & User Interface Design in Software Engineering
Design Model & User Interface Design in Software Engineering
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
 
Static analysis
Static analysisStatic analysis
Static analysis
 
9. Software Implementation
9. Software Implementation9. Software Implementation
9. Software Implementation
 
Chapter 1 2 - some size factors
Chapter 1   2 - some size factorsChapter 1   2 - some size factors
Chapter 1 2 - some size factors
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Introduction to software testing
Introduction to software testingIntroduction to software testing
Introduction to software testing
 
Assemblers
AssemblersAssemblers
Assemblers
 
1.1 The nature of software.ppt
1.1 The nature of software.ppt1.1 The nature of software.ppt
1.1 The nature of software.ppt
 
Software requirements
Software requirementsSoftware requirements
Software requirements
 
Software Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & SpecificationSoftware Engineering : Requirement Analysis & Specification
Software Engineering : Requirement Analysis & Specification
 
Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)Performance analysis(Time & Space Complexity)
Performance analysis(Time & Space Complexity)
 
Software Configuration Management
Software Configuration ManagementSoftware Configuration Management
Software Configuration Management
 

Andere mochten auch

Intro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding StandardsIntro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding Standards
Radu_Negulescu
 
Chapter23 friend-function-friend-class
Chapter23 friend-function-friend-classChapter23 friend-function-friend-class
Chapter23 friend-function-friend-class
Deepak Singh
 

Andere mochten auch (20)

Coding and testing in Software Engineering
Coding and testing in Software EngineeringCoding and testing in Software Engineering
Coding and testing in Software Engineering
 
Coding
CodingCoding
Coding
 
Ui Designing
Ui DesigningUi Designing
Ui Designing
 
Intro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding StandardsIntro to Software Engineering - Coding Standards
Intro to Software Engineering - Coding Standards
 
Advanced topics in software engineering
Advanced topics in software engineeringAdvanced topics in software engineering
Advanced topics in software engineering
 
Diodes
DiodesDiodes
Diodes
 
Functions in C++
Functions in C++Functions in C++
Functions in C++
 
Chapter23 friend-function-friend-class
Chapter23 friend-function-friend-classChapter23 friend-function-friend-class
Chapter23 friend-function-friend-class
 
Object as function argument , friend and static function by shahzad younas
Object as function argument , friend and static function by shahzad younasObject as function argument , friend and static function by shahzad younas
Object as function argument , friend and static function by shahzad younas
 
Safety rules and earthing
Safety rules and earthingSafety rules and earthing
Safety rules and earthing
 
Software development life cycle Construction phase
Software development life cycle Construction phaseSoftware development life cycle Construction phase
Software development life cycle Construction phase
 
Simplifies and normal forms - Theory of Computation
Simplifies and normal forms - Theory of ComputationSimplifies and normal forms - Theory of Computation
Simplifies and normal forms - Theory of Computation
 
Inline Functions and Default arguments
Inline Functions and Default argumentsInline Functions and Default arguments
Inline Functions and Default arguments
 
Arrays Basics
Arrays BasicsArrays Basics
Arrays Basics
 
Quality & Reliability in Software Engineering
Quality & Reliability in Software EngineeringQuality & Reliability in Software Engineering
Quality & Reliability in Software Engineering
 
Spyware and rootkit
Spyware and rootkitSpyware and rootkit
Spyware and rootkit
 
Inheritance, friend function, virtual function, polymorphism
Inheritance, friend function, virtual function, polymorphismInheritance, friend function, virtual function, polymorphism
Inheritance, friend function, virtual function, polymorphism
 
CHAIN RULE AND IMPLICIT FUNCTION
CHAIN RULE AND IMPLICIT FUNCTIONCHAIN RULE AND IMPLICIT FUNCTION
CHAIN RULE AND IMPLICIT FUNCTION
 
The scope of contribution
The scope of contributionThe scope of contribution
The scope of contribution
 
Friend function & friend class
Friend function & friend classFriend function & friend class
Friend function & friend class
 

Ähnlich wie Software Coding- Software Coding

Quality metrics and angular js applications
Quality metrics and angular js applicationsQuality metrics and angular js applications
Quality metrics and angular js applications
nadeembtech
 
The Dark Side of Code Metrics
The Dark Side of Code MetricsThe Dark Side of Code Metrics
The Dark Side of Code Metrics
Donald Belcham
 
11. Lecture 19 Code standards and review.ppt
11. Lecture 19 Code standards and review.ppt11. Lecture 19 Code standards and review.ppt
11. Lecture 19 Code standards and review.ppt
MaddalaSeshu
 

Ähnlich wie Software Coding- Software Coding (20)

Quality metrics and angular js applications
Quality metrics and angular js applicationsQuality metrics and angular js applications
Quality metrics and angular js applications
 
Unit_5 and Unit 6.pptx
Unit_5 and Unit 6.pptxUnit_5 and Unit 6.pptx
Unit_5 and Unit 6.pptx
 
Code Inspection
Code InspectionCode Inspection
Code Inspection
 
Capability Building for Cyber Defense: Software Walk through and Screening
Capability Building for Cyber Defense: Software Walk through and Screening Capability Building for Cyber Defense: Software Walk through and Screening
Capability Building for Cyber Defense: Software Walk through and Screening
 
Software coding & testing, software engineering
Software coding & testing, software engineeringSoftware coding & testing, software engineering
Software coding & testing, software engineering
 
SE2_Lec 18_ Coding
SE2_Lec 18_ CodingSE2_Lec 18_ Coding
SE2_Lec 18_ Coding
 
SE2018_Lec 17_ Coding
SE2018_Lec 17_ CodingSE2018_Lec 17_ Coding
SE2018_Lec 17_ Coding
 
White box testing
White box testingWhite box testing
White box testing
 
Code Review for iOS
Code Review for iOSCode Review for iOS
Code Review for iOS
 
Coding - SDLC Model
Coding - SDLC ModelCoding - SDLC Model
Coding - SDLC Model
 
Coding Standard And Code Review
Coding Standard And Code ReviewCoding Standard And Code Review
Coding Standard And Code Review
 
JavaScript Style guides
JavaScript Style guidesJavaScript Style guides
JavaScript Style guides
 
Expert Code Review best practices
Expert Code Review best practicesExpert Code Review best practices
Expert Code Review best practices
 
An Introduction To Software Development - Implementation
An Introduction To Software Development - ImplementationAn Introduction To Software Development - Implementation
An Introduction To Software Development - Implementation
 
Code Review
Code ReviewCode Review
Code Review
 
The Dark Side of Code Metrics
The Dark Side of Code MetricsThe Dark Side of Code Metrics
The Dark Side of Code Metrics
 
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
EMBEDDED SYSTEMS SYBSC IT SEM IV UNIT V Embedded Systems Integrated Developme...
 
Unit iv
Unit ivUnit iv
Unit iv
 
11. Lecture 19 Code standards and review.ppt
11. Lecture 19 Code standards and review.ppt11. Lecture 19 Code standards and review.ppt
11. Lecture 19 Code standards and review.ppt
 
Java Code Quality Tools
Java Code Quality ToolsJava Code Quality Tools
Java Code Quality Tools
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

Software Coding- Software Coding

  • 2. Overview • Objective of Coding. • Software Standards. • Software Guidelines. • Software Review. • Software Documentation 2
  • 3. 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
  • 4. 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
  • 5. Coding Guidelines • Coding Guidelines are rules about how to write code so that it will be: • Consistent • Robust • Easily Understood 5
  • 6. 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
  • 7. 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
  • 8. 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.
  • 9. 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
  • 10. 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.
  • 11. 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.
  • 12. Software Documentation • Software Documentation includes: • Requirements • Architecture/ Design • Technical – Documentation of code/Algo. • Manuals for End-User. • Marketing – Demands and analysis.
  • 13. Example of Software Documentation
  • 14. 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