Porridge (TV series) himself as the judge, a character role subsequently played by Maurice Denham in two episodes of the third series. The theme music for the closing credits was written by Max Harris, who had also written the theme music for numerous other TV shows, including "The Strange World of Gurney Slade" and "Doomwatch", and would go on to write the theme for "Open All Hours", another of the Seven of One pilots. The cheery theme was "deliberately at variance with the dour comedy" and given a music hall feel by Harris because of the lead character's Cockney origins. Following the pilot
Porridge (TV series) "Porridge", a slang term for prison; Barker, Clement and La Frenais actually came up with the same title independently of each other. In their research, Clement and La Frenais spoke to Jonathan Marshall, a former prisoner who had written a book, "How to Survive in the Nick", and he advised them about prison slang, dress and routines. Struggling to think up plots and humour for such a downbeat, confined environment, a particular phrase used by Marshall – "little victories" – struck a chord and convinced them to base the series on an inmate who made his daily life in prison