I routinely hide the Dock on my Macbook Air, since it takes up a significant portion of my screen. While I use Alfred most of the time to launch apps and such, I still like to use the Dock; call it a hold over from the last ten years or so.
Sometimes, though, when I move the mouse cursor over to the side of the screen I keep the Dock on (the left, if you’re curious), it pops up even when I don’t want it to.
Then I found this Terminal command which lets me set the time delay between when my cursor hits the edge of my screen and when the Dock actually appears. Now I have the delay period set to a larger number, making it much slower to respond and unhide.