Introduction
  • Introduction
  • When is your code finished?
  • When is the code finished quiz answer
  • Code quiz
  • Refactoring
Code formatting
  • Code formatting - introduction
  • Code quiz
  • Indenting
  • Code quiz
  • Empty lines
  • Code quiz
  • Spaces
  • Code quiz
  • Line length
Naming
  • Why is the name important
  • Code quiz
  • Capitalization
  • Code quiz
  • For variables and constants, use nouns. For functions, use verbs.
  • Code quiz
  • Make the code clear so comments are not needed
  • Code quiz
  • Be specific
  • Code quiz
  • define the variable in the smallest context possible
  • Code quiz
  • Shorten the variables, but not too much
  • Code quiz
  • Use long variables but not too long. Remove useless words
  • Code quiz
  • Do not use negations
  • Code quiz
  • Misleading names
  • Code quiz
  • Don't be creative, don’t be a funny guy
Comments
  • Introduction
  • Code quiz
  • Document “Why”
  • Code quiz
  • Only if needed
  • Code quiz
  • Do not comment junk
  • Code quiz
  • Don’t track the history
  • Conclusion
Coding with Grace
  • Introduction
  • Code quiz
  • Do not repeat yourself
  • Code quiz
  • Write only pure functions
  • Code quiz
  • Keep the private parts private
  • Code quiz
  • Reduce the cyclomatic complexity