
The very brilliant senior programmer who trained me was best known for these words of wisdom:
“The longer it takes you to solve the problem, the dumber the mistake.”
For PHP coders like me - it can be as simple as a missing semicolon or putting a trim when using values in the database as array keys. When we debug, we often assume that it is a logical error and completely miss the little things.
Well, guess what? Those little things matter! That missed semicolon can cause your whole application to stop working. That trim can have you pulling your hair in complete frustration as you go over your logic for the 100th time.
So whenever you are taking too long to troubleshoot a problem in your code, try keeping an eye out for the basics, the small things that you may have missed. You may be surprised what a little basic review can accomplish.