Most efficient way to create hand rails?

What is the most efficient way to create hand railings? Is there a way to “draw” the path of the railing and then to convert it into a cylindrical shape?

You’re thinking of splines which would work but may need a bit of optimization at joints depending on how you go about it.