1. A method comprising providing a memory device, wherein the memory device operates at an operating temperature; heating the memory device to a programming temperature, wherein the programming temperature is greater than the operating temperature; and programming a switching element of the memory device during the heating, wherein programming a switching element of the memory device comprises applying a first voltage or current to a heater to heat the memory device to the programming temperature, followed by applying a second voltage or current to the switching element.