Lens effects

Is there a best practice for getting the camera focus and depth of field to render smoothly without the jittering between focus racking?