The curl | sh pattern for installing software is much-maligned, and can definitely be used carelessly. But how bad it actually is a more nuanced question than you might think, a topic I wrote about over at Atomic Spin.
A topic near and dear to my, and I hope every software professional's heart is how to be as secure as possible. I've covered a number of ways you can practice good security
hygiene over at Atomic Spin.