A few times, but it was less about the code but more about the “head space” I’m in when I’m coding. I felt like I was programming my brain and I woke up exhausted each time.
Nothing that I would attribute to the dream itself. I usually have very vivid dreams with internal consistency and story lines (which I’ve learned over the years is very unusual). So that kind of dream is very unusual for me. I turn my dreams into short stories under a pen name. I’ve published a couple on my blog.