1) Growing up in a house with low water pressure. If the machine doesn't have much pressure to work with, it seems to do a bad job more or less regardless of what you try to do
2) Given you have sufficient water pressure, using cheap detergent. After switching to a "top of the line" dishwasher detergent packet, a dishwasher went from "borderline useless" to "more clean than I can get them by hand".
Number 2 was by _far_ the most impactful thing I've done; I can essentially now scrape dishes of large food chunks then put them straight in the dishwasher, and have a >= 98% confidence they'll come out completely clean.
If you use a modern dishwasher and your plumbing is up to spec your dishwasher will be far more efficient then hand washing.
Sorry, what? Sure, you can't put large chunks of food in a dishwasher, but isn't the main point of a dishwasher to... wash the dishes for you? If you're pre-washing, what's the point of the dishwasher?
That said, I also do not own a dishwasher, since hand washing is so quick and easy.
I've tested this effect in multiple dishwashers at this point, always wanting the technology that was promised, but always in vain.
In rare cases, food will be stuck to some items but this is usually due to geometry (something was blocking something). It's sanitised from the heat anyway so I just wipe it off and put it away.
I think the hard water residue can be solved with an additive, but it's not a problem in my area.
I put my dishes in caked in pasta and sauce and large food bits. The only things that don't go in are anything that would disrupt a disposal unit. No bones, no stringy things like tomato vines etc.
Using a rinse agent takes care of c (at least for me).
a) remove all bits of food with regular washing, stack next to sink
b) transfer from next to sink to dishwasher
c) (after running dishwasher) wipe off hard water residue from all glass dishes
d) put away dishes
When I moved out on my own, I discovered the joy of a simple wooden dish rack next to your sink:
a) remove all bits of food (and oil) with regular washing, stack next to sink
And the above is all one has to do! The dishes dry naturally, and putting them back into the cabinet is optional. Notice almost identical step a). How am I supposed to believe dishwashers save water? We used twice the water simply to get rid of oil! After my partner got tired of wiping hard-water residue, we abandoned our dishwasher and never looked back.