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
easily.

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

what is difference between test strategies and test data ?

3 Answers   TCS,


suppose if you press a link in yahooshopping site in leads to some other company website?how to test if any problem in linking from one site to another site?

3 Answers   Verizon,


If you stuck somewhere while reproducing defect then what will you do?

3 Answers   CybAge,


Suppose there are three modules A-B-C, the output of A is responsible for B and output of B is responsible for C and if A & C is not ready & B module is ready then how can u check Module B

5 Answers   CVC, Global Logic,


what is the difference between functional testing and regresion testing

6 Answers   Omnitech,






Who will do the design phase testing?

3 Answers   Hoch Technologies,


what is the diff b/w bug and defect?

5 Answers  


How will you divide two numbers without using the division operator?

2 Answers   Aspire, College School Exams Tests,


severity and priority of bugs?

9 Answers   Wipro,


Puzzle:A rope, a match box are given.the rope takes 1 hr to burn off completely.the rope is not uniform.there is no watch with u.how can u calculate half an hour of time?

10 Answers   ITC Infotech,


How much experience do we have to become a QA? What are the responsibilities of QA?

2 Answers   Vistar Tech,


In testing can you explain the concept of work bench?

1 Answers  


Categories