I do not really dream in
code but in pseudo-code or something vaguely algorithmish. While dreaming in second or third language is quite familiar to me, I'd never dream (of) code. Nevertheless my dreams help me solving problems by pointing in the right direction.
The neat thing with dreaming up solutions is that somehow my dreams can access things I have learned and (seemingly) forgotten.
neophyte