This may be a bit of a subjective question, but I was just thinking about it. I've seen many electrical boxes that are full of drywall compound, often to the point of having to dig the wires out of it so you can use it.

To prevent this, should the boxes be taped up (with tape and/or plastic cover) prior to drywall going up, or is this just caused by lazy/sloppy mudding? Is this the responsibility of the electrician or drywaller?