I have two planned already, but these were actually the next series that I was planning. I have seen a lot of tutorials out there that miss some key aspects and want to be sure to cover them. Thanks!
I agree. I am going to try to get this episode out before Rails 5.2 is released.
I do think that people and companies should do what they feel is best for them. Though, the same logic can apply to just controllers. Also, you wouldn’t have to create a file for every controller and/or action, just the ones you would want PSJ.
However, I wouldn’t put the JS directly in the views for a few reasons.
In the view, the JS will not be minified or compressed.
The CDN likely won’t cache the results of the page and cause extra bandwidth and load times (minimal but still).
You lose access to the reuse of JS.
I've been thinking about this quite a bit. My only hesitation is trying to find a usage that would be globally beneficial to the community. Ideally, I would want to avoid anything related to cryptocurrencies in the episode and focus on the actual technology. Are there any use cases that you can think of that would be good to cover?
Some great ideas. I'll look into some of these.