In these expository notes we explain the role of geometric optics in wave propagation on domains or manifolds with corners or edges. Both the propagation of singularities, which describes where solutions of the wave equation may be singular, and the diffractive improvement under non-focusing hypotheses, which states that in certain places the diffracted wave is more regular than a priori expected, is described. In addition, the wave equation on differential forms with natural boundary conditions, which in particular includes a formulation of Maxwell's equations, is studied.