whats the use of following Good Coding Practices?

Answer Posted / suresh.chaluvadi

For Efficiency: The easier your code is to read and follow,
the easier it will be to keep track of where you are with
your code, and the quicker it will be to pick up where you
left off after a break.

For Easier Debugging: Knowing where your problem lies is a
major debugging tool. If you used comments,you can easily
follow your own logic, and if you have line numbers and
consistent formatting,you can easily scan your document to
pinpoint a trouble area.

For future expansions and modifications: Using comments in
your code is especially important for future changes,
because it?s difficult to remember the logic behind code
that was written years or even just months ago. Also, if you
are working on code that involves a team, if everyone
is using the same coding styles, it will be much easier to
make changes or additions to someone else?s work down the road.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the merger sort principle and its time complexity.

641


Explain polymorphism. Provide an example.

618


what is session state?

1527


What is SAP TAO? · Which Version you are using? · What is the Latest Version in SAP TAO? · What are the Advantages in SAP TAO? · What are the Patches required for SAP TAO? · What is BPT? · Difference between BPT & SAP TAO? · Which Framework using for SAP TAO? · What is CBASE? · What is the SAP TAO Architecture? · What are the Prerequisites for SAP TAO? · SAP Solution Manager Mandatory for SAP TAO 1.0? · SAP Solution Manager Mandatory for SAP TAO 2.X? · What is UI Scanner? · What is Inspector? · How many ways to Create a components using TAO 1.0? · How many ways to Create a components using TAO 2.x? · Which service pack required for SAP TAO 2.7? · What is Import/Export? · What is Consolidate?

2393


what are other resources are needed for this mantis?

1521






Hey this is venkatesh.Please can any body tell me what is SFLNXTCHG?where we use this keyword?what perpuse we use this?Can you tell me in real time senario with example? And in 7 specification(RPG/400)what is the mandatory specification using programs?

1529


Definition of Singleton Class? what is the Purpose of it? what is the advantage?

1593


what is c sharp dotnet

1749


How to merge Action Form with Dyna Action Form in Struts.

1896


What is ur porject Architecture? If anyone ask what i have to specify here..

1491


how to generate dsnless connectivity in j2ee

1529


what is class module in vb6? what it's use? with example..

1951


hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern

1534


< DL Compact > tag is used for

1550


what is adodb??y it is used for connection of V.B and access??what is ado?dao?

1777