Switch statements in PHP link a situation (the cases) to code to be executed. Just like this : switch ($a) { case ‘a’ : /* code here */ case ‘b’ : /* code here */ default : /* code here */ } Duplicate code in switch statements With the size of the switch, it is easy to miss that cases […]
Reviewing code is like checking your own copy before handing in an exam : last exam I took was driving test (incredible, I know), and I passed by 0 the 100 questions quiz. I do remember changing three or four answers while reviewing the answers, and even as I don’t know for sure about it, I […]