I'm not a Buddhist, but I have attended a few classes on medetation. I had a bit of an epiphany at one session. Portions of the experience of meditation are similar to being "in the zone" when coding. A lot of other commenters here have already mentioned it: "flow".
There is a significant difference though. When you are coding, you experience flow with your mind already full of things. When meditating, you start with an empty mind, so the perceptive influence of flow is far more noticable. It's enough to throw you out of the meditative state if you are unprepared.
The goal of meditation is different than that of coding as well. Meditation starts from an empty mind so that you once you reach a meditative state, you may choose to do any number of things. One exercise the instructor had us perform was to find a meditative state, then meditate on the first thought that entered our mind, and to not sway from that thought.
When you're coding, you are keeping many things in mind. I find that when you end up in the "flow", it is because you have pushed everything out of your mind as a result of there being no space for it. Meditation is about pushing everything out of your mind so there is space for anything.