etutorialspoint
  • Home
  • PHP
  • MySQL
  • MongoDB
  • HTML
  • Javascript
  • Node.js
  • Express.js
  • Python
  • Jquery
  • R
  • Kotlin
  • DS
  • Blogs
  • Theory of Computation

Characteristics of a Good Computer Program

In this post, you will learn about the characteristics of a good computer program.

We know that each computer requires a proper guidance set (programs) to carry out the necessary task. The processing of the task depends on the given instructions. So it is also important that the provided instructions be given in the proper way. Therefore, a program should be written in such a way that it is easier to understand and implement. So that it can provide us with the desired output.

Characteristics of a Good Computer Program


What is a good computer program?

A computer program is a sequence or set of instructions in a programming language for a computer to execute. While making great projects, we need to follow the specific rules of the programming language to make an effective program. These are some best practises we should always have in mind.

  • Meaningful identifiers
  • Consistent indentation
  • Limit line length
  • File and folder structure
  • Comments




Meaningful identifiers

Identifiers are names for entities in a program, such as variables, arrays, functions, data definitions, labels, etc. An identifier can be composed only of uppercase, lowercase letters, underscore, and digits, but should start only with an alphabet or an underscore. An identifier name should indicate the meaning and usage of the element in code. Example:

int amount;

double totalbalance;

Consistent indentation

Correct use of identifiers, white space, and documentation makes your program easier to understand. Indentation is the better way to represent the relationship between control flow constructs such as selection statements or loops and the code contained within and outside of them. Developers use indentation to understand the structure of their programs for human readers. Example:


If X > Y :
         print "X is bigger than Y." 
else:
         print "Y is bigger than X." 

Limit line length

Long queues are difficult to read. It is decent practise to try not to write long lines of code.





File and folder structure

We should avoid writing all of our code in one or two files. That won't break your application, but it would be a bad experience to read, debug, troubleshoot, and maintain your application in the future. Structuring programming files in folders will make the code a lot more readable, maintainable, easier to locate, and organise files and versions.


Comments

Comments are invaluable in helping the next person who reads your code figure out what you were thinking when you wrote it, even when that person is yourself a month from now. It is good practise to write comments for every function, class, and property in your code. Example:

C Style Comment
/* This is 
* C style
* Comment
*/




What are the characteristics of a program which make it easier?

These are the following characteristics of a good computer program-

Portability

A program should be supported by many different computers. The program should compile and run smoothly on different platforms. Because of rapid development in hardware and software, platform change is a common phenomenon these days. So, portability is measured by how a software application can be transferred from one computer environment to another without failure. A program is said to be more portable if it is easily adopted on different computer systems. Subsequently, if a program is developed only for a particular platform, its life expectancy is seriously compromised.

Maintainability

It is the process of fixing program errors and improving the program. If a program is easy to read and understand, then its maintenance will be easier. It should also prevent unwanted work so that the maintenance cost in the future will be low. It should also have quality to easily meet new requirements. A maintainable software allows us to fix bugs quickly and easily, improve usability and performance, add new features, make changes to support multiple platforms, and so on.





Efficient

Program is said to be more efficient if it takes the least amount of memory and processing time and is easily converted to machine language. The algorithm should be more effective. Every program needs certain processing time and memory to process the instructions and data. The program efficiency is also high if it has a high speed during runtime execution of the program.





Reliable

The user's actual needs will change from time-to-time, so the program is said to be reliable if it works smoothly in every version. It is measured as reliable if it gives the same performance in all simple to complex conditions.

Machine Independent

Program should be machine-independent. Program written on one system should be able to execute on many different types of computers without any changes. It is not system specific and provides more flexibility. An example of this would be Java.

Cost Effectiveness

Cost Effectiveness is the key to measure the program quality. Cost must be measured over the life of the program and must include both cost and human cost of producing these programs.



Flexible

The program should be written in such a manner that it allows one to add new features without changing the existing module. The majority of the projects are developed for a specific period, and they require modifications from time to time. It should always be ready to meet new requirements. Highly flexible software is always ready for a new world of possibilities.





Related Articles

Program to find LCM of two numbers
Program to find HCF of two numbers
Program to reverse a number
Program to find armstrong number
Fibonacci series program
Palindrome number program
Best AI Startups In India
How to install Django on Windows
Stateful vs Stateless
PHP7.3 New Features, Functions and Deprecated Functions
Google pie chart maker
Best programming language to learn in 2021
How is Python best for mobile app development?
Best mvc PHP frameworks in 2019
Top Android App Development Languages in 2019
Bootstrap modal popup example on page load
Convert stdclass object to array in PHP
Convert speech to text in Python
Permutation and Combination in Python
Pascal triangle pattern in Python
Python language translator code




Most Popular Development Resources
Retrieve Data From Database Without Page refresh Using AJAX, PHP and Javascript
-----------------
PHP Create Word Document from HTML
-----------------
How to get data from XML file in PHP
-----------------
Hypertext Transfer Protocol Overview
-----------------
PHP code to send email using SMTP
-----------------
Characteristics of a Good Computer Program
-----------------
How to encrypt password in PHP
-----------------
Create Dynamic Pie Chart using Google API, PHP and MySQL
-----------------
PHP MySQL PDO Database Connection and CRUD Operations
-----------------
Splitting MySQL Results Into Two Columns Using PHP
-----------------
Dynamically Add/Delete HTML Table Rows Using Javascript
-----------------
How to get current directory, filename and code line number in PHP
-----------------
How to add multiple custom markers on google map
-----------------
Get current visitor\'s location using HTML5 Geolocation API and PHP
-----------------
Fibonacci Series Program in PHP
-----------------
How to Sort Table Data in PHP and MySQL
-----------------
Simple star rating system using PHP, jQuery and Ajax
-----------------
Submit a form data using PHP, AJAX and Javascript
-----------------
jQuery loop over JSON result after AJAX Success
-----------------
How to generate QR Code in PHP
-----------------
Simple pagination in PHP
-----------------
PHP MYSQL Advanced Search Feature
-----------------
Recover forgot password using PHP7 and MySQLi
-----------------
PHP Server Side Form Validation
-----------------
PHP user registration and login/ logout with secure password encryption
-----------------
jQuery File upload progress bar with file size validation
-----------------
Simple File Upload Script in PHP
-----------------
Simple PHP File Cache
-----------------
Php file based authentication
-----------------
To check whether a year is a leap year or not in php
-----------------
Calculate distance between two locations using PHP
-----------------
PHP User Authentication by IP Address
-----------------
PHP Secure User Registration with Login/logout
-----------------
How to print specific part of a web page in javascript
-----------------
Simple way to send SMTP mail using Node.js
-----------------
Simple Show Hide Menu Navigation
-----------------
Detect Mobile Devices in PHP
-----------------
Polling system using PHP, Ajax and MySql
-----------------
PHP Sending HTML form data to an Email
-----------------
Get Visitor\'s location and TimeZone
-----------------
Google Street View API Example
-----------------
SQL Injection Prevention Techniques
-----------------
Preventing Cross Site Request Forgeries(CSRF) in PHP
-----------------
Driving route directions from source to destination using HTML5 and Javascript
-----------------
Convert MySQL to JSON using PHP
-----------------
PHP Programming Error Types
-----------------
CSS Simple Menu Navigation Bar
-----------------
Date Timestamp Formats in PHP
-----------------
Set and Get Cookies in PHP
-----------------
How to select/deselect all checkboxes using Javascript
-----------------
How to add google map on your website and display address on click marker
-----------------
How to display PDF file in web page from Database in PHP
-----------------
Write a python program to print all even numbers between 1 to 100
-----------------
PHP Getting Document of Remote Address
-----------------
File Upload Validation in PHP
-----------------


Most Popular Blogs
Most in demand programming languages
Best mvc PHP frameworks in 2019
MariaDB vs MySQL
Most in demand NoSQL databases for 2019
Best AI Startups In India
Kotlin : Android App Development Choice
Kotlin vs Java which one is better
Top Android App Development Languages in 2019
Web Robots
Data Science Recruitment of Freshers - 2019


Interview Questions Answers
Basic PHP Interview
Advanced PHP Interview
MySQL Interview
Javascript Interview
HTML Interview
CSS Interview
Programming C Interview
Programming C++ Interview
Java Interview
Computer Networking Interview
NodeJS Interview
ExpressJS Interview
R Interview


Popular Tutorials
PHP Tutorial (Basic & Advance)
MySQL Tutorial & Exercise
MongoDB Tutorial
Python Tutorial & Exercise
Kotlin Tutorial & Exercise
R Programming Tutorial
HTML Tutorial
jQuery Tutorial
NodeJS Tutorial
ExpressJS Tutorial
Theory of Computation Tutorial
Data Structure Tutorial
Javascript Tutorial






Learn Popular Language

listen
listen
listen
listen
listen

Blogs

  • Jan 3

    Stateful vs Stateless

    A Stateful application recalls explicit subtleties of a client like profile, inclinations, and client activities...

  • Dec 29

    Best programming language to learn in 2021

    In this article, we have mentioned the analyzed results of the best programming language for 2021...

  • Dec 20

    How is Python best for mobile app development?

    Python has a set of useful Libraries and Packages that minimize the use of code...

  • July 18

    Learn all about Emoji

    In this article, we have mentioned all about emojis. It's invention, world emoji day, emojicode programming language and much more...

  • Jan 10

    Data Science Recruitment of Freshers

    In this article, we have mentioned about the recruitment of data science. Data Science is a buzz for every technician...

Follow us

  • etutorialspoint facebook
  • etutorialspoint twitter
  • etutorialspoint linkedin
etutorialspoint youtube
About Us      Contact Us


  • eTutorialsPoint©Copyright 2016-2023. All Rights Reserved.