Tend not to eat while working on stuff, but I rarely have any snacks in my apartment. If I buy some I either eat it all right away, or it just sits on a shelf for months before I eat it.
If I am really focused on something I often end up having dinner at 10 pm or later, and usually the last meal would be either lunch or breakfast.