I don’t know how several generations survived before modern electric codes.
Some here know I'm both an old house nut and an electrical engineer, so working on antique electrical systems has been a very big part of my life.
The reality is that yes, several generations survived before modern electric codes, just as they did before penicillan and seatbelts. And just like those two examples, many people were injured or burned their homes to the ground. The most common problem was prior to the establishment of standardized wiring gauges, with so-called "electricians" running wiring that was way too light for the load it was carrying, overheating and starting fires. You can find find plenty of stories about that in the WW1 era in both the US and Europe.
Anyone older than 60 today can remember houses being wired with aluminum in the 1970's, and burning to the ground in the 1980's. And who above 50 doesn't know someone who's been shocked everytime they touched their kitchen range and toaster or refrigerator at the same time? Code is good.
The irony about the wire nut instructions above is that they are wrong, by modern convention. You need to continue twisting until you have the insulated wires wrapped around each other at least two turns, to ensure the nut cannot work loose if tension is put on the wires:
Spent a lot of time at grandparents home with fuses predating breakers…
Houses in the neighborhood where I grew up were all built on panels of Edison fuses. Not a damn one of them was properly-sized when we moved into that house. I remember seeing 30A fuses on AWG-14 circuits, because some prior owner got tired of having their 15A fuses blow. Of course the panels are almost never labeled with what size fuse should be in each slot. Those things are truly dangerous, in the hands of most homeowners, and may be responsible for more electrical fires in homes than nearly any other invention, ever.