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.
Foods like hot dogs and pepperoni often contain nitrates, another headache trigger. Some processed foods also are rich in tyramine. A little bit of chocolate usually won't trigger a headache. When chocolate does cause a headache, tyramine is probably the culprit. Very cold foods. An ice cream headache usually comes on quickly and lasts less than a minute. But for some people who experience migraine headaches, eating ice cream can trigger a more prolonged migraine attack. The best way to find what foods and/or drinks cause your headaches is to keep a diary. Every time you have a headache, write down everything you ate and drank before the headache started.