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

what is the difference between use case and test case?

5 Answers  

How to measure test effectiveness?

0 Answers  

What is the difference between two tier and three tier architecture?

4 Answers   IBM,

Does alpha testing follow beta testing or beta testing follow alpha testing and why?

3 Answers  

what are the different stages in sdlc?

13 Answers   Millennium,

Hi,please help me out with my ques:what will be the url link while doing the testing?

1 Answers  

What are the Test cases for website home page? OR How you will Check website home page?

2 Answers   Kitai Technologies,

What is meant by Boundary value analisis and Equalence partitioning? Can give derive this using these methods? In a system designed to work out the tax to be paid: An employee has £4000 of salary tax free. The next £1500 is taxed at 10% The next £28000 is taxed at 22% Any further amount is taxed at 40% Which of these groups of numbers would fall into the same equivalence class? a) £4800; £14000; £28000 b) £5200; £5500; £28000 c) £28001; £32000; £35000 d) £5800; £28000; £32000

0 Answers   TCS,

Can anybody give whole test cases for banking module.it should include from start to end .that will help me more.to do study.it should contain account,deposite,withdraw,fd,atm modules.?please try to give me??

0 Answers   HCL,

who will infrom the testers when the build is ready to test from developement side?

5 Answers   Infosys,

A Succesful testcase Means..?

14 Answers   HCL,

online demo for bug tracker tool(let me know the website)

0 Answers