Illumination coding gives an essential degree of freedom for the design of computational microscopy systems. My talk will go over my two recent projects of using coded illumination on refractive index tomography and structured illumination microscopy and discuss how the coded illumination together with end-to-end design and machine learning can help imaging sharper and faster.