How to ask for help: Difference between revisions

From Computer Science Wiki
Line 10: Line 10:


== How to view our linux error log ==
== How to view our linux error log ==
I encourage students to open a new tab in their terminal window. The command below will create a running list of errors. To escape from the output, push the key combination control-C.


  tail -f /var/log/php/error.log
  tail -f /var/log/php/error.log

Revision as of 09:00, 23 November 2016

Having problems is normal. If you do not learn how to solve your own problems, life will be difficult for you.

The best way to get help is to help yourself[edit]

A key idea in all our courses: diagnose and solve problems.

Checklist for solving problems when coding in PHP[edit]

Click here for our checklist

How to view our linux error log[edit]

I encourage students to open a new tab in their terminal window. The command below will create a running list of errors. To escape from the output, push the key combination control-C.

tail -f /var/log/php/error.log

Problem Solving Steps[edit]

  1. Google the problem in general terms. For example: python how to import a calendar
  2. Re-read your code (sometimes, reading backwards helps you see little errors)
  3. Use your debugging tools
  4. Ask a friend
  5. Google the specific error message your program is raising
  6. Don't ask your teacher until you have a very specific question.

Click the image to learn about common mistakes[edit]

You must learn to solve problems.


Other problem-solving strategies[edit]

  1. walk away for a few minutes
  2. take a short break (2 to 3 minutes)
  3. physically stretch your body