Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 822 Bytes

code-guidelines.md

File metadata and controls

13 lines (11 loc) · 822 Bytes

Code Guidelines for Python CodeClub projects

Based on guesswork by Adrian and Pete Lewin and some limited discussion between us!

  • Python 3.x
    • Rationale: that's what is used by the term 4 exercises
  • Tabs not spaces.
    • Ade is mostly a 'spaces' kind of guy, but pressing one key instead of 2, 4 or 8 means less opportunities for syntax mistakes.
  • There should be a main function.
    • Rationale: Pete thinks it's a good idea. Ade's not sure of the rationale but I guess it's just normal practice in Python-land, so I'll go with it.
  • It's OK for the kids to have to make derived classes, especially derived from Sprite
    • Rationale: although this is seen as an advanced concept, kids are already familiar in Scratch with the concept of attaching scripts to objects.