Shutting down your PC before 1995 was kind of brutal.
You saved your work, the buffers flushed, wait for the HDD lights to switch off, and
*yoink*
You flick the mechanical switch directly interrupting the flow of power.
The interesting part is when this all changed.
Two major developments had to occur.
First, the standardization of a physical connection in the system linking the power supply to the motherboard. (Hardware constraint)
Second, a universal driver mechanism to request changes in the power state. (Software constraint)
These, respectively, became known as the ATX and APM Standards.
Although it would have been possible much earlier; industry fragmentation in the PC market between Microsoft, IBM, Intel and others stagnated progress.
By 1995, things started to get more consolidated.
Eventually control of the power state of the system via the OS became more widespread. And for good reason!
Caches, more complex filesystems, and multitasking all increased the risk of data corruption during an "unclean" shutdown.
The APM standard later got replaced by ACPI, but it's an interesting tidbit of computer history nontheless.
If you'd like to read some interesting history of the APM vs ACPI debate, check out this writeup by MJG59.
If you take a picture of a Raspberry Pi 2 with a strong flash it will reboot.
A specific power regulator (U16) was chip-scale packaged to save on cost and die space.
Since the silicon is basically naked, a xeon flash can cause a massive (but very short) current spike.
Naked silicon (specifically, WLCSP) isn’t “bad” per se; it’s heavily used in mobile phones.
The thing is…phones are usually sealed. The Pi is an exposed development board.
Don't blame the engineers too hard, Apple actually had a similar issue with the iPhone 4 (back glass).
The fix for the RPi is a bit obvious of course.
either:
1. don’t do that (take pictures with high powered flash inches away) 2. if you must…put a little blu-tak, nail polish, or other opaque inert substance on U16