Anything that keeps the animal comfortable, healthy, and non-stressed is fine.
There is no "one true way."
I prefer the looks and mental stimulation/variety of displayed behaviors/exercise opportunities of decently sized somewhat more naturalistic enclosures. My own have multiple hides, fake plants, and things to climb on or burrow through depending on species. I love the looks of huge full bioactive setups with invertebrate communities, but would never do that myself.
But if your snake is healthy and active (within species norms) in a large tub with just a bowl of water and two plastic box hides I won't argue with you. Note I said large. I do have a pet peeve about tubs that never allow an animal to stretch out its body, and opaque tubs that block all light.