When used intelligently, Rails concerns are great - Code with Jason

12-Jan-2021 1820
There seem to be two main camps regarding Rails concerns. One camp says concerns are good. The other camp says concerns are bad.I don’t buy this dichotomy. To state what ought to be obvious, not everything is either good or bad.I’ll make a small digression to illustrate my point, using the example of a knife.You could use a knife to stab me in the leg, or you could use a knife to whittle me a magnificent wooden sculpture.Or, if you weren’t too familiar with knives, you could try to use a knife instead of a spoon in a misguided attempt to eat a bowl of soup. (Then you could write a blog post about why knives are terrible because you can’t eat soup with them.)You get the idea.I want to discuss where concerns might be a good idea and where they might not be. In order to do this it might be helpful to start by articulating which types of problems people tend to use concerns to try to solve.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle