Text this: The optical principes of the diffraction of X-rays