Who is at fault when you are pulling out of a parking space and the car next to you swings open their door and the you hit their car?

It depends.

If they hit you with their door, it's usually their fault. If you hit their door with your car, it's most likely your fault.

That said, the burden of ensuring the way is clear is ALWAYS on the reversing vehicle.