Roland Barthes was a French philosopher and literary theorist born in 1915 who developed the theory of codes. He believed that a narrative text can be interpreted in many different ways depending on the codes or perspectives used. Barthes identified five main codes that shape meaning in a text: the hermeneutic code, the proairetic code, the symbolic code, the cultural code, and the semantic code. These codes represent different voices or lenses that influence how a reader understands a narrative.