I'm more or less in the same point as you. Have successfully written many lines of working code yet, no problems up to the point, but haven't been able to implement other people's code into my apps.
I suppose that it is just a matter of trial/error, but so many times I've tried and couldn't...