Topic: Why are components bad?
Yesterday I was playing around with some old code just for fun. After a while I realized that this model I was playing around with would be nice to rewrite as a partial. But then I'll get some problems if I invoke the partial from another controller, then I won't have access to the first model's controller actions where I generate some variables.
I don't won't to duplicate the code in all controllers where I use the partial. I could move some code into the model so I don't have to define my variables in the controller, but that doesn't feel right at all.
So then I thought about components, they seem to suite the task. But after a quick search at google I found out that people generally don't like components, and that they are slow and so on.
So just out of curiosity, why are components bad? And "how" slow are they? Are there any situations when components actually is the best option? Have anyone used them in a real application?