Here goes a question, "please, how best can I prevent "Bugs" from my codes?" | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Here goes a question, "please, how best can I prevent "Bugs" from my codes?"

8th Nov 2017, 7:26 PM
Tom Lawrence Odongo
4 Respuestas
+ 5
Understand logic and math, not just syntax. Understand the language you're using. Understand that you'll create bugs anyways, so understand how to fix them when they arise. Understand what ChaoticDawg said, and do your code in chunks, testing each chunk before moving on to the next. Understand what Gavin said, use try/catch and other methods of dealing with errors.
8th Nov 2017, 8:07 PM
AgentSmith
+ 4
Try and catch them, literally, using code. Go through the Error Handling subject on your programming language to see how to do it.
8th Nov 2017, 7:42 PM
Ghauth Christians
Ghauth Christians - avatar
+ 3
Write clean code. Test your code often as you write it to make sure that it behaves as expected.
8th Nov 2017, 7:56 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
🙏🙏🙏🙏👍👍🆗️ all welcomed
8th Nov 2017, 9:20 PM
Tom Lawrence Odongo