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

SAY YOUR PRODUCT PASSED THROUGH TESTING & UAT. NOW IT WENT TO PRODUCTION AT CLIENT LOCATION AND THEY FOUND ONE DEFECT IN IT. HOW THEY NEED TO PROCEED NOW? WILL THEY CONTACT U? OR WILL THEY CONTACT DEVELOPMENT TEAM?

1 Answers   RBS,


what is meant by application server and its functions?

1 Answers   GE, Verizon,


what is ISTQB and CSTE which one is the right choice ? plz let me know and it would be a great advantage for many tester

1 Answers   Tech Mahindra,


Deep structure testing is not designed to Option 1 examine object behaviors Option 2 exercise communication mechanisms Option 3 exercise object dependencies Option 4 exercise structure observable

0 Answers  


Difference between Agile process and V Model

2 Answers   Cap Gemini,






What is your experience with change control? Our development team has only 10 members. Do you think managing change is such a big deal for us?

0 Answers   Ordain Solutions,


What are all the test metrics following by comapany?

2 Answers  


Can a Tester test any application without Specifications/Requirements?

17 Answers  


what is latent bug and golden bug.

7 Answers  


What is blocked defect?

2 Answers  


plz tell me how can testing implement.like-performance testing,functional testing

1 Answers  


How does testing affect risk?

2 Answers  


Categories