Text this: Physics of photonic devices