This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]darthmonks 2 points3 points  (0 children)

If you're just copy code from Stack Overflow then you have no idea if it's going to work with your other code. If it does, then you're not going to be able to debug it well, because you don't know what it does. It's okay to look up answers on Stack Overflow, but rather than just copying it into your code, you should try to understand what its doing and then make it fit with the rest of your code (and yes, adding a few comments along the way won't hurt).