
click to enlarge
Some people leave the computer on even if they are not using it. There is a myth surrounding computers that leaving them 'on' saves on energy and increases hardware life.
The myth started in the days of older hardware that actually used to wear out by regular usage of the power button. That was the time of the monochrome cathode ray tube based monitors. They did consume plenty of energy and pulled up a heavy amount of electricity when started. The CPU, however, was highly susceptible to heat. People were advised by hardware experts to use cooling devices that further consumed energy. So in fact, they were not saving energy. The energy they saved by keeping those x86 computers on throughout the day and night, was consumed by the usage of external cooling devices.
Coming back to the present, it is not necessary to leave the computer on all night. The technology is designed so that there is not much expansion and contraction of internal hardware when it heats up during usage or when it cools down when the computer is off. The solders won't break as there is negligible expansion and contraction of the devices. The heat produced is much less when compared to the early computers and hence, there is no risk in turning the computer 'on' and 'off' regularly.
Note: With current technology, power consumption when turning on the computer is far less than the power saved by keeping the computer in sleep or hibernate mode.