I've found that the spider staff is quite helpful for rangers in expert mode. It holds some of the more threatening enemies (particularly in the post plantera dungeon) in place so you can shoot them down, and most ranger attacks don't pierce anyway so you don't have to worry about immunity frames.