With that out of the way, lets talk about some ideas. It might actually be a good idea to use entire locations instead of individual images for some of the concepts, like a circular intersection for a while loop
and then have all of the relevant constants and conditionals placed around the intersection... If you're an admirer of Regexp, using a memory palace to memorize the keywords and then a few complex combinations would help.
Obviously a programming language is more about a particular way of thinking instead of just memorizing a bunch of stuff so the way these palaces are constructed should be used more for "internalizing" conceptual structures instead of entire files of code... In a real way, I'm suggesting to recreate a personal prototype structure for mental referencing.
Any specific associations that you feel are more memorable or instrumental than others? Any specific functions/logical structures you think could benefit others to "internalize"?