What are good ways to avoid bugs while programming?

78 Views|Posted 2015-11-04 16:44:33
Asked by Vishnu Prasad
1 Answer
Monisha Barua
2015-11-06 14:56:38
Hi Vishnu, Ways to avoid bugs while programming: 1. Think before coding. 2. Keep it Simple. 3. Assert invariants at run-time. 4. Have the code fail as early as possible in case of any error. 5. Test your code. 6. Be able to explain it on the whiteboard without preparation. 7. Adapt the process of

...Read more

Thumbs Up IconUpvote Thumbs Down Icon

Taking an Exam? Selecting a College?

Get authentic answers from experts, students and alumni that you won't find anywhere else.

On Shiksha, get access to

66K
Colleges
|
1.2K
Exams
|
6.9L
Reviews
|
1.9M
Answers

Share Your College Life Experience

Didn't find the answer you were looking for?

Search from Shiksha's 1 lakh+ Topics

or

Ask Current Students, Alumni & our Experts

Have a question related to your career & education?

or

See what others like you are asking & answering