We had the power go out for over 24 hours and some at work were saying that they were turning off the main breaker and just plugging the cord from the generator into a socket to run what they wanted in the house. I was told that you shouldn't do that because in some cases it can still back feed into the grid and possibly hurt the electrical worker that is trying to get power back. However one guy asked the electrician that came to his house to restore power and he said that as long as you have the main breaker off it is OK to plug the generator into the house outlet to get power. I'm just curious of what the real dangers, if any, there is.
It's safe in principal.
IF you never turned the main breaker "on" with the generator hooked up, AND nobody ever worked on the system assuming the panel was not fed from two sources (which requires a specific label according to code, I believe, if not it's strongly suggested.), everything would be fine.
The issue is, if for some reason yo forgot to turn off the main breaker, or turned it on with the generator running, you could kill a lineman, or multiples of them, who think they're working on a de-energized circuit.
To me, the risks far outweigh the benefit. It's easy to install a mechanical interlock (and relatively inexpensive) if your wish is to back feed the panel from a breaker. (The breaker still protects operating "backwards", nothing unsafe about it in general.) I don't want to be responsible for killing someone.
If you were working on a circuit you energized, would you like your life hanging on the line from the assumption that a main breaker in someones house using illegal wiring could kill you?
IMO, don't do it.