Thermodynamic processes and the first law