Okay, after flipping through a bunch of my old lecture notes and googling, I see that apparently there are two different sign conventions. I was taught this way both in classes at my university and in the Kaplan course:
Work done by the gas is positive, always. Work done on the gas is always negative. I think you're confused because I said U=-W. This equation only holds if Q is zero (Q is heat exchange. If no heat is exchanged with the environment, Q = 0). U = Q-W is the equation that always holds. If Q = 0, the equation becomes U = 0-W or U = -W. Since the work was done by the gas, work is positive. U must be the opposite sign, so it is negative.
So if, for example, volume was constant, that makes W = 0 (because W = PdeltaV. DeltaV = 0, then W = 0). So U = Q in that case.
BUT, if you're using the formula that you wrote, dE=Q+W (plus, not minus like in my formula), then you switch the sign convention and work done by the gas is negative and work done on the gas is positive.
I know that doing it the way I was taught always gets me the right answer. I don't know about that other formula. Someone correct me if I'm wrong...