Is ViewComponent the Future of Rails?
12:25
Turbo Frames vs. Turbo Streams
8:25
2 жыл бұрын
Ruby on Rails vs. React JS
5:39
2 жыл бұрын
Пікірлер
@kerbiljoe
@kerbiljoe 2 күн бұрын
This is excellent! I’ve been doing IT consulting for 3 years and have learned much of the lessons you discussed here. Your video inspires me to dare to take the chance and bet on myself. Thanks!
@mixandgo
@mixandgo 2 күн бұрын
Happy to hear 💪
@bylbanos
@bylbanos 5 күн бұрын
Exactly what I was looking for, thank you!
@mixandgo
@mixandgo 5 күн бұрын
Glad I could help!
@anishkumbhar4078
@anishkumbhar4078 9 күн бұрын
But what abt limited libraries, isn't it a problem with rails? I myself is a rails user but confused between rails and mern?
@mixandgo
@mixandgo 9 күн бұрын
Not a problem as far as I can see, and I've been using it for 16 years.
@anishkumbhar4078
@anishkumbhar4078 9 күн бұрын
@mixandgo but are there enough libraries for any startup to use it as their tech stack
@mixandgo
@mixandgo 9 күн бұрын
@anishkumbhar4078 for sure
@anishkumbhar4078
@anishkumbhar4078 9 күн бұрын
​@@mixandgo can you tell one more thing, which will be a good hosting platform for rails for a startup
@mixandgo
@mixandgo 9 күн бұрын
@anishkumbhar4078 Heroku, Fly.io, erc. or even custom VPSes (which is another way to go)
@xzerodeathx
@xzerodeathx 18 күн бұрын
Ew tables I rather stick with mjml
@lauraj1427
@lauraj1427 23 күн бұрын
Simple and great!!!
@mixandgo
@mixandgo 23 күн бұрын
Glad you like it!
@tonio3920
@tonio3920 Ай бұрын
If you're new to programming, I would say no-it's too abstract, with too many conventions, and you have to guess what the "RoR magic" is doing. It seems simple at first glance, but it's actually not. I didn’t know the framework, but I managed a team of developers working with RoR, including juniors-what a mistake that was. I recently started coding with this framework myself (more out of obligation than choice). Every day, I feel like pulling my hair out. If I had known how frustrating it is, I would have switched to a different technology.
@mixandgo
@mixandgo Ай бұрын
A course can easily fix that.
@rubywale
@rubywale Ай бұрын
Thanks CEZAR for explaining the concepts.
@mixandgo
@mixandgo Ай бұрын
Glad it was helpful
@rpf23543
@rpf23543 Ай бұрын
These tutorials are so great, thanks a lot!
@mixandgo
@mixandgo Ай бұрын
You are welcome
@gabrielmoreiraassuncaogass8044
@gabrielmoreiraassuncaogass8044 Ай бұрын
If it's all true, great for you man. Let's go
@abdullahsaleh7196
@abdullahsaleh7196 Ай бұрын
Keep it up on rails ❤❤
@mixandgo
@mixandgo Ай бұрын
Thank you, I will
@koojoseph1958
@koojoseph1958 Ай бұрын
Thank you for this requirement specification
@flygreybird
@flygreybird 2 ай бұрын
Thank you, this is spot on, I got it working right away on my existing Rails 7.2 project. I just can't work out how I can now override the bootstrap variables to match your own theming, because Bootstrap's guide to this says you need to override them after the functions are included but before the rest of bootstrap, whereas with the cssbundler-rails install, it's just included as one monolith. I realise it's a long shot as it's a 2 year old video, but if anyone has any advice on this I'd really appreciate it!
@flygreybird
@flygreybird 2 ай бұрын
I've answered my own question - just copied out the contents of /node_modules/bootstrap/scss/bootstrap.scss to my application.bootstrap.scss and inserted the variable overrides as recommended by the Bootstrap docs. Thanks again for the guide!
@SteveHazel
@SteveHazel 2 ай бұрын
well you were right :)
@shinzhang4961
@shinzhang4961 2 ай бұрын
Thank you!
@swapnilkawade8235
@swapnilkawade8235 2 ай бұрын
All of your hotwire tutorials are amazing! Even after 2 years and so many great updates they're still relevant, concise and to the point! Thank you for such awesome content! Subscribed!
@mixandgo
@mixandgo 2 ай бұрын
Wow! Thank you for your kind words.
@zulhilmizainudin
@zulhilmizainudin 2 ай бұрын
This is cool. Is it possible to append the stream response into the UI/DOM as soon as stream chunk is received instead of waiting for all chunks to arrive first?
@mixandgo
@mixandgo 2 ай бұрын
Yes, you can stream each chunk to the UI as soon as you get it.
@BubblegumSneaker
@BubblegumSneaker 2 ай бұрын
This is great. I finally grasp certain parts about setting up AI bots in rails.
@eidiazcas
@eidiazcas 2 ай бұрын
Ruby is an absolutely horrible language
@eidiazcas
@eidiazcas 2 ай бұрын
and rails is even worse
@mixandgo
@mixandgo 2 ай бұрын
Good to know. I was on the fence :))
@rpf23543
@rpf23543 2 ай бұрын
What a great tutorial and explanation, thank you!
@mixandgo
@mixandgo 2 ай бұрын
Thank you.
@janley6004
@janley6004 3 ай бұрын
Thanks for the clear explanation! I do have a question though. Sending a database query every time a user types a character in a search form seems like it could be heavy on the backend. For larger applications, would it be better to handle this in JavaScript by sorting and filtering a JSON file on the client side instead?
@mixandgo
@mixandgo 3 ай бұрын
You can debounce the input events, so it only makes a request when you pause for a few milliseconds. Doing it entirely on the client side is not ok if you have a lot of records. You'd have to load them all in memory.
@Waseek69Ahmad
@Waseek69Ahmad 3 ай бұрын
This is gold
@khizerHayat-be9ww
@khizerHayat-be9ww 5 ай бұрын
Everyone Are Disheartening Us Every Time .. If we want to learn React Native then some KZbinrs will come and Start the Darama " Will React Dead Dead in 2024 " 😂😂 What should we learn???
@techmindssolutions
@techmindssolutions 5 ай бұрын
I'm Indian, ruby on rails developer
@laughingvampire7555
@laughingvampire7555 5 ай бұрын
Rails had not only the answer to React, it also had the upper hand because we already had HTMX before React, it was called Intercooler.js, made by the same guy, with the same concept and the guy was a rails developer, the examples of intercooler.js are using Rails.
@laughingvampire7555
@laughingvampire7555 5 ай бұрын
I don't think is going to become more popular or replace rails partials because we have had alternatives to ERB like haml and nothing happened, we also had this ability to produce components with Arbre (an OO DOM tree) since the ActiveAdmin team extract it from their repo and that is at least 12 years ago and nothing happened, we have other alternatives like Phlex which will dilute the interest in multiple options and nothing will happen. I love the idea of building with components ala React however, given that we have had Arbre since 2012 a full year before React, so with this OO Dom tree concept, Rails community could've get ahead of the curve and we failed. We also had this guy the Grug dev who made Intercooler.js now it's second version named HTMX and we could've gotten ahead of React with it once again, we also failed at that. The community is so focused on the Omakase from DHH we simply fail to adopt new tech that could improve Rails beyond DHH's imagination. Another point is that all the documentation material that helps people get into Rails and all the help that exists in StackOverflow etc is focused on erb partials. We all understand that we work on teams with these wonderful folk we call designers who provide us with HTML so converting it to Ruby Objects is problematic. I think Rails community has to move beyond DHH and make any of this gems Arbre, Phlex, ViewComponent, etc make it so Rails becomes a zero-layer framework that does the reactive calculations, but we are still behind this compared with the rest of the communities.
@Aksafan
@Aksafan 5 ай бұрын
Came here from a clickbait title to improve my RoR skills but have got another type of information. Still valuable but totally not that expected from a title...
@wpftutorial
@wpftutorial 5 ай бұрын
If you're using Rails with hotwire/turbo, you need to add data-turbo-action="advance" to each pagination link so the URL changes on click. Since this video was posted Pagy went from v5 to v8 and now you have to pass in an anchor_string param to the pagy backend function. In your controller it'll look something like: "@pagy, @leads = pagy(filtered, items: 10, anchor_string: 'data-turbo-action="advance"')" Thanks for the video saved me a ton of time!
@eidiazcas
@eidiazcas 5 ай бұрын
Ruby is Ok, but I hate its LSP, fragile and a lot of times useless
@mixandgo
@mixandgo 5 ай бұрын
I've written ruby code for 15 years without LSP, and it was fine. You don't really need it.
@ahmedthegreat3973
@ahmedthegreat3973 5 ай бұрын
@@mixandgo ^ an LSP is nice to have but not required most of the time, but yeah the current Ruby LSP by Shopify is very basic right now, It doesn't have much autocompletion functionality and has a few other problems. It will probably get better as time goes on.
@MiguelPeniche
@MiguelPeniche 6 ай бұрын
I do like your video but OMG do we need to see your expressionless face while you read your screen all the time? Just read off camera! I really want to follow your stuff but no, too much ego these days.
@mixandgo
@mixandgo 6 ай бұрын
Here's something you should know: My goal in life is not to please entitled shitheads. So move on.
@mrRambleGamble
@mrRambleGamble 6 ай бұрын
Zoom in. The text is hard to see on mobile
@masoud-abedi
@masoud-abedi 6 ай бұрын
Thanks a lot for the content. I have a button on my form, and I want to run a render, but I need to send the output to a server. I'm trying to show a message, but I'm having trouble because of the render. Here's my code: def my_button mydata = render json: @project, include: [params[:include]] ... flash[:notice] = "#{t('project')} was successfully published with ID #{identifier}." respond_to do |format| format.html { redirect_to(@project) } format.rdf { render template: 'rdf/show' } format.json { render json: @project, include: [params[:include]] } end end Any ideas on how to fix this? Thanks!
@diegoiturra3134
@diegoiturra3134 6 ай бұрын
Great video, thanks for inspiring
@mixandgo
@mixandgo 6 ай бұрын
Thank you
@rpf23543
@rpf23543 6 ай бұрын
Thank you! Precise and clear, many options. Great!
@mixandgo
@mixandgo 6 ай бұрын
Glad to hear you like it
@climatemojo
@climatemojo 7 ай бұрын
Super helpful, Cezar. Thanks for the details on updating a frame other than the one initiating the action.
@mixandgo
@mixandgo 7 ай бұрын
Glad to hear you like it.
@TrisNowel
@TrisNowel 7 ай бұрын
Great channel. I’d like to thank you for making such informative content.
@mixandgo
@mixandgo 7 ай бұрын
I appreciate it.
@alessandro-desimone
@alessandro-desimone 7 ай бұрын
Nice video, thanks, but I am still in the rabbit hole. Every new Rails version states to simplify the assets pipeline ... adding new ways to do things. Anyway that's what we got, thanks for trying to clarify this complex topic.
@samuelcornet28
@samuelcornet28 7 ай бұрын
Thank you for sharing!
@mixandgo
@mixandgo 7 ай бұрын
My pleasure.
@мараткаримов-с6ч
@мараткаримов-с6ч 7 ай бұрын
Very good
@dellanmuchengapadare3792
@dellanmuchengapadare3792 7 ай бұрын
How us thiis different frim the adapter pattern
@fuu812
@fuu812 6 ай бұрын
Just googled it, seems like strategy operates on behavior, therefore should allow switching at any time. Eg. Study a topic by lecture, book or video.
@vinhlythe9788
@vinhlythe9788 7 ай бұрын
like this video because you attached github link
@fabiantorresm
@fabiantorresm 8 ай бұрын
Your channel is very good, I have learned a lot from you, thank you. Congratulations on your channel. Hey, sorry for the question, can you create a system of custom fields with this? For example, create a post that has an attribute called post_type that can be a post, page, product and depending on what the user chooses, a form with different fields is displayed, of course these fields will be saved in another table so that each type of post has its own attributes and each post its own values
@mixandgo
@mixandgo 8 ай бұрын
Thanks. I'm glad you like the channel. Sure. You can create that.
@alexax3888
@alexax3888 8 ай бұрын
Great video, thanks for the detailed steps. I installed this on an existing ror app and after finishing the steps from the video I got the error "Error ActionView::Template::Error (Asset `application.js` was not declared to be precompiled in production." I could fix this by running the rails javascript:install:esbuild command again.
@arnab5394
@arnab5394 8 ай бұрын
Nice one 👍
@mixandgo
@mixandgo 8 ай бұрын
Thank you
@baingfx
@baingfx 8 ай бұрын
Thank you! It's very useful video and helps resolve my problem.
@mixandgo
@mixandgo 8 ай бұрын
Happy to hear
@Mo0eY
@Mo0eY 8 ай бұрын
What drawing board app is that? And are you using an iPad to draw?
@mixandgo
@mixandgo 8 ай бұрын
Yes, I'm using an iPad. The app is called Notability.
@SketchupGuru
@SketchupGuru 8 ай бұрын
I have a website with 10k visits per month. Im currently learning the odin project and almost done with foundations. I live in Germany and i see a lot more jobs for JavaScript than ror. I want to eventually get a job but i really want to learnr ror. Do you think i should take the ror path or the JavaScript path.. thanks
@SketchupGuru
@SketchupGuru 8 ай бұрын
Also do you think I can use RoR skills to build a e-learning website?
@mixandgo
@mixandgo 8 ай бұрын
Currently, or at least in recent years, Javascript has become much more popular than Rails, and there are many more jobs for Javascript. I would say that if you want to play it safe, and get a job, go with Javascript. That's not to say you won't find jobs on Rails. But it's harder.
@mixandgo
@mixandgo 8 ай бұрын
@SketchupGuru You can definitely build any SaaS app with Rails. Also, you're still going to use Javascript with Rails. It's just that you don't rely as heavily on it because there are other (ahem, better) tools that Rails gives you.
@SketchupGuru
@SketchupGuru 8 ай бұрын
Got it. Thankyou brother
@adrianguzman9371
@adrianguzman9371 8 ай бұрын
As of 2024, the flags to start the project with esbuild and tailwind have changed a little. This is what I used: rails new project_name -T -j esbuild -c tailwind
@promiseuka
@promiseuka 9 ай бұрын
Glad I can always come back to re-watch this.
@mixandgo
@mixandgo 9 ай бұрын
There are more live stream recordings inside the members section.