Measuring is very important. Here are two of the best ways
This first method involves two people (remember that friend, or it could be the clerk). Stand up quite straight without exaggeration with your arms hanging relaxed beside you and your eyes looking straight ahead (don't look down to see how things are going). Adjust the cane or measure the distance from the floor to the break of the wrist (this is where the crease is when you bend your wrist inward). This is the length that will offer a person the greatest control, the least strain, and the best security. I add about a half inch to that measurement I have found that give you some room to work with. But most people seem to be happy with that.
The second method is not quite as precise but will suffice if the above method is not convenient. Place the cane in the hand it will be used and point it ahead and bring it down until it touches the ground. The angle between the vertical and cane should be 30 degrees.
I mostly use a 1 inch dowel. It is rare when you need a shaft more than 36 inches. The SS make it easy to drill a horizontal hole into the shaft. ( I use a 5/16th drill 4 inches hole in to the shaft and a 2 1/2 in to the handle.) I epoxy the handle and shaft and a 5/16th all thread together. Clamping them together with a bar clamp.
