Audiolingualism appeared in 1940 -1950 as a response to more traditional teaching methods. It has been associated with Behaviorism (Skinner) in the sense that in both the consequences of the stimuli are more important than the stimuli itself. Now, in the classroom Audiolingualism was carried out by focusing on certain principles, amongst others:
1) Writing is not as important as Speech.
2) Language is composed by habits and routines.
3) The emphasis is given on the language itself, not in the knowledge about the language.
These priniciples follow the idea of L1 language acquisition. For this, we want to teach L2, we have to follow the same steps that the acquisition of L1 follow. This means, that repetition of the target language is essential in the classroom, and that the input should always be delivered in the target language.
Audiolingualism was critisized because some aspects of the language are not the result of mere repetition.
The Cognitive-Code Learning was proposed by Chomsky, and it views the "the learning process as two-way process between the organism and its environment." (Nunan, 2009). The learner is not passive; on the contrary, he is able to interact with the environment. An exmaple of this is that he is given a limited set of rules, and the learner can use his creativity to create an infinite number of sentences. The learner is motivated to discover the rule underlying a structure and to reflect on the knowledge about the language.
It is important to point out that prior knowledge is essential when learning something new as the former must be linked with the latter.