When creating projects using pencilcode.net year 4GB had some problems when the program would stop and get an error.
Year 4GB have created a list of rules to help find the errors. We called it "debugging their program".
To create these rules they got into small groups (2-3 people) and opened a program that worked. Then they changed things in the program to see what would happen.
Please comment if you have some more rules we could add.
Rules for Pencilcode.net
- Check your spelling.
- Check your indenting & spacing.
- Use spaces between your words.
- Check punctuation eg: “ ”, (), [ ], { }, @, >, <
- Check the size of your jumps.
- Check the things you type.
- Check that you don’t put a space between numbers.
- Choose a colour that you can use - use the Guide.
- Use the correct case - eg: r or R
- Using the number 0 instead of the letter o
- Have no spaces before pen
- Only use 1 comma in between the numbers
- Check you have one space in between rt or fd and the number