Maintain your old Siemens Hipath system

Importance of Coding Standards

Programming Help for Beginners

We write programs to instruct computers. When programming using a high level programming language like C++ or Java, we are using a syntax that is somewhat closer to human languages. However, we use these programs as inputs to either compilers or interpreters to be converted to computer understandable binary format. For this reason, as far as the program code adheres to the syntax of the used programming languages, the compilers and interpreters never bother about the layout or visual formatting of the program code. However, as human programmers, we ourselves need to bother about the aesthetics of the program code.

What is a Coding Standard?

A coding standard is a set of guidelines, rules and regulations on how to write code. Usually a coding standard includes guide lines on how to name variables, how to indent the code, how to place parenthesis and keywords etc. The idea is to be consistent in programming so that, in case of multiple people working on the same code, it becomes easier for one to understand what others have done. Even for individual programmers, and especially for beginners, it becomes very important to adhere to a standard when writing the code. The idea is, when we look at our own code after some time, if we have followed a coding standard, it takes less time to understand or remember what we meant when we wrote some piece of code.

Coding Standards Make a Difference

Look at the following example:

int volume(int i, int j, int k) {
int vol;
vol = i * j * k;
return vol;

Looking at this code at a glance, it takes some time for one to understand that this function calculates the volume. However if we adhere to a naming convention for variables and method names, we could make the code more readable.

Here are few sample conventions:

  • use meaningful variable names
  • use verbs in method names
  • use nouns for variables
  • use 4 spaces to indent
  • int calculateVolume(int height, int width, int length) {
    int volume = 0;
    volume = height * width * length;
    return volume;

    It takes more time to type this code, however this saves far more time. This code is far more readable than its original version. With a little bit of effort, we could make the code much more understandable.

    The Benefits

    It is not only the readability that we get through a coding standard in programming. Writing more secure code could also be encouraged through a coding convention. As an example, in C++ we could say that each pointer variable must be initialized to NULL.

    char* myName = NULL;

    This ensures that we would not corrupt memory while using this pointer variable.

    Code readability is just one of the aspects of maintainability. Coding standards help a great deal with program maintainability, our ability to change programs with ease. Consistency imposed through a coding standard is a key factor to achieve success in maintaining prorams.

    Defining Your Own Coding Standard

    A programmer can define his or her own coding convention and adhere to that in writing programms. However there are many coding conventions available on the Internet. Those who program in Java should have a look into - Code Conventions for the Java Programming Language by Sun.

    For C++ coding standards, I would recommend that you have a look into - C++ Coding Standards from BBC. - C++ Programming HOWTO has some C++ Coding Conventions and also a bunch of links that lead to several coding standards that you can pick from.

    John Dirk
    Programming Consultant
    Programming ( Assignment / Project ) Help

    In The News:

    'US no migrant camp' - Trump on tough border policy
    Mon, 18 Jun 2018 17:30:00 +0100
    US President Donald Trump has defended the policy of separating migrant children from their parents at border camps.

    One dead and four wounded in Sweden shooting
    Mon, 18 Jun 2018 19:59:00 +0100
    One person has died and four injured in a shooting in the Swedish city of Malmo.

    Rapper XXXTentacion shot dead in Florida
    Mon, 18 Jun 2018 23:15:00 +0100
    Rapper XXXTentacion has been shot dead in south Florida.

    Kim Jong Un visits China after denuclearisation summit
    Tue, 19 Jun 2018 05:22:00 +0100
    North Korean leader Kim Jong Un is beginning a two-day visit to China, following his summit with Donald Trump in Singapore last week.

    Being married is good for the heart
    Tue, 19 Jun 2018 04:31:00 +0100
    Married people are less likely to develop heart disease or have a stroke than those who are single, according to new research.

    Erfahrungen mit Pallhuber Wein
    Agen Bola SBOBET Terpercaya

    Travel in comfort and at your leisure with CT Airlink Limousine & Car Service for top quality private transportation and exceptional customer service. We operate Sedans, SUVs & Vans for CT Car Services to covering all Connecticut airports including Car Service from CT to Newark Airport , Mohegan Casino Uncasville CT, Foxwoods Casino Mashantucket CT, Manhattan Cruise Terminal NYC, Brooklyn Cruise Terminal NYC and Bayonne Cruise Terminal NJ. CT Airlink hire licensed and friendly chauffeurs who have in-depth knowledge of the Areas.

    How to Upgrade Dexterity Customization ? Tips for IT Manager

    If you have Microsoft Great Plains and support it... Read More

    How to Choose the BEST Charting Software

    I suggest that you do not spend a lot of... Read More

    Recovering Microsoft Great Plains Customization ? Tips for IT Director

    Remember nice and prosperous Clinton era? When you implemented innovative... Read More

    Microsoft CRM Data Conversion FAQ

    Microsoft Business Solutions CRM data conversion deserves FAQ type of... Read More

    5 Time-Saving Tips in Microsoft Word

    Whether you have used Microsoft Word for years, have just... Read More

    Great Plains Bill of Materials Setup & Customization for Process Manufacturing ? Overview

    Microsoft Great Plains has full-featured Manufacturing suite of modules: Capacity... Read More

    Cisco Certification: Introduction To ISDN, Part IV

    In part III of this ISDN primer, we learned that... Read More

    Oracle Development: JDeveloper 10G ? Java, J2EE, EJB, MVC, XML - Overview For Programmer

    In 2004 Oracle, Inc. made its new step toward J2EE... Read More

    CROOK: A Methodology for the Refinement of Forward-Error Correction

    Table of Contents1) Introduction 2) Related Work 3) Framework 4)... Read More

    Microsoft CRM for Large Corporation ? Security

    Microsoft Business Solutions CRM proved to be reliable solution in... Read More

    RFID: Strengthen the Position for SAP; United States

    SAP Inc., a global leader in client/server enterprise application software... Read More

    Software For Your Hard-Drive

    All your software is stored on a hard-drive. But how... Read More

    Microsoft Great Plains Payroll Module Customization Scenarios

    It is now common thing when large corporation selects mid-market... Read More

    Microsoft Business Solutions Customization Options - Overview for Programmer

    Several years ago Microsoft purchased Great Plains Software, then Navision... Read More

    Basic Steps To Optimize Your Internet Security

    After seeing many people complain about their weak Internet security... Read More

    Fundraising Software ? How Can That Help Me?

    Fundraising software lets you connect with donors in a way... Read More

    The XP Firewall Isnt Enough

    You might think you don't need a firewall... Read More

    Blind CC (Bcc): Master Its Use When E-Mailing

    If you use Microsoft Outlook (or similar applications) for e-mailing,... Read More

    Know-how in Microsoft Publisher

    For those who still don't know, Microsoft Publisher helps computer... Read More

    A Symons Mark II Function Point Counting Example

    I provide, here clear explanations and a count of function... Read More

    eCommerce development for Microsoft Great Plains: tools and highlights for programmer

    Microsoft Business Solutions Great Plains, former Great Plains Software Dynamics... Read More

    Do You Know These Facts About Spyware ?

    Imagine something that follows you home and sets itself up... Read More

    Microsoft Great Plains: Offshore Customization & Development ? Overview for Consultant

    When you visit department stores and see that majority of... Read More

    Microsoft Great Plains - Typical Problems And Fixes ? Overview For IT Administrators

    How to delete the user? This is the first problem... Read More

    Document Templates Give You The Perfect Framework For Your Documents

    When it comes to running an office, the SOHO entrepreneur... Read More