Ayush Newatia
👤 PersonAppearances Over Time
Podcast Appearances
I don't know. It's hard to pick just one, because Rails is the only backend stack that I've ever used. So it's hard to compare it to something else. But everything you need to build a modern web app is standardized in some way or the other. When you look at other stacks, this is more anecdotal from when I go speaking to JavaScript people. It's that you kind of need to pull in stuff
I don't know. It's hard to pick just one, because Rails is the only backend stack that I've ever used. So it's hard to compare it to something else. But everything you need to build a modern web app is standardized in some way or the other. When you look at other stacks, this is more anecdotal from when I go speaking to JavaScript people. It's that you kind of need to pull in stuff
plugins and things for basic things like file upload, you need to go look for a plugin for that. Authentication, you got to go look for a plugin for that. You basically need to build a stack that Rails gives you already out of the box. If you're building a web application, all the pieces you need are already in Rails. which obviously makes it a bit of a behemoth.
plugins and things for basic things like file upload, you need to go look for a plugin for that. Authentication, you got to go look for a plugin for that. You basically need to build a stack that Rails gives you already out of the box. If you're building a web application, all the pieces you need are already in Rails. which obviously makes it a bit of a behemoth.
And when you need something very simple, it's not the right tool for the job for that reason. But for most modern web applications, you do need all that and Rails just gives it to you.
And when you need something very simple, it's not the right tool for the job for that reason. But for most modern web applications, you do need all that and Rails just gives it to you.
It's, yeah, but I kind of want like, so I quite like Vue component, the library. uh i know there was some chatter to merge that with rails um the last time i met joel hawksley who's the leader of the project uh which was 2022 summer 22 at brighton ruby he still had ambitions of of merging it into rails so That is one dependent.
It's, yeah, but I kind of want like, so I quite like Vue component, the library. uh i know there was some chatter to merge that with rails um the last time i met joel hawksley who's the leader of the project uh which was 2022 summer 22 at brighton ruby he still had ambitions of of merging it into rails so That is one dependent.
I don't reach for a lot of dependencies naturally for every app, but ViewComponent is one of them. And I quite like that approach because it, again, focuses on generating HTML on the server, which is just the construct with which you generate it is componentized. and you send that down to the browser. And then if you need JavaScript components, I just use custom elements.
I don't reach for a lot of dependencies naturally for every app, but ViewComponent is one of them. And I quite like that approach because it, again, focuses on generating HTML on the server, which is just the construct with which you generate it is componentized. and you send that down to the browser. And then if you need JavaScript components, I just use custom elements.
They are absolutely amazing. It blows my mind that they're not more widely used than they are. They are just so, so useful. Last year when I was helping out with the Rails World Conference website as mentoring the junior developer who built it, And we needed to put a back-to-top button on the web page, which appears only when you've scrolled down twice the height of the viewport.
They are absolutely amazing. It blows my mind that they're not more widely used than they are. They are just so, so useful. Last year when I was helping out with the Rails World Conference website as mentoring the junior developer who built it, And we needed to put a back-to-top button on the web page, which appears only when you've scrolled down twice the height of the viewport.
And this was a Jekyll app, so we didn't have a JavaScript pipeline. And I don't hate myself, which is why I didn't want to set one up. So we were limited to basically vanilla JavaScript. So my first instinct would have been to reach for a stimulus controller.
And this was a Jekyll app, so we didn't have a JavaScript pipeline. And I don't hate myself, which is why I didn't want to set one up. So we were limited to basically vanilla JavaScript. So my first instinct would have been to reach for a stimulus controller.
But I didn't really want to pull in JavaScript dependencies because we were just writing vanilla JavaScript without any kind of bundling or anything. So I just showed her how to use a custom element and it was just so elegant and so simple. And it's just such a great solution to so many problems.
But I didn't really want to pull in JavaScript dependencies because we were just writing vanilla JavaScript without any kind of bundling or anything. So I just showed her how to use a custom element and it was just so elegant and so simple. And it's just such a great solution to so many problems.
Joel Hawksley, Joel Draper is Joel Draper is the flex guy, right?
Joel Hawksley, Joel Draper is Joel Draper is the flex guy, right?
Okay.
Okay.