whats the use of following Good Coding Practices?
Answers were Sorted based on User's Feedback
Answer / suresh.chaluvadi
For Efficiency: The easier your code is to read and follow,
the easier it will be to keep track of where you are with
your code, and the quicker it will be to pick up where you
left off after a break.
For Easier Debugging: Knowing where your problem lies is a
major debugging tool. If you used comments,you can easily
follow your own logic, and if you have line numbers and
consistent formatting,you can easily scan your document to
pinpoint a trouble area.
For future expansions and modifications: Using comments in
your code is especially important for future changes,
because it?s difficult to remember the logic behind code
that was written years or even just months ago. Also, if you
are working on code that involves a team, if everyone
is using the same coding styles, it will be much easier to
make changes or additions to someone else?s work down the road.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / reejusri
Coding Practices is very important thing. main advantages
are:
1. Code maintainability
2. Ease usability
3. Extensibilty
4. Understandability
| Is This Answer Correct ? | 2 Yes | 0 No |
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
6.int x=10; float y=20; a=x%2=? b=y%2=?
SYNFOSYS PLACEMENT PAPER 2010 Hi Friends I have attended the recent synfosys test 2010. Here r some questions which i remember. Section – I 1) There are 12 balls weigh similar but one is dissimilar (more/less). How to find the dissimilar ball with minimum no of weighs? 2) There r 7people carrying 7bags. Each bag contains 7cats. Each cat has 7small cats. How many total legs r there? 3) There are 12 balls weigh similar but one is dissimilar (more/less). How to find the dissimilar ball with minimum no of weighs? 4) 5) There r 2 poles each 15 meters high. A cable of length 16 meters is tied between pillars top. For its maximum the cable lies down above 7mts high from the ground. What is the distance between pillars? ------------------------------------------------------------ ------------------------------------------------ Section -II What is the value of 11^5 Some Other quetions ------------------------------------------------------------ ------------------------------------------------ Section - III 16) Serialization and deserialization? 17) Will finally block execute even though there is an exception & return statement are there in catch block? Explain? 18) memory leak? How can we avoid it? 19) virtual destructor? 20) Two program codes for code optimization? ------------------------------------------------------------ ------------------------------------------------ Section – IV Q) Program for finding the alternate digits of the number If number is 35846 then Sum1=3+8+6=17 Sum2=5+4=9 Q) Program for Single linked list? ------------------------------------------------------------ ------------------------------------------------ Section - V Q) What is software engineering? Explain SDLC Q) Explain any two upcoming IT Scenarios? ------------------------------------------------------------ ------------------------------------------------ Regards Gopinath Allanku +91 9885457211
what is difference between scripts, smartforms and adobe forms
What is nocopy in plsql?
what are wrapper classes
is it acceptable if we declare multiple exceptions in same overridden method.
if we want to move all the items that are already added in a combobox into an empty list box or vice-versa then how can it possible in vb or C# ?
what is static objects in java
Why did you ever become involved in QA/testing?
What is test execution and when will we start execution please send me one example for this question
I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution