Missiles seem the only thing that would be practical, as they can adjust their path as they get closer to the target and the target is changing position and direction.
But then, shoting down missiles as they get close with lasers or railguns would be relatively easy.

I'd say really long range engagements in space are still rather unlikely, even with super advanced targeting systems. Not as close as in most movies, but you'd still have to get close enough for your weapons to travel the distance in a reasonable amount of time.