Text this: X-ray diffraction from disordered and ordered systems