Defensive Programming Approach - A developer must have this skill


Defensive programming is a form of defensive design intended to ensure the continuing function of a piece of software under unforeseen circumstances. Defensive programming practices are often used where high availability, safety or security is needed — Wikipedia

Defensive programming techniques are used especially when a piece of software could be misused mischievously or inadvertently to catastrophic effect.

# Defensive programming is an approach to improve software and source code, in terms of:
# General quality – reducing the number of software bugs and problems.
# Making the source code comprehensible – the source code should be readable and understandable so it is approved in a code audit.
# Making the software behave in a predictable manner despite unexpected inputs or user actions

Key points in order to achieve a Defensive Programming approach.These are as follows.
1.Don’t trust developers


2.Never trust user input


3.Use database abstraction


4.Don’t reinvent the wheel


5.Write SOLID code


6.Write tests

Comments

Popular posts from this blog

OutSystems – A Low-code Development Platform

What is difference between Azure Cognitive Search and Elastic Search

failed to access iis metabase asp.net