Getting Stuck
From Huben's Wiki
Line 15: | Line 15: | ||
* Are your methods within a class and your statements within methods? Methods in methods, classes within classes and so on are bad. | * Are your methods within a class and your statements within methods? Methods in methods, classes within classes and so on are bad. | ||
− | If you are frustrated and can't figure out the message, you can ask a fellow student or me to help you find the error. Or, you can comment out pieces of the code until you find the problem. | + | If you are frustrated and can't figure out the message, you can ask a fellow student or me to help you find the error. Or, you can comment out pieces of the code until you find the problem. Do not waste a lot of time this way: we are expensive! |
Don't just throw away your code and start over: just comment it out if you want to start over. You may realize the error and wish you hadn't acted hastily. | Don't just throw away your code and start over: just comment it out if you want to start over. You may realize the error and wish you hadn't acted hastily. |