Using assertions helps developers write code that is more correct, more readable, and easier to maintain. Thus, assertions improve the odds that the behavior of a class matches the expectations of its clients. Note that assertions can be compiled out. In languages such as C/C++, this means using the preprocessor.
Yes eating to much sugar can give you headaches. Maybe its time for you to go and get your blood tested to make shire its not to high or to low. Older you get the more you have to watch what you eat, its not like you can eat everything like you did when you were younger. Good Luck.
The third fainting incident could be attributed to dehydration and low blood sugar. Not eating for ten hours likely resulted in low blood sugar, which can deprive the brain of glucose causing dizziness and fainting. In addition, diarrhea is dehydrating, and as explained above, dehydration lowers blood pressure. In all three instances, many factors converged to make fainting more likely.