interesting.
I admit to copying and pasting stuff but it was from a company forum and I was working in a virtual machine so I didn't care much, I was also careless about sudo for that reason.
Those websites suggesting to install with curl
www.blabla.com | sh clearly aim at ease of use but it's small software project websites, susceptible to getting hacked. They often do provide a link to the github page if you're security conscious though, that not being the default otpion doesn't promote correct behaviour of course.
I guess they're taking the risk, for the advantage of being easy to install.
When I first saw it I searched it because I want to learn more about bash and linux, so I found out about the obvious dangers of using it (I've had software install updates from a hacked website in the past so I'm suspicious about this stuff).