How often do you create traits in your programs?
I'm a hobbyist dev for now, and have had (and still do have) a lot of bad habits.
One of those was creating unnecessary class hierarchies for all my projects.
I didn't realize they were unnecessary at the time, it just felt right.
But since learning rust ive properly understood composition and use it almost all the time. I can't think of a time I've actually created a trait for any reason other than learning about them.
So for those of you that do create and sue traits, what kind of situations do they come up?