What is good code?

Answers were Sorted based on User's Feedback

What is good code?..

Answer / rad

These are some important qualities of good code

Cleanliness: Clean code is easy to read; this lets people
read it with minimum effort so that they can understand it

Consistency: Consistent code makes it easy for people to
understand how a program works; when reading consistent
code; one subconsciously forms a number of assumptions and
expectations about how the code works, so it is easier and
safer to make modifications to it.

Extensibility: General-purpose code is easier to reuse and
modify than very specific code with lots of hard coded
assumptions. When someone wants to add a new feature to a
program, it will obviously be easier to do so if the code
was designed to be extensible from the beginning.

Correctness: Finally, code that is designed to be correct
lets people spend less time worrying about bugs and more
time enhancing the features of a program.

Is This Answer Correct ?    0 Yes 0 No

What is good code?..

Answer / radhika

A code whether it is good or bad can be known only if it is
tested. So good coding ,results in low bug density(Low
severity +Low prioirity defects or no defects at all)

Is This Answer Correct ?    0 Yes 0 No

What is good code?..

Answer / rajeshwar rao

A good code which is===1. Bug free.2.
reusable.3.independent.4.less complaxcity.5.well documented
easy to change is called good code

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Manual Testing Interview Questions


4 Answers  

Write the test cases for godaddy home page

0 Answers   ABC,

Do you know anything about Set Top Boxes?

0 Answers   Standard Bank,

For a functionality 50 test cases are passed and we released the code with all the test reports etc etc.. But in customer side all the 50 test cases are failed. How will you answer for this error to ur manager and Customer?

2 Answers   IBS,

What is difference between Smoke&Sanitary Testing?

9 Answers   Infotech, HCL,

what are the reason for assigning the status Postponed and differed to a bug? Pls tell me with exampless

2 Answers  

how would u ensure 100% coverage testing?

4 Answers  

What is the difference between V-Model and Raid Model

1 Answers  

What is the limit for test steps?It should be 10/20/30etc

0 Answers  

How will you set the Dependency in the Quality center? Say if you will fail a test case and two or more test cases are dependent on that particular test case. In this case how will you handle in failing the test case.

0 Answers   IBM,

Orthogonal Arry Testing?

4 Answers   ADITI,

we are about to implement a Test tool to test the performance of website, so what script does a tester should know (friends plz help me)

0 Answers