Hello, I really liked the video, I have a question that is not aligned with this theme. Do you believe every web application should use any of these reactive frameworks like vue.js or react? I like ERB and I find it very practical, but I'm ashamed to use jquery in 2019 ... :(
JQuery was created a long way back to solve a certain problem during its era, react, vue, stimulus and the like are also pretty much the same way. Although using the recent libraries would be beneficial one should ask what do they need? what needs to be solved or done? JQuery aimed to solve animations to the web by making a reusable set of code, as time goes by ajax was there to solve passing data from and to the server using javascript. Ruby on Rails on the other hand handles three main concepts which are Models, Views and Controllers. While vue and react can handle data and structure much similar to a controller they are considered as front-end libraries which would stand for Views in MVC. Rails already can handle these. But then it would not hurt to learn the benefits that would come from using the new technology in front of us.
Hello, I really liked the video, I have a question that is not aligned with this theme.
Do you believe every web application should use any of these reactive frameworks like vue.js or react?
I like ERB and I find it very practical, but I'm ashamed to use jquery in 2019 ... :(
You can use StimulusJS instead of jQuery if you're that ashamed
Or you could use rails as a pure API framework and the view will be any consumer, like react, vue or mobile application :)
JQuery was created a long way back to solve a certain problem during its era, react, vue, stimulus and the like are also pretty much the same way. Although using the recent libraries would be beneficial one should ask what do they need? what needs to be solved or done? JQuery aimed to solve animations to the web by making a reusable set of code, as time goes by ajax was there to solve passing data from and to the server using javascript. Ruby on Rails on the other hand handles three main concepts which are Models, Views and Controllers. While vue and react can handle data and structure much similar to a controller they are considered as front-end libraries which would stand for Views in MVC. Rails already can handle these. But then it would not hurt to learn the benefits that would come from using the new technology in front of us.
10:46 technically !current_user.nil? isn't equivalent to !!current_user. If current_user = false, they produce different results