Ruby on Rails vs. React JS

  Рет қаралды 14,692

Mix & Go

Mix & Go

Күн бұрын

Пікірлер: 57
@mxc_clips
@mxc_clips 2 жыл бұрын
Want to add that it doesnt have to be one or the other. At my current job, we use Ruby on Rails(was initially built with just Ruby on Rails) but now also have a gem (react-rails) which lets us keep everything about rails but use React for front end. The rails view just renders a component and passes in the instance vars like normal, but all the view/front end stuff is done with React. Also helps when hiring talent as we dont need Front End people who work with erb/rails, we can just hire React devs. Great vid! I always watch your stuff
@beWorldly
@beWorldly 2 жыл бұрын
Yes, I was about to mention exactly this. Rails has amazing goodies built in, and replacing just the Views (in MVC) with React gives you all the goodies of react as well. It's the ultimate combo in my opinion and the route i'm taking with my new startup.
@ciclodaaguia8489
@ciclodaaguia8489 2 жыл бұрын
Also, Ruby has increase its speed in 3.0 version and Turbo has brought the special sugar code techniques we were looking for to build single page apps.
@mixandgo
@mixandgo 2 жыл бұрын
That's true
@rogeriogouvea7278
@rogeriogouvea7278 Жыл бұрын
I wonder how the idea of building fast is changing these days with copilot and chat gpt as side tools
@mixandgo
@mixandgo Жыл бұрын
In some areas it can help, though from what I've tried so far... it's not great.
@shropsicle21
@shropsicle21 2 жыл бұрын
Those frontend and backend PDFs were cool! Do you have those posted somewhere? Thanks
@mixandgo
@mixandgo 2 жыл бұрын
Sure, you can find them here: roadmap.sh/roadmaps
@shropsicle21
@shropsicle21 2 жыл бұрын
@@mixandgo Awesome thanks!
@DevlogBill
@DevlogBill 2 жыл бұрын
So, Mix & Go, you don't need a front-end technology like React, Vue, or Angular to style and create your client side projects? Is there something built into the Rails framework which allows you to style and create your landing page? Or do you use something like tailwind for the CSS and basic HTML on your own to create the UI/UX? Thank you.
@mixandgo
@mixandgo 2 жыл бұрын
Not sure I get what you're asking William. Styling has nothing to do with JS. You use CSS either way.
@DevlogBill
@DevlogBill 2 жыл бұрын
@@mixandgo Your right when I was thinking styling, I was thinking CSS which isn't included in a library I know you have to add that. I was really thinking about when you are creating your site using the tooling. My original question is you don't need React when using Rails? How do you build your site without a front-end library or framework? I am guessing you don't need one. Is HTML and CSS enough using Rails? I am new to web development. Learning by using the Odin Project and they offer 2 paths Ruby on Rails or the MERN stack. So far, I like Rails better, so I am doing my research to find out what is involved when learning Rails. Thanks for getting back to me.
@mixandgo
@mixandgo 2 жыл бұрын
@@DevlogBill Well, Ruby on Rails IS a framework. But it's full-stack (i.e. front-end + back-end). Back in the day, it would render the page (HTML + CSS + JS) on the back-end and send the entire page to the browser on each request. But nowadays it can also do partial updates, via HTML fragments (this is the new hotness; Hotwire). You can also add React, or other JS frameworks on top of it. So you can mix Hotwire with React, or Elm, if you don't like the default (i.e. StimulusJS). Does that make sense?
@DevlogBill
@DevlogBill 2 жыл бұрын
@@mixandgo Now it makes more sense, thank you. I am taking the minimalistic approach. Simplicity and job availability. Everyone is promoting these tech stacks, the MERN, MEAN, and even the LAMP stack. But no one promotes the Rails stack. But I figured what makes sense is if everyone is running to these tech stacks why not do the opposite? Also, New York City does have a market for Ruby Developers even though it is small. Anyways, thank you for the wisdom, most appreciated.
@emerson-sheaapril8555
@emerson-sheaapril8555 Жыл бұрын
This was great, as others have mentioned ruby doesnt get a lot of love these days, and other videos tend to just focus on the points you mentioned at the beginning, popularity, community, etc. which doesn't really tell you what the language is. I didnt even know it was a full stack solution!
@mixandgo
@mixandgo Жыл бұрын
Glad you enjoyed it!
@eichorcist
@eichorcist 10 ай бұрын
The twitter application is made with ruby ​​as the frontend, Even though there is a lot of animation in it, it still feels easy to navigate
@mixandgo
@mixandgo 10 ай бұрын
Ruby is not a front-end language. But Hotwire is, which is part of Ruby on Rails. And it can do a lot in terms of making reactive UIs.
@brianlmosley
@brianlmosley 2 жыл бұрын
Very clear and concise video! Thanks for sharing
@mixandgo
@mixandgo 2 жыл бұрын
Thank you Brian
@rickyrayrosenberg420
@rickyrayrosenberg420 Жыл бұрын
Why not both? Rails can be a good static site host and provide static elements for SAAS applications that are built within a static context. I have used rails applications hosting Ember front ends, vue frontends, Svelte front ends, and vanilla JavaScript front ends.
@mixandgo
@mixandgo Жыл бұрын
Well, mainly because you don't have to. You don't have to build two apps when you can build one. You can build a full-stack app with Rails, without having to build an API + a SPA.
@federicocastro5542
@federicocastro5542 Жыл бұрын
Excellent explanation, thank you
@mixandgo
@mixandgo Жыл бұрын
Thank you 👍
@lwa.dev74
@lwa.dev74 2 жыл бұрын
Hey, after hearing that explanation across both subjects I had to subscribe too your channel… I am new too full stack / front end and have been struggling too know where to place myself and timescale of investment with what to seriously consider for a career in development across the board. I’ve decided to pick ROR, Node & is, Python but will have to focus on one as a main and other 2 as sub projects for personal projects to show diversity to potential employers. Would appreciate any input or recommendations on my choices given going fwd as a self taught dev transitioning from iT/iOS technician potentially looking at start-ups as a jnr dev as I think the experience of wearing many hats would help improve my experience over time. Thanks again 👨🏽‍💻
@mixandgo
@mixandgo 2 жыл бұрын
If I were you I'd pick just one. You want to level up as fast as possible. Going in many directions will slow you down.
@lwa.dev74
@lwa.dev74 2 жыл бұрын
@@mixandgo Thank you for your quick response… definitely, I understand but in your opinion if you were running a start-up personally would you prefer ROR as opposed to M.E.R.N as full stack? I will keep ROR as a long time learning project for understanding full stack process. Thank you for your time. 👍
@mixandgo
@mixandgo 2 жыл бұрын
@@lwa.dev74 I would personally prefer RoR. To me, it makes more sense in that context. You would probably find this video useful: kzbin.info/www/bejne/joDbpZisip6qb6M
@lwa.dev74
@lwa.dev74 2 жыл бұрын
@@mixandgo thanks again, personally I’m glad you said ROR and it kinda confirmed where my heart is with the language and not my head with trying to fit in and belong.. I will definitely pay attention to your channel as your transparency is absolutely amazing and very much appreciated ❤️👨🏽‍💻
@mixandgo
@mixandgo 2 жыл бұрын
No problem.
@colinrosati9403
@colinrosati9403 9 ай бұрын
Nuxt + Next can offer SSR + SSG. You can higher one fullstack to do both FE + BE. JS seems to be more performant with single threaded call stack. With JS you have on compiler bundler The argument for lack of framework conventions in JS is not really very a great argument in 2024 RoR has more CLI tooling but that not really a reason for an architecture desicion. TBH I still don’t get why we use RoR in 2024
@mixandgo
@mixandgo 9 ай бұрын
Have you used RoR? Especially with Hotwire, there's no point in building a SPA anymore in most cases.
@thomasslone1964
@thomasslone1964 Жыл бұрын
I got so much ruby software but i never learned rails, now I'm like what if i had a website, i might just be high
@DevBishwasBh
@DevBishwasBh 2 жыл бұрын
Do this requires API development or we can do it without APIs?
@mixandgo
@mixandgo 2 жыл бұрын
It depends on what you're doing. In this example, I'm not using an API.
@IsxaaqAcademy
@IsxaaqAcademy Жыл бұрын
Great explanation.
@mixandgo
@mixandgo Жыл бұрын
Thank you
@ahmed3deeh629
@ahmed3deeh629 2 жыл бұрын
nice and clear to the point answer
@mixandgo
@mixandgo 2 жыл бұрын
Thank you Ahmed
@samuelkung7736
@samuelkung7736 2 жыл бұрын
Where do you go to learn rails 7??
@mixandgo
@mixandgo 2 жыл бұрын
Hi Samuel, a lot of the newer stuff lacks proper documentation, but you can check out hotwire.dev. Or, my Practical Ruby on Rails For Beginners class which I'm building right now using Rails 7.
@siyaram2855
@siyaram2855 2 жыл бұрын
NextJs with Rails. Can you do a video?
@mixandgo
@mixandgo 2 жыл бұрын
I don't see how that would make sense, they are both full-blow frameworks.
@siyaram2855
@siyaram2855 2 жыл бұрын
@@mixandgo Next frontend + Rails backend = Success Pixelpeeper does that.
@mixandgo
@mixandgo 2 жыл бұрын
You mean use rails as an API and NextJS as it's SPA? Why?
@siyaram2855
@siyaram2855 2 жыл бұрын
@@mixandgo Expose a Rails API that gives you HTTP APIs (REST or GraphQL or anything you like), then consume them via `getStaticProps` or `getServerSideProps` as appropriate.
@siyaram2855
@siyaram2855 2 жыл бұрын
Morningbrew also uses make use of this stack
@elvispalace
@elvispalace 11 ай бұрын
top WTF comparisons
@bradchellingworth5973
@bradchellingworth5973 2 жыл бұрын
This is a weird question to ask, Ruby on Rails in a backend / full stack framework, it does a different job than react, you wouldn't be choosing between them. Its weird that someone asked this question and even weirder that you made a video answering it.
@mixandgo
@mixandgo 2 жыл бұрын
Why did you watch it then? :) Isn't THAT weird? Not everybody knows the difference or what Rails/React can/cannot do.
@josbexerra8115
@josbexerra8115 Жыл бұрын
RoR + Reactjs =💥(dinamita pura)
@postwala2667
@postwala2667 Жыл бұрын
I am looking for rails developers - please message me ur links to contact page
@siddharthpandey8577
@siddharthpandey8577 Жыл бұрын
hello sir i'm a rails developer and i have basic knowledge of ror and curd operation , core react js , html, css , js and bootstrap
Rails vs JavaScript: Which one should you use for your SaaS?
12:50
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 30 МЛН
They made React great again?
4:11
Fireship
Рет қаралды 1 МЛН
RailsConf 2023 - Hotwiring My React Brain by Aji Slater
32:12
Ruby Central
Рет қаралды 3,1 М.
Introduction to Hotwire in Ruby on Rails
10:17
Mix & Go
Рет қаралды 22 М.
Why 95% of Self-Taught Programmers Fail (Honest Advice)
12:16
Andy Sterkowitz
Рет қаралды 410 М.
The Ruby On Rails Junior Developer Problem
16:03
Deanin
Рет қаралды 20 М.
Turbo Frames vs. Turbo Streams
8:25
Mix & Go
Рет қаралды 19 М.
Ruby on Rails in 100 Seconds
3:33
Fireship
Рет қаралды 489 М.
What is Hotwire?
6:55
The Pragmatic Studio
Рет қаралды 12 М.
Should you use Ruby on Rails in 2024?
14:43
webcrunch
Рет қаралды 58 М.
Turning bad React code into senior React code
13:10
Cosden Solutions
Рет қаралды 93 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН