Programming Protips

  • Bugs & errors will always happen and they are a good thing consider them to be Learning Opportunities

    • When an error occurs, take the following steps:

      1. Take deep breath
      2. Read the error message (look for clues)
      3. Find the source of the error (i.e. which line of code is causing the error)
      4. Fix the error
    • The process of fixing bugs is also referred to as debugging

inline

  • Use your developer console always

  • Google is your friend (when you get stuck)

    • every bug you encounter has been encountered by many developers before you; chances are highly likely someone has asked a question on Stack Overflow or written a blog post about it the answer is out there!!!!
  • Use pattern matching

  • Use good indentation

  • Break things on purpose (after you’ve gotten it to work) to answer your what if / what would happen if questions

    • ^ just make sure you fix them before turning in your assignments :)
  • Practice, practice, practice

    • Programming requires a different way of thinking, best way to adjust to that new way of thinking is to practice