What is good code?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When we are recording in WinRunner and interact with the AUT, what does WinRunner do?

1595


Why performance testing is performed? What are tools of performance testing?

717


What are the typical risks that you identify during test planning and their mitigation plan and Contengency plan.

2002


which of the following is not a coding defect? Option 1 Test harness defect Option 2 Data flow defect Option 3 Initialisation defect Option 4 Algorithmic defect

1803


hi this is satish can some one help me out by sending the maxium notes on client sesrver ,web server and company architechture project hirearchy and company hirearchy i will happy to recive the answers as early as possible

1722






When did u complete testing ? Which scenrio should not be in automation testing ? why ?

2391


1) Test summary contains ? 2) Requirement Tracebility means ? 3) Test Effort contains ? 4) Test Planning Productivity ? 5) Metrics should be caluclated ? 6) Interest rate Rsik is a type ? 7) Test analysis and Design process task? 8) secured loan is a part of Liability (or) assest in a balance sheet? 9) Money Market means? 10) a ------ specifies all of the terms of a loan and the obligations borrower ? 11) what is a primary market is ? 12) Quality of Testing measure with ? 13) Company has a share with facevalue 10 rs/- and NAV of 37 after comapny has given Dividend of 35 % then How much NAV become ? ( I don't know what is NAV means, question overall Idea I am giving not 100% perfect ) the potions for these are 1) 33 2) 33.50 3) 37 4) 42 14) one compay has taken 10 million loan from a bank for a Interest rate is 10 % and base amount is 0.4% so how much they had paid monthly Emi ? they provideansews like 1) 100000 2) 114000 3) 140000 4) 104000 Remaing questions I not remember.

2305


please give information about ERP Projects and how V-model use in project

2375


What is early testing?

672


About Testing

1966


Tell some examples of bug severity and bug priority?

635


What's the difference between system testing and acceptance testing?

717


How we allocate the priority(Blocker, Critical, etc.,) in Testing?

1298


What is junit & api?

1685


what is the testing approach for windows Explorer(Not IE Explorer)

2249