The creative programming language Processing can be used as a generative architectural design tool, which allows the designer to write design instructions (algorithms) and compute them, obtaining graphical outputs of great interest. This contribution addresses the inclusion of this language in the architecture curriculum, within the context of digital culture and alternative approaches to how digital tools are used and learned. It studies the different processes related to Computational Thinking that are triggered in the prototyping of computer applications and that lead to creativity. The similarity between architectural design and programming is analysed, both in problem solving (abstraction, decomposition, iterative revisions -debugging-, etc.) and in the use of mechanisms of a digital nature (loops, randomness, etc.). The results of the design and testing of a pilot course are shown, in which the way of teaching, learning and using this programming language is based on the graphical representation of problems through sketches.