Question: is pex better than cpvc?
Answer: If you're going to be installing pipe indoors and bending it around corners, PEX pipe might be your best choice. On the other hand, if you're worried about longevity of pipe that's outside and exposed to the sun, CPVC pipe is the way to go (although it is still recommended to protect the pipe from direct sunlight).