The many faces of discreteness in optical and atomic physics: some case examples