Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you haven't received our response, please do the following:
check your Spam/Junk folder and click the "Not Spam" button for our message.
This way, you won't miss messages from our team in the future.

>
>
>
Source code

Source code

Apr 05 2013

Computer program code is a text written in any of the programming languages. It is first of all meant to be written and edited by a human. Computer program code is also called source code or software source text.

Source code is transformed into executable processor instructions prior to being executed by a compiler or is directly executed by an interpreter of a programming language.

When writing computer program code, it's important that you stick to the following rules:

  • the code must be readable and comprehensible;
  • it must be easy to modify and debug;
  • there must be as few compiler warnings as possible for this code.

It's first of all humans who need code formatting and accurate editing. The compiler can easily figure out a text like this:

int foo(int N)
{int i=0;for(int y=0;y<N;y++){i+=y*y;}return i;}

But you agree that a human will find it hard to understand what exactly the program does, don't you? And here is a code that does quite the same thing, while being edited in a proper way:

int Sum(int N)
{
  int sum = 0;
  for (int i = 0; i < N; i++)
  {
    sum += i * i;
  }
  return sum;
}

When a software product is being developed by several developers, it's a good practice to follow a single coding standard to make the code clear to others. It will significantly simplify computer program code development and maintenance.

References

Popular related articles


Comments (0)

Next comments next comments
close comment form