I think that masturbation is fine if it's done in moderation. I have not done it moderation and so, it's become a negative thing in my life.
Porn is a dirty industry with tons of cases of people taking advantage of each other. I wouldn't recommend using it because of the dirt behind it all. It also isn't representative of the real thing either so too much could warp someone's expectation of it.