DEV Community

GitOverHere
GitOverHere

Posted on

Trial and Error is a terrible way to program.

Before you start typing code, you need to figure out what you want to do and how you want to do it.

Being the computer whiz that you are, it is extremely tempting to sit down at the computer and start bashing keys until your code works properly. If you were to follow this trial and error method, it would take much more time to program something than usual, and you will find yourself scratching your head in frustration as you try to figure out the problem. It is best to plan out your coding session by deciding what to do. To do this, you can create code schematics, or flow charts. These will give you an outline of what needs to be done and how. You can also create psuedocode to determine what you want to do.

Top comments (0)