Dishwashers can be even harsher. High heat, strong detergent, movement against other items, and long exposure to moisture can all shorten a knife’s life. Add to that the risk of the handle loosening or the blade corroding, and it becomes easy to see why hand-washing is usually the safer choice.
The better routine is plain and boring, which is often the best kind of routine: wash by hand, dry immediately, and store the knife in a block, magnetic strip, or sheath. A blade that is protected between uses will almost always outlast one that is left to rattle around with spoons and forks.