It's really simple to have no desktop icons on the Mac. Just open the finder settings and under General untick all of the boxes to show on the desktop. Then move everything out of the ~/Desktop folder. It won't have anything on it after that.
As for the dock you can set it to auto hide, and change the delay so that it will come up but after N seconds [1].
[1] https://apple.stackexchange.com/questions/59556/is-there-a-w...