One easy install method for Docker (for example) is this:
curl -sSL https://get.docker.com/ | sh
However, I have also seen some that look like this (using the Docker example):
sh -c "$(curl -sSL https://get.docker.com/)"
They appear to be functionally the same, but is there a reason to use one over the other? Or is it just a preference/aesthetic thing?
(Of note, be very careful when running script from unknown origins.)