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 |
Write a pascal program to calculate the sum of the first 100 even number and odd number
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 Partial class and its use?
How to swap two String values without using a third variable?
Difference between HTML and DHTML?
what is delimiter in sas ?
4.Write a program to get the string in array and print that? or Without using loop print the array.
To sorting array of 10 elements which sorting is best a)selection b)bubble c)tree sort
can we retrieve only integer/String type columns from a table,if yes how?
Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.
What are the limitation in using querystring in .net?
WHAT IS MAIN IMPORTANT THING IN SOFTWARE?