It's this time of the year again – cold and damp outside, impending in-laws, that old hobby project in dire need of refactoring, and the fifth newbie question on why pointers aren't arrays, or why code that "is working perfectly" still doesn't handle end-of-file correctly.
Only one way out: A trip to the supply cabinet, and mix up the old happy juice.
What's your favourite recipe? What works and what doesn't?
I'll start. This one is a classic, though I refer to it as The Uncaught Exception:
- Two units of whisky (no 'e')
- One teaspoon of honey
- Careful amounts of hot water (to taste)
Best used when: After opening a question, and before typing the response.
Counter indications: Does not mix well with Boost.