I find it interesting that you mention red dwarf. As I started reading your comment I thought I'd comment something "i think that's just nostalgia, for example red dwarf is awful but people love it". And then you mention red dwarf.
Eye of the beholder. I personally think Red Dwarf series 1 to 6 was great. It even charts a course of British TV decline. Series 1 and 2, low budget sitcom, class warfare and the loneliness of space. Series 3, more budget, more sci-fi, but similar writing. Series 4 and 5, more budget, more sci-fi, becomes monster of the week, but the character building from the prior series keeps it funny. Series 6, even more budget, they start to explore some more interesting sci-fi themes. This turns out to be popular, so it gets more budget again and moves to BBC 1, more cast etc. Series 7, 8 just urgh, trying to appeal to "mainstream" was stupid because it was already popular enough, it loses the serious side. Everything they've done since then feels like they're trying to force the humour that came naturally before. The actors have aged but the writing didn't mature with them.
I watched some interviews with the cast and they would joke around in the canteen between filming and find their jokes had been overheard and incorporated into the script. It had this realistic dialogue.