system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: Why and how do magnets ruin electronics?
gpt
Magnetism and Electricity are the same force in physics.

So magnets can create electricity and Electricity can create a magnetic field.

Today Magnets are not as dangerous as they used to be for computers due to shielding and a change in technology.

Back in the day the coating on the inside of a CRT monitor could be damaged by a magnet causing it to display properly or have dark spots. Today's LCD or LED monitors work under a completely different principal so they don't have this problem.

Floppy drives though where by far the worst for this. Data is written to a floppy drive using magnets and the disk is only protected by a tiny layer of plastic. So if you wave a magnet over a floppy drive you could easily erase it.

Today spinning hard drives are still magnetic and vulnerable but they are shielded so it is less likely that a magnet will damage them. They are also built with powerful rare earth magnets inside them, used to move the hammer.

Generally speaking magnets + electronics is still a bad combination but it's not nearly as bad a problem as it was in the 80s and 90s.