I remember Barney Miller, but that was 40 years ago. I haven't seen 'Brooklyn Nine-Nine', but that seems to be a similar sitcom-in-a-police-station series. For more recent police dramas, I like 'The Wire', 'Southland' and 'Bosch'. Gritty w/ good acting all around, iMO.